Hallo
Ich bin neu hier.
Ich habe vor meinen Pufferspeicher mit E-Heizpatrone zu ünterstützen.
Auf der Suche nach einer Steuerung bin ich auf dieses Forum gestoßen.
Konnte das Script noch nicht unter real testen, da meine Heizung noch nicht da ist.
habe vor die Heizung in 3 Stufen a 500 W zu schalten. (3x Shelly 1)
Hab`s ein bisschen geändert und hoffe das das so funktioniert.
Wäre schön wenn man jetzt noch in der Weboberfläche den Schaltzustand der Stufen sehen könnte.
Evtl. 3 Checkboxen
Hoffe ihr könnt mir dabei helfen.
Vielen Dank im Vorraus.
Thomas
>D
pcurr=0
>B
=>sensor53 r
>M 1
+1,3,s,16,9600,SML
1,77070100020800ff@1000,Lieferung,kWh,export_total_kwh,0
1,77070100010800ff@1000,Bezug,kWh,total_kwh,00
1,77070100100700ff@1,Consumption (Current),W,curr_w,0
>T
; positv ist einfacher
pcurr=0-SML#curr_w
>S
if pcurr>1000
then
=>webquery http://192.168.xxx.1/relay/0/?turn=on GET ENDON
stufe1=1
endif
if pcurr>1000
and stufe1=1
then
=>webquery http://192.168.xxx.2/relay/0/?turn=on GET ENDON
stufe2=1
endif
if pcurr>1000
and stufe2=1
then
=>webquery http://192.168.xxx.3/relay/0/?turn=on GET ENDON
stufe3=1
endif
if pcurr<250
and stufe3=1
then
=>webquery http://192.168.xxx.3/relay/0/?turn=of GET ENDON
Stufe3=0
endif
if pcurr<250
and stufe2=1
and stufe3=0
then
=>webquery http://192.168.xxx.2/relay/0/?turn=of GET ENDON
Stufe2=0
endif
if pcurr<250
and stufe1=1
and stufe2=0
then
=>webquery http://192.168.xxx.1/relay/0/?turn=of GET ENDON
Stufe1=0
endif
#