Ich versuche gerade, hinter folgende Fehlermeldungen zu kommen:
Argument "off" isn't numeric in numeric gt (>) at ./FHEM/98_SVG.pm line 1554.
Argument "on" isn't numeric in numeric gt (>) at ./FHEM/98_SVG.pm line 1554.
und
Argument "off" isn't numeric in sprintf at ./FHEM/98_SVG.pm line 2161.
Dazu habe ich das attr global stacktrace 1 gesetzt und sogar einen shutdown restart durchgeführt.
Nach einem Aufruf des problematischen Plots bekomme ich aber keine zusätzlichen Hinweise im Log, mit denen ich die Fehler etwas einkreisen könnte.
Die gplot-Datei vom problematischen Plot:
# Created by FHEM/98_SVG.pm, 2017-04-22 23:07:39
set terminal png transparent size <SIZE> crop
set output '<OUT>.png'
set xdata time
set timefmt "%Y-%m-%d_%H:%M:%S"
set xlabel " "
set title '<TL>'
set ytics ("off" 0, "on" 15, "40%" 40, "60%" 60, "80%" 80, "100%" 100)
set y2tics
set grid y2tics
set ylabel "Status(on/off) / Leistung %"
set y2label "Gasverbrauch in m³"
set yrange [0:100]
set y2range [0:<L1>]
#myFHEMdb Vitocrossal:Brenner
#myFHEMdb Vitocrossal:BrennerLeistung
#myFHEMdb hc.Gasverbrauch_Gesamt:countsPerDay
#myFHEMdb Vitocrossal:Speicherladepumpe
#myFHEMdb Vitocrossal:Zirkulationspumpe_2
plot "<IN>" using 1:2 axes x1y1 title 'Brennerstatus' ls l5 lw 2 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Brennerleistung' ls l0 lw 1.5 with steps,\
"<IN>" using 1:2 axes x1y2 title 'Gasverbrauch' ls l1fill lw 0.2 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Speicherladepumpe' ls l2fill lw 1 with steps,\
"<IN>" using 1:2 axes x1y1 title 'Zirkulationspumpe_2' ls l3fill lw 1 with steps
Zusätzlich vermisse ich den Timestamp von den Fehlermeldungen.
Die Fehlermeldung ist ja relativ klar, eines deiner devices liefert on/off statt eines numerischen Wertes, da müsstest du irgendwie so ran gehen (Beispiel)
#myFHEMdb Vitocrossal:Zirkulationspumpe_2::$val=~s/(on|off)(\d*).*/$1eq"on"?1:0/eg
Damit würden die on/off Werte auf 1 bzw. 0 gemappt.
Danke - das war's.
Die Umsetzungen auf 0/1 waren ursprünglich alle vorhanden - daher bin ich gar nicht auf die Idee gekommen, dass die verschwunden sein könnten.
LG
Holger