I am trying to set up an action which will trigger based on the summated current power on two WEMO insight switches. I can return this summated power in the template editor using
"{{states.switch.insight_1.attributes.current_power_mwh+states.switch.insight_2.attributes.current_power_mwh}}"
However i am having trouble setting up a rule that will trigger on this value. What i currently have is:
- alias: 'high power usage'
trigger:
platform: numeric_state
entity_id: switch.insight_1
value_template: '{{states.switch.insight_1.attributes.current_power_mwh+states.switch.insight_2.attributes.current_power_mwh}}'
above: 2000
action:
service: switch.turn_off
entity_id: switch.insight_1
however this does not trigger. Can anyone help?