I use the EcoDim 8 button wall switch EcoDim ED-10014 control via MQTT | Zigbee2MQTT
together with 3 Philips Hue bulbs. called ‘muurknop_living’
It was a challenge to use 2 buttons to control the bulbs (on/off and brightness control)
Finally I use below automation and it works fine for me.
alias: Muurknop living - verlichting zithoek
description: ""
trigger:
- platform: device
domain: mqtt
device_id: 44e31cca3a822205ef68c7fb7c305b6f
type: action
subtype: off_1
discovery_id: 0x847127fffe4083eb action_off_1
id: light_off
- platform: device
domain: mqtt
device_id: 44e31cca3a822205ef68c7fb7c305b6f
type: action
subtype: on_1
discovery_id: 0x847127fffe4083eb action_on_1
id: light_on
- platform: device
domain: mqtt
device_id: 44e31cca3a822205ef68c7fb7c305b6f
type: action
subtype: brightness_move_down_1
discovery_id: 0x847127fffe4083eb action_brightness_move_down_1
id: dim-down
- platform: device
domain: mqtt
device_id: 44e31cca3a822205ef68c7fb7c305b6f
type: action
subtype: brightness_move_up_1
discovery_id: 0x847127fffe4083eb action_brightness_move_up_1
id: dim-up
- platform: device
domain: mqtt
device_id: 44e31cca3a822205ef68c7fb7c305b6f
type: action
subtype: brightness_stop_1
discovery_id: 0x847127fffe4083eb action_brightness_stop_1
id: dim-stop
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: light_off
sequence:
- type: turn_off
device_id: 17a378251759a1aa938f5877cf979fc4
entity_id: light.zithoek_midden
domain: light
- type: turn_off
device_id: 7c12bf1d389dd687a800fa8b59604534
entity_id: light.zithoek_raam
domain: light
- type: turn_off
device_id: 07349ba043372ce59927a0af219f8bb0
entity_id: light.zithoek_tafel
domain: light
- conditions:
- condition: trigger
id: light_on
sequence:
- type: turn_on
device_id: 17a378251759a1aa938f5877cf979fc4
entity_id: light.zithoek_midden
domain: light
- type: turn_on
device_id: 7c12bf1d389dd687a800fa8b59604534
entity_id: light.zithoek_raam
domain: light
- type: turn_on
device_id: 07349ba043372ce59927a0af219f8bb0
entity_id: light.zithoek_tafel
domain: light
- conditions:
- condition: trigger
id: dim-up
sequence:
- repeat:
while:
- condition: trigger
id: dim-up
sequence:
- device_id: 17a378251759a1aa938f5877cf979fc4
domain: light
entity_id: light.zithoek_midden
type: brightness_increase
- device_id: 7c12bf1d389dd687a800fa8b59604534
domain: light
entity_id: light.zithoek_raam
type: brightness_increase
- device_id: 07349ba043372ce59927a0af219f8bb0
domain: light
entity_id: light.zithoek_tafel
type: brightness_increase
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
- conditions:
- condition: trigger
id: dim-down
sequence:
- repeat:
while:
- condition: trigger
id: dim-down
sequence:
- device_id: 17a378251759a1aa938f5877cf979fc4
domain: light
entity_id: light.zithoek_midden
type: brightness_decrease
- device_id: 7c12bf1d389dd687a800fa8b59604534
domain: light
entity_id: light.zithoek_raam
type: brightness_decrease
- device_id: 07349ba043372ce59927a0af219f8bb0
domain: light
entity_id: light.zithoek_tafel
type: brightness_decrease
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
default: []
mode: restart
Next step I’d like to achieve is to bind the 2 buttons to the bulbs.
If HA is offline or whatever it would be nice if it remains working.
This is what I did but Z2M gives me some errors (see below):
I started by making a group for the 3 bulbs named ‘Living_zitplaats_lampen’
Then I selected the wall switch device, tab ‘bind’, and selected ‘Source endpoint’ = 1.
I could choose from 1 till 4. I guess 1 is the upper button row.
In the Destination field I choose my bulb group and I ticked the clusters ‘LevelCtrl’ and ‘OnOff’.
When I click ‘bind’ I get below errors:
2023-06-15 15:48:19Failed to bind cluster 'genOnOff' from 'muurknop_living' to 'Living_zitplaats_lampen' (Error: Bind 0x847127fffe4083eb/1 genOnOff from '1' failed (AREQ - ZDO - bindRsp after 10000ms))
2023-06-15 15:48:29Failed to bind cluster 'genLevelCtrl' from 'muurknop_living' to 'Living_zitplaats_lampen' (Error: Bind 0x847127fffe4083eb/1 genLevelCtrl from '1' failed (AREQ - ZDO - bindRsp after 10000ms))
2023-06-15 15:48:29Failed to bind