Hello!
I am new to home assistant. Spend two days watching video and tutorials. Vaste of time unfortunately (((
Could you help me with my first automation please?
I have raspberry pi 3 and home assistant installed on this
I have zigbee usb stick 3.0 (cc2531). It added to home assistant successfully via zigbee2mqtt addon. I added all my zigbee devices to system successfully!
I don’t understand how to turn on/off my light with my button. Such a simple automation.
How to do it?
What trigger must I write?
What action is suitable for this situation?
My zigbee button is Xiaomi WXKG07LM [sensor.vykliuchatel_kukhnia_action]
My relay switch is Sonoff Zigbee 1-ch Relay [switch.svet_kukhnia]
Your title is not very correct. Since you have a sensor and a switch in HA, they are paired already. What you want is an automation. I don’t have a Xiaomi WXKG07LM , so post what it sends.
Go to configuration → integrations → mqtt → click on configure
Under listen to a topic, enter zigbee2mqtt/#, click ‘Start Listening’, and push your Xiaomi WXKG07LM a few times.
Post what you receive here, then I can show an automation.