Hi, I am having some trouble trying to get controllerX to work with my huedimmer. What I am trying to do is turn on and off a ZHA group of lights using a huedimmer remote.
My version of the remote has on/off instead of the I/O.
In my initial setup I could not get it to work at all. No response. After reading through the entire thread and making sure appdaemon and controllerx were setup properly, I saw that xaviml updated the code for someones huedimmer and that the new huedimmer zha events did not match the events my huedimmer was putting out. My events matched the old code. That looked like whats below
"on": Light.ON,
"step_0_30_9": Light.CLICK_BRIGHTNESS_UP,
"step_0_56_9": Light.HOLD_BRIGHTNESS_UP,
"step_1_30_9": Light.CLICK_BRIGHTNESS_DOWN,
"step_1_56_9": Light.HOLD_BRIGHTNESS_DOWN,
"off_with_effect_0_0": Light.OFF,
"stop": Light.RELEASE
So to see if I was on to something I changed the code in the philips.py to match the above. And then things stared working or so I though. I can get the group to turn on but no off. Just to make sure it isn’t something weird with ZHA groups I changed the controllerx app to control one individual light
tv_can_lights:
module: controllerx
class: HueDimmerController
controller: 00:17:88:01:10:32:77:5a
integration: zha
#light: light.tv_room_zha_group_0x0002
light: light.basement_lamp_1
I get the same results, llight turns on but not off.
This is the zha event when the off button is pressed,
{
"event_type": "zha_event",
"data": {
"device_ieee": "00:17:88:01:10:32:77:5a",
"unique_id": "00:17:88:01:10:32:77:5a:1:0x0006",
"endpoint_id": 1,
"cluster_id": 6,
"command": "off_with_effect",
"args": [
0,
0
]
},
"origin": "LOCAL",
"time_fired": "2020-09-03T22:43:34.349295+00:00",
"context": {
"id": "e60d3f11ee3611ea95634532034ba2b3",
"parent_id": null,
"user_id": null
}
}
Which matches the code in my modified version of philips.py
Logs show nothing wrong except the “off” button press doesn’t show up.
2020-09-03 16:46:31.281574 INFO AppDaemon: AppDaemon Version 4.0.5 starting
2020-09-03 16:46:31.290323 INFO AppDaemon: Python version is 3.8.5
2020-09-03 16:46:31.292150 INFO AppDaemon: Configuration read from: /config/appdaemon/appdaemon.yaml
2020-09-03 16:46:31.293261 INFO AppDaemon: Added log: AppDaemon
2020-09-03 16:46:31.294349 INFO AppDaemon: Added log: Error
2020-09-03 16:46:31.295407 INFO AppDaemon: Added log: Access
2020-09-03 16:46:31.296429 INFO AppDaemon: Added log: Diag
2020-09-03 16:46:31.381089 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-09-03 16:46:31.446985 INFO HASS: HASS Plugin Initializing
2020-09-03 16:46:31.448470 INFO HASS: HASS Plugin initialization complete
2020-09-03 16:46:31.450791 INFO AppDaemon: Initializing HTTP
2020-09-03 16:46:31.452972 INFO AppDaemon: Using 'ws' for event stream
2020-09-03 16:46:31.467145 INFO AppDaemon: Starting API
2020-09-03 16:46:31.480840 INFO AppDaemon: Starting Admin Interface
2020-09-03 16:46:31.482587 INFO AppDaemon: Starting Dashboards
2020-09-03 16:46:31.609952 INFO HASS: Connected to Home Assistant 0.114.4
2020-09-03 16:46:31.747073 INFO AppDaemon: App 'tv_can_lights' added
2020-09-03 16:46:31.750876 INFO AppDaemon: Found 1 total apps
2020-09-03 16:46:31.753131 INFO AppDaemon: Starting Apps with 1 workers and 1 pins
2020-09-03 16:46:31.762530 INFO AppDaemon: Running on port 5050
2020-09-03 16:46:32.597377 INFO HASS: Evaluating startup conditions
2020-09-03 16:46:32.712524 INFO HASS: Startup condition met: hass state=RUNNING
2020-09-03 16:46:32.721039 INFO HASS: All startup conditions met
2020-09-03 16:46:32.931141 INFO AppDaemon: Got initial state from namespace default
2020-09-03 16:46:34.820790 INFO AppDaemon: Scheduler running in realtime
2020-09-03 16:46:35.026561 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2020-09-03 16:46:35.029484 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx to module import path
2020-09-03 16:46:35.032548 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core to module import path
2020-09-03 16:46:35.035011 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/integration to module import path
2020-09-03 16:46:35.037645 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/stepper to module import path
2020-09-03 16:46:35.040315 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/feature_support to module import path
2020-09-03 16:46:35.042784 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_core/type to module import path
2020-09-03 16:46:35.045216 INFO AppDaemon: Adding /config/appdaemon/apps/controllerx/cx_devices to module import path
2020-09-03 16:46:35.404415 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/controllerx/controllerx.py
2020-09-03 16:46:35.480457 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_version.py - ignoring
2020-09-03 16:46:35.490139 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_const.py - ignoring
2020-09-03 16:46:35.507499 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/__init__.py - ignoring
2020-09-03 16:46:35.514192 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/custom_controller.py - ignoring
2020-09-03 16:46:35.521517 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/color_helper.py - ignoring
2020-09-03 16:46:35.527570 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/controller.py - ignoring
2020-09-03 16:46:35.533864 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/zha.py - ignoring
2020-09-03 16:46:35.539341 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/state.py - ignoring
2020-09-03 16:46:35.544197 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/mqtt.py - ignoring
2020-09-03 16:46:35.552501 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/__init__.py - ignoring
2020-09-03 16:46:35.558188 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/deconz.py - ignoring
2020-09-03 16:46:35.567453 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/integration/z2m.py - ignoring
2020-09-03 16:46:35.574589 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/minmax_stepper.py - ignoring
2020-09-03 16:46:35.584338 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/circular_stepper.py - ignoring
2020-09-03 16:46:35.589697 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/stepper/__init__.py - ignoring
2020-09-03 16:46:35.596075 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/light.py - ignoring
2020-09-03 16:46:35.602781 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/media_player.py - ignoring
2020-09-03 16:46:35.610179 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/__init__.py - ignoring
2020-09-03 16:46:35.617059 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/feature_support/cover.py - ignoring
2020-09-03 16:46:35.625079 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/__init__.py - ignoring
2020-09-03 16:46:35.631526 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/cover_controller.py - ignoring
2020-09-03 16:46:35.638014 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/switch_controller.py - ignoring
2020-09-03 16:46:35.645341 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/light_controller.py - ignoring
2020-09-03 16:46:35.652540 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_core/type/media_player_controller.py - ignoring
2020-09-03 16:46:35.659175 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/smartthings.py - ignoring
2020-09-03 16:46:35.671033 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/trust.py - ignoring
2020-09-03 16:46:35.679305 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/philips.py - ignoring
2020-09-03 16:46:35.684516 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/legrand.py - ignoring
2020-09-03 16:46:35.691625 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/lutron.py - ignoring
2020-09-03 16:46:35.698428 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/__init__.py - ignoring
2020-09-03 16:46:35.704230 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/ikea.py - ignoring
2020-09-03 16:46:35.712449 WARNING AppDaemon: No app description found for: /config/appdaemon/apps/controllerx/cx_devices/aqara.py - ignoring
2020-09-03 16:46:35.717426 INFO AppDaemon: Initializing app tv_can_lights using class HueDimmerController from module controllerx
2020-09-03 16:46:36.032238 INFO tv_can_lights: 🎮 ControllerX v3.4.0
2020-09-03 16:46:36.046117 INFO AppDaemon: App initialization complete
2020-09-03 16:46:44.434955 INFO tv_can_lights: 🎮 Button event triggered: `on`
2020-09-03 16:46:44.459166 INFO tv_can_lights: 🏃 Running `on` now
2020-09-03 16:46:44.531288 INFO tv_can_lights: 🤖 Service: e[1mlight.turn_one[0m
2020-09-03 16:46:44.554382 INFO tv_can_lights: - entity_id: light.basement_lamp_1
2020-09-03 16:46:44.578539 INFO tv_can_lights: - transition: 0.30
2020-09-03 16:50:36.727425 INFO tv_can_lights: 🎮 Button event triggered: `on`
2020-09-03 16:50:36.733299 INFO tv_can_lights: 🏃 Running `on` now
2020-09-03 16:50:36.743623 INFO tv_can_lights: 🤖 Service: e[1mlight.turn_one[0m
2020-09-03 16:50:36.750173 INFO tv_can_lights: - entity_id: light.basement_lamp_1
2020-09-03 16:50:36.756763 INFO tv_can_lights: - transition: 0.30
Does anyone have an idea what I am missing? I assume at this point that maybe something in the code isn’t compatible with what I changed.