Hello, need your help. I would like to switch 3 heating coils depending on the feed current. The 3 levels should be controlled by a shelly (2pmplus). Level 1 S0, Level 2 S1, Level 3 S0+S1 … I managed to get the query about the excess power. But I’m overwhelmed with the loops if, then, else. The following controls should work:
P < 400W no function
P > 400W Level1
p > 800W < 1200W Level2
p > 1200W level 3
Have no idea how I can do that between the levels up and down or switched off.
Here is the Yaml I have so far:
alias: Warmwasser
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.einspeisung
for:
hours: 0
minutes: 0
seconds: 10
above: 400
id: Stufe1
below: 799.9
- platform: numeric_state
entity_id: sensor.einspeisung
for:
hours: 0
minutes: 0
seconds: 10
above: 800
id: Stufe2
below: 1199.9
- platform: numeric_state
entity_id: sensor.einspeisung
for:
hours: 0
minutes: 0
seconds: 10
above: 1200
id: Stufe 3
condition: []
action:
- if:
- condition: trigger
id: Stufe1
then:
- service: input_booleam.turn_on
- type: turn_on
device_id: 99c001e5a0cd6c43782fe1d3e3e15f5c
entity_id: switch.wasser_heizung_switch_0
domain: switch
mode: single
Thx for your help