#Button press toggle

1 messages · Page 1 of 1 (latest)

dreamy pilot
#

Hi y'all, sorry if its a noobie question, but I just got this button and I have no idea why I can't use it in automations.

The logbook detects when I press the button, and says
HOBEIAN ZG-101ZL Toggle event was fired. However, when I try to add it in the automations, I only have these options, and none of them seem to work. How can I debug this further to identify whats happening?

final bay
#

Based on your description and the screenshots, it looks like it has a switch entity available that is tied to the single press event. If you click on the name of the switch in the Controls box it will popup the entity menu. Clicking on the cog at the upper right of that popup will open the entity settings which will show the entity ID of the switch. You should be able to use that in a State trigger to execute actions based on single-press events.

Since there is no entity that handles multi-function buttons, the rest of its functionality for triggering automations, like double-press and long-press events, is only available through Event triggers. There is a blueprint to aid use of this device for triggering automations.