-
Notifications
You must be signed in to change notification settings - Fork 0
/
hold_charge.yaml
41 lines (41 loc) · 1.2 KB
/
hold_charge.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
alias: Powerwall Mode Hold Charge
sequence:
- service: number.set_value
data:
value: "{{ states('sensor.powerwall_battery_charge')|int }}"
target:
entity_id: number.powerwall_cloud_backup_reserve
alias: Set reserve to current charge value
- 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 solar energy only
- if:
- condition: not
conditions:
- condition: state
entity_id: input_select.powerwall_battery_custom_modes
state: No discharge
then:
- service: input_select.select_option
data:
option: No discharge
target:
entity_id: input_select.powerwall_battery_custom_modes
alias: Ensure powerwall custom mode selector is correctly set
mode: single
icon: mdi:battery-remove