-
Notifications
You must be signed in to change notification settings - Fork 0
/
time_based_solar.yaml
44 lines (44 loc) · 1.31 KB
/
time_based_solar.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
alias: Powerwall Mode Time based Solar
sequence:
- service: number.set_value
data:
value: >-
{{ states("input_number.powerwall_battery_backup_reserve_operation")|int
}}
target:
entity_id: number.powerwall_cloud_backup_reserve
alias: >-
Set reserve to helper value
input_number.powerwall_battery_backup_reserve_operation
- service: select.select_option
data:
option: Time-Based Control
target:
entity_id: select.powerwall_cloud_operation_mode
alias: Set mode to 'time-based control'
- service: select.select_option
data:
option: "No"
target:
entity_id: select.powerwall_cloud_grid_charging
alias: Disable grid charging
- service: select.select_option
data:
option: Solar
target:
entity_id: select.powerwall_cloud_energy_exports
alias: Export set to 'solar' only
- if:
- condition: not
conditions:
- condition: state
entity_id: input_select.powerwall_battery_custom_modes
state: Time based solar
then:
- service: input_select.select_option
data:
option: Time based solar
target:
entity_id: input_select.powerwall_battery_custom_modes
alias: Ensure powerwall custom mode selector is correctly set
mode: single