Hello,
im quite new to HomeAssistant, today i added my Moes TRVs to the system. Sadly i cant figure out how to close the valve when my window sensor gets opened.
So far i was able to create the following automation, sadly this isn’t working because it sends a command to the valve, not an attribute. Setting the attribute to 0, 1 or 2 changes the valve to immediately close, open or go back to normal behaviour:
alias: Close Valve When Window Opens
description: ""
trigger:
- type: opened
platform: device
device_id: <dev_id>
entity_id: <ent_id>
domain: binary_sensor
condition: []
action:
- service: zha.issue_zigbee_cluster_command
data:
ieee: <ieee_addr>
endpoint_id: 1
command_type: client
cluster_type: in
cluster_id: 513
command: 1
params: {"valve_force_state": "1"}
Thank you