Fensterkontakt mit Thermostat macht in einem Raum Probleme

Ich habe in drei Räumen identische Fensterkontakte und identische Thermostate.

Ich habe Automationen eingerichtet, die bei geöffnetem Fenster die Thermostate umschalten und bei geschlossenem Fenster dies wieder Rückgängig machen.

Das funktioniert auch in meinem Arbeitszimmer. Aber im Schlafzimmer habe ich festgestellt, das die Automation beim öffnen des Fensters das Thermostat zwar ausschaltet, aber sofort wieder einschaltet. Im Arbeitszimmer klappt das.

hier die YAML:

- id: '1707216121845'
  alias: Open Window Arbeitszimmer
  description: ''
  trigger:
  - type: opened
    platform: device
    device_id: 17b8ed6bc2cf81c694bfa89ca7c3abd6
    entity_id: 29b352c4431c855039db3cf7f3cba038
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 30
  condition: []
  action:
  - type: turn_on
    device_id: 9c40b359f1cae3fb4fdd00c671b64aca
    entity_id: 0a7b4f999d49da2af3195e2b709f1a66
    domain: switch
  - device_id: 9c40b359f1cae3fb4fdd00c671b64aca
    domain: number
    entity_id: 99338f89c1e479639ceece740f61a46c
    type: set_value
    value: 5
  mode: single
- id: '1707216180194'
  alias: Close Window Arbeitszimmer
  description: ''
  trigger:
  - type: not_opened
    platform: device
    device_id: 17b8ed6bc2cf81c694bfa89ca7c3abd6
    entity_id: 29b352c4431c855039db3cf7f3cba038
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 30
  condition: []
  action:
  - type: turn_off
    device_id: 9c40b359f1cae3fb4fdd00c671b64aca
    entity_id: 0a7b4f999d49da2af3195e2b709f1a66
    domain: switch
  mode: single
- id: '1707216449324'
  alias: Open Window Schlafzimmer
  description: ''
  trigger:
  - type: opened
    platform: device
    device_id: c4626bb4641fbfc8fb0c91bdebc7fdbf
    entity_id: 5f8d3275322c439e051195ed9d7e8081
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 30
  condition: []
  action:
  - type: turn_on
    device_id: cf07a93d3716e0e68b793927e81a3a9d
    entity_id: d78f4aa27d27a79f44da895eb50dea57
    domain: switch
  - device_id: cf07a93d3716e0e68b793927e81a3a9d
    domain: number
    entity_id: b957423a8c65001ac78a533f13bc08a3
    type: set_value
    value: 5
  mode: single
- id: '1707216526449'
  alias: Close Window Schlafzimmer
  description: ''
  trigger:
  - type: not_opened
    platform: device
    device_id: c4626bb4641fbfc8fb0c91bdebc7fdbf
    entity_id: 5f8d3275322c439e051195ed9d7e8081
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 30
  condition: []
  action:
  - type: turn_off
    device_id: cf07a93d3716e0e68b793927e81a3a9d
    entity_id: d78f4aa27d27a79f44da895eb50dea57
    domain: switch
  mode: single

Und hier das LOG

Nachtrag:

Ich muss leider feststellen, das alle Automatisierungen nicht funktionieren. Es wird zwar das Thermostat auf “Fenster auf” umgestellt, aber sofort danach wieder auf “Fenster zu”.

Hier sieht man, wie als erstes nach dem Fenster öffnen die Open Window Temp auf 5 Grad gesetzt wird und danach die Entität Open Window ein und sofort wieder aus geschaltet wird.

Wonach muss ich suchen? Was mache ich hier falsch?

Auch wenn ich das setzen der Temperatur herausnehme, bleibt es bei dem Verhalten.

:crayon:by HarryP: Zusammenführung Doppelpost

Moin,
Setz in der Automation mal zuerst die Temperatur und dann setz Fenster auf.
Ich könnte mir Vorstellen das er eine Temperatur Eingabe so interpretiert dass das Fenster nicht mehr auf ist.

LG

Wie gesagt: Wenn ich die Temperatur komplett aus der Automation raus nehme und nur “Fenster auf” setze, bleibt der Fehler.

Hier mal das MQTT Log:

