-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
[NEW DEVICE] Hue wall switch module #276
Comments
Can we include it in z2m as well? MQTT publish: topic 'zigbee2mqtt/Vind - rörelse', payload '{"battery":100,"linkquality":0,"occupancy":true,"voltage":3005}' MQTT publish: topic 'zigbee2mqtt/Vind - rörelse', payload '{"battery":100,"linkquality":0,"occupancy":true,"voltage":3005}' Info MQTT publish: topic 'homeassistant/device_automation/0x001788010b0028a3/action_right_press_release/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x001788010b0028a3"],"manufacturer":"Philips","model":"Hue wall switch module (929003017102)","name":"Badrum knapp","sw_version":"Zigbee2MQTT 1.18.2-dev"},"payload":"right_press_release","subtype":"right_press_release","topic":"zigbee2mqtt/Badrum knapp/action","type":"action"}' Info MQTT publish: topic 'homeassistant/device_automation/0x001788010b0028a3/action_left_hold/config', payload '{"automation_type":"trigger","device":{"identifiers":["zigbee2mqtt_0x001788010b0028a3"],"manufacturer":"Philips","model":"Hue wall switch module (929003017102)","name":"Badrum knapp","sw_version":"Zigbee2MQTT 1.18.2-dev"},"payload":"left_hold","subtype":"left_hold","topic":"zigbee2mqtt/Badrum knapp/action","type":"action"}' |
Hi @oscfor, I see in the zigbee2mqtt documentation and your logs that available actions are: "left_press, left_press_release, right_press, right_press_release". deCONZ has press, hold, and release for left and right (6 in total). However, for z2m I only see 4, so wondering which ones are they since hold does not make sense without a release. Cheers, |
Hi @xaviml I have now tried again. Now I also get the "hold" state and "hold_release" Info MQTT publish: topic 'zigbee2mqtt/Badrum knapp', payload '{"action":"left_hold","battery":100,"device_mode":"dual_push_button","linkquality":42,"update":{"state":"idle"}}' |
Device added in ControllerX v4.11.0 |
Nice @xaviml for adding this, I just bought a couple of them and also have double push buttons (Jung 535EU). So I just set up the integration in Btw thanks for making ControllerX, it's really really cool and so much better that I even tossed the Hue Bridge out of the equation! |
Hi @JDFS404, ControllerX was first design that one app controls 1 light or group of lights, so with just using one app you cannot control different lights with different states. However, this doesn't mean you cannot configure it with 2 apps pointing to the same controller. This is an example of this controller using the left actions for 1 light, and the right actions for another light: example_app_light_1:
module: controllerx
class: Philips929003017102LightController
controller: sensor.your_controller_action
integration: z2m
light: light.light_1
actions: [left_press, left_hold, left_hold_release]
example_app_light_2:
module: controllerx
class: Philips929003017102LightController
controller: sensor.your_controller_action
integration: z2m
light: light.light_2
actions: [right_press, rightt_hold, right_hold_release] Hope this helps :) Regards, |
Perfect @xaviml this is what I was looking for! On another note, I am in the process of figuring it out, but need some guidance; I have another Hue Smart Switch close my entrance that I want to use as a master switch to toggle ALL my lights (in my |
Hi @JDFS404, The Hue Smart switch already calls "on" and "off", and not "toogle". So could you please show your ControllerX config, so I can point you to how to fix this problem? To do so, you would need to use Regards, |
Thanks again Xavi, perhaps I should look into
|
Hi @JDFS404, Sorry for the confusion... I thought you were referring to the standard Hue Dimmer Switch. But you mean the switch module (which is the one from this ticket..). Don't know what I was thinking haha You have these options to solve this, and they imply using the merge_mapping (o mapping):
Since I see you use left and right separately, then, I would show you the second option: switch_all:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
mapping:
left_press: "on"
left_hold: "off" The mapping will remove the default mapping and define the mapping define in the switch_all:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
merge_mapping:
left_press: "on"
left_press$2: "off" So 1 click will turn on the lights and 2 clicks will turn them off. The dimming will keep working because we used Hope this helps, and happy to help further if needed :) Regards, |
Hey Xavi, Thanks again, much appreciate your help here. Donation's coming up! So I just added your config to
So the left side of the switch is working as intended :). When I switch all lights on and switch some of them off via other switches / HA / MQTT, I double click and everything turns off! However, I now am facing the issue that also
I also tried adding the same code for my |
Hi @JDFS404, I see that you have 2 applications with the same name ( Also, I do not see the What I think is happening is that the configuration with switch_all_left:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
mapping:
left_press: "on"
left_press$2: "off"
left_hold: hold_brightness_toggle
left_hold_release: release
switch_all_right:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
mapping:
right_press: "on"
right_press$2: "off"
right_hold: hold_brightness_toggle
right_hold_release: release I hope this clarifies your issues. Regards, |
@xaviml you're the best! It's now working as intended - albeit with a double click instead of a single click. I think to get it with a single click (like a toggle), the configuration would be a lot more advanced but since it's only concerning one switch in the hallway, it's not a big issue. I even incorporated a third and fourth click to get another light on or off, I used the |
Hi @JDFS404, Glad you got it working :) If you want just the switch to toggle the light with the press, you could do it with 2 configuration. This is an example for the left actions: switch_all_left_on:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
mapping:
left_press: "off"
left_hold: hold_brightness_toggle
left_hold_release: release
constrain_input_boolean: group.all_light,on
switch_all_left_off:
module: controllerx
class: Philips929003017102LightController
controller: zigbee2mqtt/schakelaar_gang/action
integration: mqtt
light: group.all_light
mapping:
left_press: "on"
left_hold: hold_brightness_toggle
left_hold_release: release
constrain_input_boolean: group.all_light,off So the first configuration would work only when the Hope this suits you better since no double click is needed, just the single as you were seeking. Regards, |
I think this would be perfect, but do I need to set up an input boolean for that - I guess not due to calling the group and not an
Come to think of it, I think this is due to me talking directly to MQTT and skipping HA right? I will try with |
Hi @JDFS404, No, you don't need an The problem you are getting is not on your side. It is a bug (#307) that I fixed in v4.11.2. So upgrade to the latest version and restart AppDaemon server/addon. Regards, |
@xaviml You're the man. This is it. This is perfect :) Thanks so much for all the help - I will now dabble with multiple clicks and also try to setup clicks to get me to default brightness values. The possibilities are endless 🥇 . When I left the Hue app behind, I couldn't even imagine what was all possible with a little bit of wit and creativity. You helped me spark new ideas! |
Hi @JDFS404, Happy to know you got it all working now, and that my assistance was helpful. As you said, now the limitation is on your imagination since with the options that ControllerX provides you can configure many use cases. If there is anything else you need, just open a question ticket, and I will happily help you out :) Regards, |
Hi @xaviml, me again - couple of months later and still enjoying my automation journey. I have a quick question, where perhaps you have a quick answer for: the |
Hi @JDFS404 , The toggle functionality always alternates from However, the first time you use it, after restarting AppDaemon, it goes Would you like to change this behaviour when restarting AppDaemon? Regards, |
A ha, that was what I'm looking for... I restart my Docker apps every night due to backups and such. So to change the default behavior when starting AppDaemon would be nice (i.e. always first go |
Hi @JDFS404, I understand now your need. Could you please create another GitHub ticket for this request as a feature request? I will look at it for next release. I am currently overloaded at work and I bave not being giving much attention to this project. If you create the ticket I will make sure to not forget about it. Thank you, |
deCONZ
1000 → Click
1001 → Hold
1002 → Click release
1003 → Hold release
2000 → Click
2001 → Hold
2002 → Click release
2003 → Hold release
"Taken from dresden-elektronik/deconz-rest-plugin#4566
devicemode | first input | second input
singlerocker | 1000, 1002 | --
singlepushbutton | 1000, 1001, 1002, 1003 | --
dualrocker | 1000, 1002 | 2000, 2002
dualpushbutton | 1000, 1001, 1002, 1003 | 2000, 2001, 2002, 2003
When configured as rocker, it will issue a x000/x002 each time you flip the rocker (to either position). The event duration for the x002 is 1 (for 100ms), but lastupdated suggests it follows the x000 faster than that.
When configured as pushbutton, it will issue a x000/x002 sequence on press/release, and an x000/x001/.../x001/x003 on press/hold/release, similar to the Hue dimmer switch and the Hue smart button. The eventduration increased with 8 for each x001, and they are issued pretty much every 800ms."
Notes
Click → Toggle
Hold → Brightness up/down with direction changes (only applicable if configured as pushbutton)
The text was updated successfully, but these errors were encountered: