Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
2.2 kB
0
Indexable
Never
alias: Puda chlazeni
description: Zapne nad 26,1°C vypne pod 26°C
trigger:
  - platform: numeric_state
    entity_id:
      - sensor.sonoff_10009e8b2d_temperature
    id: Start_chlazeni_puda
    above: 26.1
  - platform: numeric_state
    entity_id:
      - sensor.sonoff_10009e8b2d_temperature
    id: Stop_chlazeni_puda
    below: 26
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Start_chlazeni_puda
            enabled: true
        sequence:
          - type: turn_on
            device_id: 792ecebeacd808c64be26cbbce00f5c3
            entity_id: 897a3403d97ce537c843f13da83fc6d7
            domain: switch
            enabled: true
      - conditions:
          - condition: trigger
            id:
              - Stop_chlazeni_puda
            enabled: true
          - condition: or
            conditions:
              - condition: and
                conditions:
                  - condition: device
                    type: is_on
                    device_id: 792ecebeacd808c64be26cbbce00f5c3
                    entity_id: 897a3403d97ce537c843f13da83fc6d7
                    domain: switch
                  - condition: template
                    value_template: |
                      {{ states('sensor.sun_solar_elevation') | float(0) < 15 }}
                    alias: Solární výška je pod
            enabled: false
        sequence:
          - condition: or
            conditions:
              - condition: and
                conditions:
                  - condition: device
                    type: is_on
                    device_id: 792ecebeacd808c64be26cbbce00f5c3
                    entity_id: 897a3403d97ce537c843f13da83fc6d7
                    domain: switch
                  - condition: template
                    value_template: |
                      {{ states('sensor.sun_solar_elevation') | float(0) < 15 }}
                    alias: Solární výška je pod
          - type: turn_off
            device_id: 792ecebeacd808c64be26cbbce00f5c3
            entity_id: 897a3403d97ce537c843f13da83fc6d7
            domain: switch
mode: single
Leave a Comment