Re: Tasmota: Daten per MQTT empfangen
Verfasst: Do 2. Mär 2023, 22:41
Kann es sein, dass Du nicht das Script von hier genommen hast, sondern ein geändertes? Versuch mal bitte folgendes:
Oder stell Dein Script hier mal ein.
Code: Alles auswählen
>D
;start, define variables
cnt=1
timer=1
w_new=0
w_delta=0
p:w_last=0
>B
;setup sensor
->sensor53 r
>T
w_new=WAERME#w_total
>S
timer=int(time)
if chg[timer]>0
then
switch timer
case 0
print It is midnight
print wakeup start
sml(-1 1 "2400:8N1")
for cnt 1 72 1
sml(1 1 "55555555555555555555")
next
print wakeup end
print wait for the meter
delay(350)
sml(-1 1 "2400:8E1")
print request data
sml(1 1 "105BFE5916")
case 1
print It is a minute after midnight
print calculating daily value
print w_last %0w_last%
w_delta=w_new-w_last
w_last=w_new
svars
print w_new %0w_new%
print w_delta %0w_delta%
ends
endif
>J
,"w_delta":%w_delta%
>W
===============
Vortagsverbrauch: {m} %3w_delta% KWh
>M 1
+1,3,rE1,0,2400,WAERME,1
1,0C06bcd8@1,Total Energy,kWh,w_total,0
1,0C13bcd8@1000,Total volume,m³,v_total,2
1,0C2Bbcd8@1,Current power,W,p_act,0
1,0B3Bbcd6@1000,Current flow,m³/h,F_akt,3
1,0A5Abcd4@10,Flow temp,°C,t_flow,1
1,0A5Ebcd4@10,Return temp,°C,t_return,1
1,0A62bcd4@10,Temp diff,°C,t_diff,2
#