hi, I’m trying to create automation where I can set only overage from solar production to heat up water in electric boiler.
I’m using a triac regulator that can change watts dynamically based on 0-10V input where I’m using zigbee volt regulator where 0V input is 0Watts and 10V is maximum 2200W (not 100% accurate but usable)
I tried reading Active Power from Inverter sensor to set the Watts that are being used to heat up the boiler water but if certain value is set i can’t calculate actively the available Voltage + available V for generation, I came up with something like this, but the value is not OK to use after first condition is met.
any suggestion is welcome
alias: test volt change
description: ""
trigger:
- platform: state
entity_id:
- sensor.active_power
condition: []
action:
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 200
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 50
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 400
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 55
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 600
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 59
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 800
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 63
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 1000
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 67
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
- choose:
- conditions:
- type: is_power
condition: device
device_id: 67c2c70c4ab178f24c58fa27c4a0bc9a
entity_id: 5e3d1650dbd10ab4232306a68c56f980
domain: sensor
above: 1500
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 80
target:
device_id: 3d9e496d8af7c778cce199e1787a9367
- type: turn_on
device_id: a7771b528f24216c3f901e50da0ac4ca
entity_id: 40603433efa13b58af801a2e7c95dbbe
domain: switch
mode: single