For the next one who searches for a similar solution I’ll post my final solution.
I got a Itho Daalderop Close-up boiler, 15 liters. This is sufficient for a 7 minute shower session. It’s connected to my Intergas boiler in a way that if the electric boiler is empty the gas boiler will take over. As a fall-back.
These are the two automations I’ve used. I’m using my smart meter and the production data.
It’s a 2kW boiler and my solar setup has a maximum production of 3.5kW. Currently I can use the grid a battery, meaning my energy company creates a bill based on net usage.
- id: '1665000372764'
alias: Boiler solar on < -1250
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.power_consumption_net
for:
hours: 0
minutes: 2
seconds: 0
below: -1250
condition:
- condition: numeric_state
entity_id: sensor.envoy_122138022567_current_power_production
above: 1
- condition: state
entity_id: sensor.power_tariff
state: normal
- condition: numeric_state
entity_id: sensor.energy_day_net
below: 0
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.ac_13bc0cfe_9
mode: single
- id: '1665000420150'
alias: Boiler solar off > 1200
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.envoy_122138022567_current_power_production
below: 200
enabled: true
for:
hours: 0
minutes: 3
seconds: 0
- platform: numeric_state
entity_id: sensor.power_consumption_net
for:
hours: 0
minutes: 6
seconds: 0
above: 1200
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.ac_13bc0cfe_9
mode: single