Advertisement
asyscom

Untitled

Mar 20th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.83 KB | None | 0 0
  1. - alias: Riscaldamento giorno weekand
  2.   trigger:
  3.  #- platform: time
  4.   #  at: 08:00:00
  5.   - platform: template
  6.     value_template: "{{ states('sensor.time') == (states.input_datetime.on_weekand.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
  7.   - platform: homeassistant
  8.     event: start
  9.   condition:
  10.     condition: time
  11.     after: 08:00:00
  12.     before: '21:30:00'
  13.     weekday:
  14.    - sat
  15.     - sun
  16.   action:
  17.     service: climate.set_temperature
  18.     #entity_id: climate.termostato
  19.     #data:
  20.     #  temperature: 20.5
  21.     data_template:
  22.       temperature: >
  23.        {{states. input_number.pomeriggio_weekand.state | float }}
  24.     #- service: climate.set_temperature
  25.     #  data_template:
  26.     #    entity_id: clima.termostato
  27.     #    temperature: "{{states.input_number.pomeriggio_weekand.state | float }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement