I have a smart plug connected to my computer.
The consumption in standby is 9,5 Watt, in operation above 100 Watt.
To avoid the idle current when I don’t use the computer I’v put the smartplug to switch of the computer completely.
But indeed, sometimes, I forget and therefore I made this automation.
If the smart plug is on and the current consumption is below 20 Watt for 1 minuit, the plug should be switched off.
I reloaded first the automations but as this won’t work I restarted HA completely but without success. If I switch on the smart plug it remains on, even the power current is only 9,5 Watt.
The automation action works, there should be something wrong with the trigger and/or condition…
- id: '1615549246028'
alias: Game PC automatisch uit
description: ''
trigger:
- platform: state
to: 'on'
entity_id: binary_sensor.spare2_binary_sensor
condition:
- condition: and
conditions:
- condition: state
entity_id: sensor.spare2_current_consumption
state: 'below: 20'
for: 00:01:00
action:
- service: switch.turn_off
target:
entity_id: switch.spare2_tuya
mode: single
Trigger:
Condition: