-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ZHA support for Philips929002398602LightController #580
Added ZHA support for Philips929002398602LightController #580
Conversation
Codecov ReportBase: 96% // Head: 96% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #580 +/- ##
===================================
- Coverage 96% 96% -0%
===================================
Files 63 63
Lines 2590 2595 +5
===================================
+ Hits 2486 2489 +3
- Misses 104 106 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thank you @cznewt for the PR. Let me know once the PR is ready to be reviewed, I see you changed it to "work in progress". |
Hi, how to test this PR ? I own two Hue Dimmer V2 (model 9290023986), I copied the added content to the <ha_config_folder>/appdaemon/apps/controllerx/cx_devices/philips.py and created the following app in my docker/appdaemon/conf/apps/apps.yaml
But it doesn't work. The app appears as terminated in the appdaemon apps dashboard. HA still receives the button events, but nothing happens. When using standard automations the remote works fine, but I'd like to make the long press on brightness button control the light's brightness level smoothly. |
Nevermind, the issue was due to wrong installation of AppDaemon. After fixing the install I could make it work, but the device class should be changed as the OFF button of the Hue Dimmer V1 became a HUE button on Hue Dimmer V2 which is used in Hue ecosystem to change the scenes between Read, Relax, Concentrate and Energize (looks lime some preset colors). The ON button is now used for ON/OFF. So I changed the class to reflect these changes:
It's working really well with these changes.
|
Hi @ScratMan , Thank you for the detailed explanation. I will change @cznewt PR to reflect your changes as well as change the default mapping for the Z2M and deCONZ since it is not correct either. EDIT: wouldn't it make sense to change "on_hold" to "Light.HOLD_COLOR_UP", instead of "Light.TOGGLE". What do you think? Regards, |
I thought about it when changing the file, but IMHO as the hue button is already assigned to color change up and down mapped to click and hold, having a hold color up for the ON button seems useless. |
Hi @ScratMan , You are right, the power button when held either can do nothing or turn off all the lights at home according to this review: https://youtu.be/2N8TD81KSAY?t=252. Therefore, I will implement your suggested mapping. Thanks! |
c33c570
to
321455a
Compare
Hi @ScratMan , This device can be now tested on ControllerX v4.25.0b0. Regards, |
No description provided.