Can you explain how your automation is designed to work?
It uses a single State Trigger configured to monitor one event entity’s event_type attribute. The event entity is:
event.grwallmountquadcontrol
In its action section it uses a choose to check the value of the event_type attribute of three completely different event entities:
event.grwallmotequad_button_1
event.grwallmotequad_button_2
event.grwallmotequad_button_3
Perhaps I don’t understand how this device works but shouldn’t the automation’s State Trigger monitor the three event entities (containing the word button) instead of event.grwallmountquadcontrol?
It seems to me that those three events are responsible for determining which cover to open or close so they should be the ones monitored by the State Trigger.
The problem is that it only shows the appropriate trace when the appropriate button push is recognized.
The issue is that log shows all the button pushes shown above but there is a failure to recognize the trigger and fire the automation in a ratio of 1 successful to multiple unsuccessful options.
So the trigger is shown as being recognized but the automation doesn’t recognize it consistently as a triggered as it should to activate the automation.
It’s hit or miss.
But each and every button push shows a trigger in the history of the entity and the group.
will do. not home now. but will try and report back.
i understand it completely and find it fascinating! i’ll give it a shot and let you know. this is my first time with .yaml and HA but the code is elegant and simple.
That’s exactly what the example’s template does for the mode variable. If the value of event_type is held then mode is set to close, otherwise it’s set to open.
Post the automation’s trace file (the Download Trace command is found in the upper right menu when you’re viewing a trace). It will help me understand what’s happening.
YAML is used for many purposes because it’s a means of structuring data. Home Assistant uses it for several things including to create a scripting language. That’s documented here:
If you look at my example above, the text you see displayed in red is Jinja which is a templating language. That’s completely separate from YAML and is documented here: