62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
- alias: WattWise - Charge from Grid
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- input_boolean.wattwise_battery_charging_from_grid
|
|
from: null
|
|
to: null
|
|
conditions: []
|
|
actions:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.wattwise_battery_charging_from_grid
|
|
state: 'on'
|
|
sequence:
|
|
- action: e3dc_rscp.manual_charge
|
|
data:
|
|
device_id: de70267c0b7b750fd9b9fc05c960e6af
|
|
charge_amount: '{{ (states(''sensor.wattwise_battery_charge_from_grid'')
|
|
| float * 1000) | int }}'
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.wattwise_battery_charging_from_grid
|
|
state: 'off'
|
|
sequence:
|
|
- action: e3dc_rscp.manual_charge
|
|
data:
|
|
device_id: de70267c0b7b750fd9b9fc05c960e6af
|
|
charge_amount: 0
|
|
mode: single
|
|
- alias: WattWise - Discharge Control
|
|
description: ''
|
|
triggers:
|
|
- trigger: state
|
|
entity_id:
|
|
- sensor.wattwise_maximum_discharge_possible
|
|
from: null
|
|
to: null
|
|
conditions: []
|
|
actions:
|
|
- action: e3dc_rscp.set_power_limits
|
|
data:
|
|
device_id: de70267c0b7b750fd9b9fc05c960e6af
|
|
max_discharge: '{{ (states(''sensor.wattwise_maximum_discharge_possible'') |
|
|
float * 1000) | int }}'
|
|
mode: single
|
|
- alias: Trigger WattWise Manual Optimization
|
|
description: Fires MANUAL_BATTERY_OPTIMIZATION event when turned on
|
|
triggers:
|
|
- entity_id: input_boolean.wattwise_manual_optimization
|
|
to: 'on'
|
|
trigger: state
|
|
conditions: []
|
|
actions:
|
|
- event: MANUAL_BATTERY_OPTIMIZATION
|
|
- target:
|
|
entity_id: input_boolean.wattwise_manual_optimization
|
|
action: input_boolean.turn_off
|
|
data: {}
|
|
mode: single
|