diff --git a/apps/controllerx/controllerx.py b/apps/controllerx/controllerx.py index b67412ca..42a88b85 100755 --- a/apps/controllerx/controllerx.py +++ b/apps/controllerx/controllerx.py @@ -21,6 +21,6 @@ from cx_devices.lutron import * from cx_devices.muller_licht import * from cx_devices.osram import * -from cx_devices.philips import * +from cx_devices.phillips import * from cx_devices.smartthings import * from cx_devices.trust import * diff --git a/apps/controllerx/cx_devices/philips.py b/apps/controllerx/cx_devices/phillips.py similarity index 100% rename from apps/controllerx/cx_devices/philips.py rename to apps/controllerx/cx_devices/phillips.py diff --git a/docs/_data/controllers/hue-dimmer-switch.yml b/docs/_data/controllers/hue-dimmer-switch.yml index a85cde0e..149e20b9 100644 --- a/docs/_data/controllers/hue-dimmer-switch.yml +++ b/docs/_data/controllers/hue-dimmer-switch.yml @@ -50,14 +50,20 @@ integrations: - "4003 → Hold release \"O\"" - name: ZHA codename: zha - actions: - - "on → Click \"I\"" - - "step_0_30_9 → Click 🔆" - - "step_0_56_9 → Hold 🔆" - - "step_1_30_9 → Click 🔅" - - "step_1_56_9 → Hold 🔅" - - "off_with_effect_0_0 → Click \"O\"" - - "stop → Release brightness buttons" + actions: # CHANGE THIS + - "on_short_release → Click \"I\"" + - "on_hold → Hold \"I\"" + - "on_long_release → Release \"I\"" + - "up_short_release → Click 🔆" + - "up_hold → Hold 🔆" + - "up_long_release → Release 🔆" + - "down_short_release → Click 🔅" + - "down_hold → Hold 🔅" + - "down_long_release → Release 🔅" + - "off_short_release → Click \"O\"" + - "off_hold → Hold \"O\"" + - "off_long_release → Release \"O\"" + note: >- For ZHA integration, the hold events just work for the brightness buttons, and they are fired right after the click events. diff --git a/tests/unit_tests/cx_devices/phillips_test.py b/tests/unit_tests/cx_devices/phillips_test.py index 3c1a8853..35a0c1c9 100644 --- a/tests/unit_tests/cx_devices/phillips_test.py +++ b/tests/unit_tests/cx_devices/phillips_test.py @@ -1,5 +1,5 @@ import pytest -from cx_devices.philips import HueDimmerController +from cx_devices.phillips import HueDimmerController @pytest.mark.parametrize(