@tomplums wrote:
Hello community - I’m attempting to setup this Zigbee remote to brighten and dim my bulbs.
From what I’ve read here I’ll need the following to get this working:
• A input boolean
• A automation
• A scriptI’m looking for some examples for the above setup - if any one could point me in the right direction for writing the automations, scripts and boolean using the MQTT state changes below I’d be grateful - this kind of scripting goes over my head. Perhaps the link above is almost correct for my switch?
I’ve read somewhere I may need to check what commands my bulb uses for brightness - where should I find the correct value?
MQTT state change commands
Examples are for Light 1:
On button = {‘action_group’: 145, ‘linkquality’: 18, ‘action’: ‘on’}
Off button = {‘action_group’: 145, ‘linkquality’: 36, ‘action’: ‘off’}
Bright = {‘action_group’: 145, ‘linkquality’: 31, ‘action’: ‘up-press’}
Dim = {‘action_group’: 145, ‘linkquality’: 31, ‘action’: ‘down-press’}
Release bright or dim = {‘action_group’: 145, ‘linkquality’: 31, ‘action’: ‘stop’}WAF will be accomplished once I’ve got this working.
Posts: 3
Participants: 2