Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - id: start_heating_toalett
- alias: Start heating (scheduled) - toalett
- trigger:
- # Don't use 00 !!!
- - platform: time_pattern
- minutes: 0
- id: "fullhour"
- - platform: time_pattern
- minutes: 15
- id: "fullhour"
- - platform: time_pattern
- minutes: 30
- id: "fullhour"
- - platform: time_pattern
- minutes: 45
- id: "fullhour"
- action:
- - choose:
- - conditions:
- - condition: trigger
- id: "fullhour"
- - condition: template
- value_template: >-
- {{ states('sensor.nordpool_kwh_se4_sek_2_095_025')|float(0) <=
- states('input_number.electricity_price_threshold_toalett')|float(0) }}
- - condition: template
- value_template: >-
- {{(today_at(states('input_datetime.high_temp_period_start_1_toalett')) <= now()
- and today_at(states('input_datetime.high_temp_period_end_1_toalett')) >= now())
- or (today_at(states('input_datetime.high_temp_period_start_2_toalett')) <= now()
- and today_at(states('input_datetime.high_temp_period_end_2_toalett')) >= now())
- or (today_at(states('input_datetime.high_temp_period_start_3_toalett')) <= now()
- and today_at(states('input_datetime.high_temp_period_end_3_toalett')) >= now())}}
- sequence:
- - service: climate.set_temperature
- target:
- entity_id: climate.golvvarme_toalet_nere
- data:
- temperature: " {{ states('input_number.temperatur_high_toalett') | float(1) }} "
- hvac_mode: heat
Advertisement
Add Comment
Please, Sign In to add comment