I am very new to HA
I have a coffee machine which is integrated into HA and can be switched on and off via HA.
I want to use a Zigbee button (I have the sonoff one) which I have added to HA via ZHA.
I want to use the button to toggle the machine on & off.
How do I do this exactly?
1 Like
Vasco
June 4, 2021, 9:01pm
2
You could create an automation. And choose Device as trigger type, choose the remote as selected device and choose the right action. Something like “Turn on button pressed” and in action section you device a toggle of a sensor or switch for your coffee machine.
myle
(StePhan McKillen (Other kiwi Here))
June 4, 2021, 9:54pm
3
did you look in the blueprints for something ??
This Blueprint will let you configure an Xiaomi Aqara Wireless Mini Switch paired to the ZHA integration. It supports four commands - single press, double press, long press, and release.
[Aqara-Mini-Switch]
Note: Apparently the manufacturer made 3 different revisions of this device over the years, each with slightly different capabilities. This Blueprint requires the lumi.remote.b1acn01 model (which I purchased at the Amazon link below).
Also, an additional tip: if you select the “Choose” ac…
know the OLDWAY
first u need to see the TRIGGER
so i would go into the events and watch for the Event to happen
as its a zha_event set it to listen to that.
know the we see the event when I press the button
so
- alias: 'Turn Off water Alarm'
initial_state: 'on'
trigger:
platform: event
event_type: zha_event
data:
device_id: "1222011164fad43b63125b103bb72161"
command: "single"
action:
service: light.toggle
entity_id: light.yourlightyouwantto toggle
1 Like
Thank you Sir!
This has worked for me though I have a sonoff button but the principal is the same