Replies: 4 comments 4 replies
-
I can't answer about the scripter, but I noticed a detail (twice) looking odd: |
Beta Was this translation helpful? Give feedback.
-
I am not sure, i get an output, but is not readable, and state1"OFF" should be the memory VAR, so there is no operator needed? |
Beta Was this translation helpful? Give feedback.
-
I make progress:
I can read the state and switch, now i need to bring the second plug inGame. |
Beta Was this translation helpful? Give feedback.
-
When i add the second plug, both states are 0.00 , also when plug1 is ON :( hgp=(wcurr*gp)
|
Beta Was this translation helpful? Give feedback.
-
I update a bit:
I try to switch 2 PowerPlugs ON OFF with this script
`>D 48
pcurr=0
wcurr=0
;IP der S20 Steckdose
url2="[192.168.0.92]"
url1="[192.168.0.161]"
state1=""
state2=""
hgp=0
gp=0.299
if pcurr<-180 & state1"OFF"
then
=>WebSend %url1% POWER1 ON
endif
if pcurr>100 & state1"ON"
then
=>WebSend %url1% POWER1 OFF
endif
if pcurr<-200 & state2"ON"
then
=>WebSend %url2% POWER1 ON
endif
if pcurr>100
then
=>WebSend %url2% POWER1 OFF
endif
hgp=(wcurr*gp)
1,1-0:1.8.0255(@1,Gesamtverbrauch,KWh,total,4
1,1-0:1.8.096(@1,Verbrauch 1 Tag,KWh,total_1d,4
1,1-0:1.8.097(@1,Verbrauch 7 Tage,KWh,total_7d,4
1,1-0:1.8.098(@1,Verbrauch 30 Tage,KWh,total_30d,4
1,1-0:1.8.099(@1,Verbrauch 1 Jahr,KWh,total_365d,4
1,1-0:16.7.0255(@1,Verbrauch aktuell,W,current,17
1,1-0:2.8.0*255(@1,Gesamt Verschenkt,KWh,totalV,4
print %Pa%
State is NOW:
22:06:40.589 state1 ?
?�( ?ȱ&@22:06:40.591 state2 ?
?�( ?ȱ&@
But its not readable this way
Console on WebRequest
with
WebQuery http://192.168.0.92/cm?cmnd=Power GET
gives
16:04:12.224 MQT: stat/stromzaehler/RESULT = {"WebQuery":{"POWER":"OFF"}} 16:04:12.232 MQT: stat/stromzaehler/RESULT = {"WebSend":"Done"}
Help pls
Beta Was this translation helpful? Give feedback.
All reactions