I have a “Shelly Plug S” which i want to automate in Home Assistent.
First at all I configured that Plug via a Sensor and a Command Line Switch in my configuration.yaml because my Home Assistant Instance isn’t running in my home network and so i can’t use the Shelly Integration.
This way is working just fine and i get the output of the plug as well i can switch it on and off.
Now there comes the tricky part:
I build an automation which should switch the plug off if the output is above XY Watts.
This action just works perfectly if i press the “Execute” button.
My trigger is also working perfectly because i tested it with other devices (Homematic IP Plugs).
I can also see in the Logfile that the command_off statement is fired but still nothing happens…
Is there a tiny difference how actions in automations are executed automatically and manually?
When you press the Execute Action button it will execute the automation’s action which consists of a single service call: switch.turn_off. That’s the same service call executed when the automation is triggered by its Numeric State Trigger. Execution of the service call is identical whether its initiated by the automation’s trigger or via the button.
If you wish, you can try an additional way to test the service call. Use Developer Tools > Services to execute the following:
Ultimately, if the service call doesn’t behave consistently, it’s highly unlikely it is due to how the service call is initiated and far more likely due to its underlying integration.
Same here. Complete new automation, traces show that it was executed but it wasn’t. Action and trigger work fine, logs show that everything is in order, but automation (one particular light.toggle automation) just simply ignores actual execution