보일러 난방 자동화3



이번 난방자동화는 트리거를 타임패턴으로 바꿔 좀 더 효율적으로 조건 체크해 가동되도록 함.
환수관 온도를 체크해 트리거를 삼았을 때는 예외조건이 좀 나오고 가동 텀 간격이 너무 짧기도 해서 변경하게 됨.

타임패턴 5분 간격으로 보일러 환수관 온도와 침실 바닥온도를 체크해 조건을 만족하면 보일러를 가동하고 가동시간은 야외온도를 체크해 7분(보일러 온수가 1바퀴 도는 시간)에서 20분까지 정함.


- id: boiler-night
  alias: boiler-night
  trigger:
  - platform: time_pattern
    minutes: "/5"
  condition:
  - condition: state
    entity_id: sun.sun
    state: below_horizon
  - condition: state
    entity_id:
      - timer.boiler7
      - timer.boiler10
      - timer.boiler15
      - timer.boiler20
    state: idle
  - condition: numeric_state
    entity_id: sensor.boiler_1_temperature
    below: '25.1'
  - condition: numeric_state
    entity_id: sensor.boiler_3_temperature
    below: '22.1'
  action:
    - choose:
      - conditions:
        - condition: numeric_state
          entity_id: sensor.outdoor_thmeter_temperature
          above: '7.99'
        sequence:
          - service: script.boiler_7min_once
      - conditions:
        - condition: numeric_state
          entity_id: sensor.outdoor_thmeter_temperature
          below: '8.00'
          above: '1.99'
        sequence:
          - service: script.boiler_10min_once
      - conditions:
        - condition: numeric_state
          entity_id: sensor.outdoor_thmeter_temperature
          below: '2.00'
          above: '-5.00'
        sequence:
          - service: script.boiler_15min_once
      - conditions:
        - condition: numeric_state
          entity_id: sensor.outdoor_thmeter_temperature
          below: '-4.99'
        sequence:
          - service: script.boiler_20min_once
  mode: single



**보일러 난방 자동화1

**보일러 난방 자동화2