Hallo,
Ich versuche gerade mein neues Aqara Thermostat E1 zu automatisieren. Ich bekomme es dabei super zum Heizen, doch ich kann es danach nicht einfach wieder ausstellen. Es heizt dann einfach weiter.
Vielleicht hat wer von euch hier eine Lösung.
Hier mein Code:
	
	
	
		
				
			Ich versuche gerade mein neues Aqara Thermostat E1 zu automatisieren. Ich bekomme es dabei super zum Heizen, doch ich kann es danach nicht einfach wieder ausstellen. Es heizt dann einfach weiter.
Vielleicht hat wer von euch hier eine Lösung.
Hier mein Code:
		YAML:
	
	alias: Problemfall
description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.kueche_fenster
      - binary_sensor.wohnzimmer_fenster
    from: "off"
    to: "on"
  - platform: state
    entity_id:
      - binary_sensor.kueche_fenster
      - binary_sensor.wohnzimmer_fenster
    from: "on"
    to: "off"
  - platform: time
    at: "06:00:00"
  - platform: time
    at: "00:00:00"
condition: []
action:
  - if:
      - condition: and
        conditions:
          - type: is_not_open
            condition: device
            device_id: 969c34ef96a9695fec6f699afa856e9e
            entity_id: binary_sensor.kueche_fenster
            domain: binary_sensor
            for:
              hours: 0
              minutes: 0
              seconds: 0
          - type: is_not_open
            condition: device
            device_id: 87ce05aac5002956e4991bc86857ccfb
            entity_id: binary_sensor.wohnzimmer_fenster
            domain: binary_sensor
            for:
              hours: 0
              minutes: 0
              seconds: 0
          - type: is_temperature
            condition: device
            device_id: eb84d6e45a770b0adb5188177900c967
            entity_id: sensor.balkon_thermometer_temperatur
            domain: sensor
            below: 10
          - condition: time
            after: "06:00:00"
            before: "00:00:00"
            weekday:
              - mon
              - tue
              - wed
              - thu
              - fri
              - sat
              - sun
    then:
      - service: climate.set_temperature
        data:
          hvac_mode: heat
          temperature: 25
        target:
          entity_id: climate.wohnstube_heizung
    else:
      - service: climate.set_hvac_mode
        data:
          hvac_mode: "off"
        target:
          entity_id: climate.wohnstube_heizung
mode: single 
	