| alias |
SCE Tariff (Winter) |
| description |
|
| trigger |
| platform |
at |
variables |
time |
08:00:00 |
|
|
| platform |
at |
variables |
time |
16:00:00 |
|
|
| platform |
at |
variables |
time |
21:00:00 |
|
|
|
| condition |
| condition |
value_template |
template |
{{ now().month >= 10 or now().month <= 5 }} |
|
|
| action |
| service |
target |
data |
select.select_option |
|
|
|
|
| mode |
single |
alias: SCE Tariff (Summer Weekday)
description: ""
trigger:
- platform: time
at: "08:00:00"
variables:
tariff: offpeak
- platform: time
at: "16:00:00"
variables:
tariff: onpeak
- platform: time
at: "21:00:00"
variables:
tariff: offpeak
condition:
- condition: template
value_template: "{{ now().month >= 6 and now().month <= 9 and now().weekday() < 5 }}"
action:
- service: select.select_option
target:
entity_id: select.sce
data:
option: "{{ tariff }}"
mode: single
alias: SCE Tariff (Summer Weekend)
description: ""
trigger:
- platform: time
at: "08:00:00"
variables:
tariff: offpeak
- platform: time
at: "16:00:00"
variables:
tariff: midpeak
- platform: time
at: "21:00:00"
variables:
tariff: offpeak
condition:
- condition: template
value_template: "{{ now().month >= 6 and now().month <= 9 and now().weekday() >= 5 }}"
action:
- service: select.select_option
target:
entity_id: select.sce
data:
option: "{{ tariff }}"
mode: single