alias | description | trigger | condition | action | mode | |||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SCE Tariff (Winter) |
|
|
|
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