Formato orari TOU: ogni fascia è una stringa
"HH:MM_HH:MM_prezzo"Esempio:"08:00_13:00_0.31"= dalle 8:00 alle 13:00 al prezzo 0.31 €/kWh
service: epcube.set_tou_schedule
data:
peak_times:
- "08:00_13:00_0.31"
- "20:00_23:00_0.31"
mid_peak_times:
- "13:00_18:00_0.25"
off_peak_times:
- "00:00_08:00_0.15"
- "18:00_20:00_0.15"
- "23:00_24:00_0.15"
switch_to_mode: trueservice: epcube.set_tou_schedule
data:
# Orari invernali
peak_times:
- "08:00_13:00_0.31"
- "20:00_23:00_0.31"
mid_peak_times:
- "13:00_18:00_0.25"
off_peak_times:
- "00:00_08:00_0.15"
- "18:00_20:00_0.15"
# Orari estivi (ora legale)
daylight_peak_times:
- "09:00_14:00_0.31"
- "21:00_24:00_0.31"
daylight_mid_peak_times:
- "14:00_19:00_0.25"
daylight_off_peak_times:
- "00:00_09:00_0.15"
- "19:00_21:00_0.15"
daylight_saving_time: true
switch_to_mode: trueautomation:
- id: 'set_tou_winter'
alias: 'Imposta Tariffazione Invernale'
trigger:
platform: time
at: '03:00:00'
condition:
- condition: template
value_template: '{{ now().month < 4 or now().month > 10 }}'
action:
service: epcube.set_tou_schedule
data:
peak_times:
- "08:00_13:00_0.31"
- "20:00_23:00_0.31"
mid_peak_times:
- "13:00_18:00_0.25"
off_peak_times:
- "00:00_08:00_0.15"
- "18:00_20:00_0.15"
- "23:00_24:00_0.15"
switch_to_mode: trueservice: epcube.set_tou_schedule
data:
# Giorni lavorativi
peak_times:
- "08:00_12:00_0.31"
- "15:00_18:00_0.31"
- "20:00_23:00_0.31"
off_peak_times:
- "00:00_08:00_0.15"
- "12:00_15:00_0.15"
- "18:00_20:00_0.15"
- "23:00_24:00_0.15"
active_week: [1, 2, 3, 4, 5]
# Giorni festivi — tutto fuori picco
off_peak_times_non_workday:
- "00:00_24:00_0.15"
active_week_non_workday: [6, 7]
switch_to_mode: trueservice: epcube.set_operating_mode
data:
mode: "3"
backup_power_reserve_soc: 54service: epcube.set_operating_mode
data:
mode: "1"
self_consumption_reserve_soc: 5automation:
- alias: "Backup di notte"
trigger:
platform: time
at: "22:00:00"
action:
service: epcube.set_operating_mode
data:
mode: "3"
backup_power_reserve_soc: 60
- alias: "Autoconsumo di giorno"
trigger:
platform: time
at: "06:00:00"
action:
service: epcube.set_operating_mode
data:
mode: "1"
self_consumption_reserve_soc: 5