Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Trust ZYCT-202 setting up dimming via zigbee2mqtt

$
0
0

@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 script

I’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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles