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?