Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Riscaldamento giorno weekand
- trigger:
- #- platform: time
- # at: 08:00:00
- - platform: template
- value_template: "{{ states('sensor.time') == (states.input_datetime.on_weekand.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
- - platform: homeassistant
- event: start
- condition:
- condition: time
- after: 08:00:00
- before: '21:30:00'
- weekday:
- - sat
- - sun
- action:
- service: climate.set_temperature
- #entity_id: climate.termostato
- #data:
- # temperature: 20.5
- data_template:
- temperature: >
- {{states. input_number.pomeriggio_weekand.state | float }}
- #- service: climate.set_temperature
- # data_template:
- # entity_id: clima.termostato
- # temperature: "{{states.input_number.pomeriggio_weekand.state | float }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement