Advertisement
fabrizio97726

Untitled

Feb 13th, 2024
1,257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.80 KB | None | 0 0
  1. alias: Inizio riscaldamento automatico
  2. description: ""
  3. trigger:
  4.   - platform: time
  5.     at: input_datetime.ora_inizio_automazione
  6.   - platform: time_pattern
  7.     seconds: "59"
  8.   - condition: state
  9.     entity_id: group.famiglia.not_home
  10.     state: not_home
  11.   - condition: state
  12.     entity_id: group.famiglia.home
  13.     state: home
  14. condition:
  15.   - condition: state
  16.     entity_id: input_boolean.modalita_inverno_riscaldamento_automatico
  17.     state: "on"
  18.   - condition: time
  19.     after: input_datetime.ora_inizio_automazione
  20.     before: input_datetime.ora_fine_riscaldamento
  21.   - condition: numeric_state
  22.     entity_id: input_number.temperatura_target
  23.     above: sensor.temperatura_impostata_salotto
  24. action:
  25.   - choose:
  26.       - conditions:
  27.           - condition: trigger
  28.             id: group.famiglia.not_home
  29.         sequence:
  30.           - service: climate.turn_on
  31.             metadata: {}
  32.             data: {}
  33.             target:
  34.               entity_id: climate.living_room
  35.           - service: climate.set_temperature
  36.             metadata: {}
  37.             data:
  38.               temperature: "{{ states('input_number.temperatura_non_in_casa')| float(0) }}"
  39.               hvac_mode: heat
  40.             target:
  41.               entity_id: climate.living_room
  42.   - choose:
  43.       - conditions:
  44.           - condition: trigger
  45.             id: group.famiglia.home
  46.         sequence:
  47.           - service: climate.turn_on
  48.             metadata: {}
  49.             data: {}
  50.             target:
  51.               entity_id: climate.living_room
  52.           - service: climate.set_temperature
  53.             metadata: {}
  54.             data:
  55.               temperature: "{{ states('input_number.temperatura_target')| float(0) }}"
  56.               hvac_mode: heat
  57.             target:
  58.               entity_id: climate.living_room
  59. mode: single
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement