#Automation Based on Zigbee Device Event

1 messages · Page 1 of 1 (latest)

cloud dawn
#

I have a Legrand remote "switch" bound to via ZHA to Home Assistant. I'm able to receive the events for "on" and "off" when I press the on and off on the switch, as I can see it show up in the device logs. However, when I try to create a new automation after selecting the device, the dropdown list of triggers doesn't show anything that corresponds to the on/off events. It only allows me to put triggers as device offline, firmware changes, etc.

How do I set automation trigger to be the on/off event?

proud berry
#

state trigger

cloud dawn
#

I don't see a state trigger that seems to map to this "Off event"

#

The device trigger:

dry fossil
#

Does the binary input sensor correspond to the on/off?

cloud dawn
#

It does not.

dry fossil
#

odd. ultimately you can always use a manual event trigger, but surprised there's not a simpler way

cloud dawn
#

Like I have to manually trigger from zha event or something?

Is there not a way to "bind" the zha event to something on the device?

dry fossil
#

ideally the ZHA integration would have already done that for you, but maybe it doesn't understand this device

#

yes, manually trigger from zha_event is what I was suggesting

cloud dawn
dry fossil
#

define "everywhere" ?

#

You can make a template binary sensor that turns on when it gets that event, and then use that in multiple automations

cloud dawn