Was trying to do some very basic automation, like turning off the AV system based on the wattage of wemo (wife usually forgets to turn the setup properly off, that’s 120W total sucked out when on standby). Found some help but still it doesn’t seem to turn off anything. Logs didn’t have any errors either. Anyways, here’s my config:
cat automations.yaml
- action:
- data:
entity_id: switch.av_front
service: switch.turn_off
- data:
entity_id: switch.av_back
service: switch.turn_off
alias: Turn off idle AV
condition: []
id: '1507015859391'
trigger:
- below: '80'
entity_id: switch.av_front
platform: numeric_state
value_template: '{% if states.switch.av_front %}{{ states.switch.av_front.attributes.current_power_w
}}{% else %}Off{% endif %}'