Please help.
I am a newbee with HA but due to the crazy energy prices i started to try something a while ago:)
Now the toilet light is automated (kind of homework to ‘play’ with) I bought a Zigbee Radiator Valve (Moes ts0601) with a motion sensor, a magnetic sensor and a temperature sensor (All Aqara).
They are all visible as devices in HA and i started to create an automation but it won’t do what i want it do do (it just doesn’t seem to work).
I would like to start heating when there is someone in the room (motion sensor) AND when the window is closed (magnetic sensor) AND when the
temperaure is below 20 degrees (masurement by the external/seperate temperature sensor).
Because the Temperature sensor of the Radiator valve itself doesn’t give a good mesurement (its to close to the radiator duh:) and because the valve shuts down when the set temperature
on the radiator valve is reached, i want to set the valve to 30 degrees.
When the window is open OR when the temparature is 22+ degrees OR when there is nobody in the room for 45 mintes i want to turn OFF the heating.
The code below is what i made (with HA as editor because i can’t write code myself!) but it does not work.
Even when i turn off the automation and turn on the valve ‘manually’ via the heating card i added to the Dashboard, strange things happen.
It stops heating every 2 to 20 minutes, It ‘loses’ the temperature thats set, etc etc.
Does anyone has any idea what i am doing wrong?
alias: TK Huiskamer aan/uit
description: ""
trigger:
- type: motion
platform: device
device_id: 941c1f635c3a2081d28982c362735d35
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_ias_zone_2
domain: binary_sensor
id: BWsens HUISKAMER - ON
- type: no_motion
platform: device
device_id: 941c1f635c3a2081d28982c362735d35
entity_id: binary_sensor.lumi_lumi_sensor_motion_aq2_ias_zone_2
domain: binary_sensor
for:
hours: 0
minutes: 45
seconds: 0
id: BWsens HUISKAMER - OFF
- type: opened
platform: device
device_id: 17206d17459c3e50da01a02c97c883fe
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
id: MAG-SENS HUISK Open
- type: not_opened
platform: device
device_id: 17206d17459c3e50da01a02c97c883fe
entity_id: binary_sensor.lumi_lumi_sensor_magnet_aq2_opening
domain: binary_sensor
id: MAG-SENS HUISK DICHT
- type: temperature
platform: device
device_id: 679c0e610360524c11fc8e67c39d880a
entity_id: sensor.lumi_lumi_weather_d6d8e107_temperature
domain: sensor
above: 22
for:
hours: 0
minutes: 1
seconds: 0
id: Temp huisK >22gr
- type: temperature
platform: device
device_id: 679c0e610360524c11fc8e67c39d880a
entity_id: sensor.lumi_lumi_weather_d6d8e107_temperature
domain: sensor
for:
hours: 0
minutes: 1
seconds: 0
id: Temp huisK <20gr
below: 20
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: BWsens HUISKAMER - ON
- condition: and
conditions:
- condition: trigger
id: MAG-SENS HUISK DICHT
enabled: true
- condition: and
conditions:
- condition: trigger
id: Temp huisK <20gr
sequence:
- service: climate.set_temperature
data:
temperature: 30
target:
entity_id: climate.thermostaatkraan_huiskamer_thermostat
- conditions:
- condition: trigger
id: BWsens HUISKAMER - OFF
- condition: or
conditions:
- condition: trigger
id: MAG-SENS HUISK Open
enabled: true
- condition: or
conditions:
- condition: trigger
id: Temp huisK >22gr
sequence:
- service: climate.set_temperature
data:
hvac_mode: "off"
target:
entity_id: climate.thermostaatkraan_huiskamer_thermostat
mode: single