If someone is using Zwave2Mqtt or OpenZwave this should do a job:
- id: '4873203472347998423'
alias: Update Roller Shutter Status
trigger:
- platform: state
entity_id:
- sensor.kitchen_curtains_electric_w
- sensor.bedroom_curtains_electric_w
- sensor.living_room_curtains_electric_w
condition:
- condition: template
value_template: '{{ trigger.from_state and trigger.from_state.state != trigger.to_state.state and (trigger.to_state.state
| float) == 0.0 }}'
action:
- service: mqtt.publish
data_template:
topic: OpenZWave/1/command/requestnodedynamic/
payload_template: '{"node": {{ state_attr(trigger.entity_id, "node_id") | int }}}'
Where sensor.*_curtains_electric_w
are the entities created by ozw
that monitor power usage in Watts.