Hi guys,
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.
- id: '....'
alias: Test Switch
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.fahrrad
above: '5'
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.fahrradswitch
mode: single
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?
I’m totally confused…
Thanks and best regards
Manu
1 post - 1 participant