-
Notifications
You must be signed in to change notification settings - Fork 0
/
self_powered.yaml
44 lines (44 loc) · 1.28 KB
/
self_powered.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 Self-Powered
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: Self-Powered
target:
entity_id: select.powerwall_cloud_operation_mode
alias: Set mode to 'self-powered'
- 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: Self-Powered
then:
- service: input_select.select_option
data:
option: Self-Powered
target:
entity_id: input_select.powerwall_battery_custom_modes
alias: Ensure powerwall custom mode selector is correctly set
mode: single