debug 2024-02-10 19:52:17Received Zigbee message from 'Testkontakt', type 'commandStatusChangeNotification', cluster 'ssIasZone', data '{"extendedstatus":0,"zonestatus":1}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:17MQTT publish: topic 'zigbee2mqtt/Testkontakt', payload '{"battery":100,"battery_low":false,"contact":false,"last_seen":"2024-02-10T19:52:17+01:00","linkquality":54,"tamper":false,"voltage":3300}'
debug 2024-02-10 19:52:22Received MQTT message on 'zigbee2mqtt/Heizung Arbeitszimmer Martin/set/open_window' with data 'ON'
debug 2024-02-10 19:52:22Publishing 'set' 'open_window' to 'Heizung Arbeitszimmer Martin'
debug 2024-02-10 19:52:22Received MQTT message on 'zigbee2mqtt/Heizung Arbeitszimmer Martin/set/open_window_temperature' with data '5'
debug 2024-02-10 19:52:22Publishing 'set' 'open_window_temperature' to 'Heizung Arbeitszimmer Martin'
info 2024-02-10 19:52:24MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:48:33+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"ON","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
debug 2024-02-10 19:52:24Received Zigbee message from 'Heizung Arbeitszimmer Martin', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":8}],"seq":1}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:24MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:24+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"ON","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
info 2024-02-10 19:52:24MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:24+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"ON","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
debug 2024-02-10 19:52:24Received Zigbee message from 'Heizung Arbeitszimmer Martin', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":1,"dp":8}],"seq":257}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:24MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:24+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"ON","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
debug 2024-02-10 19:52:24Received Zigbee message from 'Heizung Arbeitszimmer Martin', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0],"type":"Buffer"},"datatype":1,"dp":8}],"seq":513}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:24MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:24+01:00","linkquality":120,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"OFF","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
debug 2024-02-10 19:52:25Received Zigbee message from 'Heizung Arbeitszimmer Martin', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[1],"type":"Buffer"},"datatype":4,"dp":2}],"seq":769}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:25MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:25+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"OFF","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'
debug 2024-02-10 19:52:25Received Zigbee message from 'Heizung Arbeitszimmer Martin', type 'commandDataResponse', cluster 'manuSpecificTuya', data '{"dpValues":[{"data":{"data":[0,0,0,50],"type":"Buffer"},"datatype":2,"dp":102}],"seq":1}' from endpoint 1 with groupID 0
info 2024-02-10 19:52:25MQTT publish: topic 'zigbee2mqtt/Heizung Arbeitszimmer Martin', payload '{"battery_low":false,"boost_timeset_countdown":0,"child_lock":"UNLOCK","comfort_temperature":22,"current_heating_setpoint":30,"eco_temperature":18,"error_status":0,"frost_protection":"OFF","heating_stop":"OFF","holiday_start_stop":"2021/01/01 01:01 | 2021/01/01 01:01","holiday_temperature":17,"last_seen":"2024-02-10T19:52:25+01:00","linkquality":123,"local_temperature":21.2,"local_temperature_calibration":0,"online":"ON","open_window":"OFF","open_window_temperature":5,"preset":"manual","schedule_friday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_monday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_saturday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_sunday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_thursday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_tuesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","schedule_wednesday":"06:00/17 12:00/21 14:00/17 17:00/21 24:00/17","system_mode":"heat","update":{"installed_version":69,"latest_version":-1,"state":"idle"},"update_available":false,"working_day":"mon_sun"}'

Gerade noch einmal probiert. Es bleibt bei dem Fehler.

nächster Nachtrag:
OK, ich hab jetzt mal die Aktion geändert. Statt im Thermostat den Status von “Window Open” von OFF nach ON zu ändern, hab ich jetzt in der Automation den Status von “Heating Stop” von OFF nach ON geändert. Im Prinzip für mich der gleiche Effekt.

Das funktioniert. Beide Eigenschaften sind als Entity vom Typ Switch definiert. Scheinbar ist da was in der Implementierung des Rollei/ TuYa TV02 nicht in Ordnung. Oder ich mache noch einen Fehler.

und noch eine Erkentnis:
Es scheint ein Problem des Thermostats zu sein. Wenn ich den Modus “Window open” manuell im zigbee2mqtt Dashboard für das Gerät schalte, dann springt das auch sofort wieder zurück. Auf Github gibt es auch Hinweise auf Probleme mit Window open

Einmal Batterien raus aus dem Thermostat und nun geht es wieder. Mal sehen wie lange.