Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103143

Help with dumb AC Automation

$
0
0

Hello all.
I have a problem with an automation to turn on/off my AC (“dumb” AC with wired wall controller, I connect it with one on/off zigbee relay).
I want to connect the AC at predefined hours, at working days, when I’m not in holydays or vacations, and inner temperature is inside predefined parameters.
I can’t get my automation to start! Here is my yaml:

alias: Ligar AC
description: ''
trigger:
  - platform: sun
    event: sunrise
    offset: '00:10:00'
  - platform: time
    at: '08:00:00'
  - platform: time
    at: '08:15:00'
  - platform: time
    at: '08:30:00'
  - platform: time
    at: '08:45:00'
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: calendar.test_ferias
        state: 'off'
      - condition: time
        weekday:
          - mon
          - tue
          - wed
          - thu
          - fri
  - condition: and
    conditions:
      - condition: or
        conditions:
          - condition: numeric_state
            entity_id: sensor.sensor_temperatura_e_humidade_temperature
            attribute: temperature
            above: '25'
            below: '15'
          - condition: and
            conditions:
              - condition: sun
                after: sunrise
                after_offset: '00:10:00'
      - condition: or
        conditions:
          - condition: time
            after: '07:59:00'
          - condition: and
            conditions:
              - condition: numeric_state
                entity_id: sensor.sensor_temperatura_e_humidade_temperature
                attribute: temperature
                above: '24'
                below: '16'
      - condition: or
        conditions:
          - condition: time
            after: '08:14:00'
          - condition: and
            conditions:
              - condition: numeric_state
                entity_id: sensor.sensor_temperatura_e_humidade_temperature
                attribute: temperature
                above: '23'
                below: '17'
      - condition: or
        conditions:
          - condition: time
            after: '08:29:00'
          - condition: and
            conditions:
              - condition: numeric_state
                entity_id: sensor.sensor_temperatura_e_humidade_temperature
                attribute: temperature
                above: '22'
                below: '17'
      - condition: or
        conditions:
          - condition: time
            after: '08:44:00'
action:
  - type: turn_on
    device_id: 057c61eeb58035ee92f8e87d543429a3
    entity_id: switch.ar_condicionado
    domain: switch
mode: single

What’s wrong?
Thanks!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>