Hi zusammen,
ich habe mir aus dem wiki den Plot für die Behaglichkeitsanzeige aus Temperatur und Luftfeuchtigkeit erstellt.
GPlotfile:
#PlotProxy Func:logProxy_xy2Plot([[18,40],[24,33],[22,65],[17,75],[18,40]])
#PlotProxy Func:logProxy_xy2Plot([[19,20],[25,18],[27,32],[24,60],[21,80],[17,85],[16,75],[17,35],[19,20]])
#PlotProxy Func:logProxy_xy2Plot([[ReadingsVal("kue_MultiSensor","temperature",0),ReadingsVal("kue_MultiSensor","humidity",0)]])
plot "<IN>" using 1:2 axes x1y1 title 'Behaglich' ls l1fill lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Noch Behaglich' ls l4fill lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Wohnzimmer' ls l2fill lw 1 with points
Sensor:
Internals:
DEF d344759d 32
IODev ZWAVE1
LASTInputDev ZWAVE1
MSGCNT 482
NAME kue_MultiSensor
NR 41
STATE TRANSMIT_NO_ACK
TYPE ZWave
ZWAVE1_MSGCNT 482
ZWAVE1_RAWMSG 00040420028407
ZWAVE1_TIME 2016-12-19 14:33:02
ZWaveSubDevice no
homeId d344759d
isWakeUp 1
lastMsgSent 1482154382.83917
nodeIdHex 20
Readings:
2016-12-18 19:53:53 CMD ZW_APPLICATION_UPDATE
2016-07-30 19:52:02 UNPARSED SENSOR_BINARY 063004012200f7
2016-12-19 10:27:00 alarm HomeSecurity: Event cleared: Previous Events cleared
2016-12-19 10:27:00 basicSet 0
2016-12-19 14:33:02 battery 100 %
2016-12-18 19:53:55 configBatteryReportingThreshold 0
2016-12-18 19:53:56 configCommandOptions BasicSetDefault
2016-12-18 19:53:57 configEnableDisableLockConfiguration Disable
2016-12-18 19:53:58 configEnableMotionSensor EnabledLevel5MaximumSensitivity
2016-12-18 20:51:03 configGroup1Interval 3600
2016-12-18 20:51:03 configGroup1Reports 241
2016-12-18 20:51:03 configGroup2Interval 3600
2016-12-18 20:51:03 configGroup2Reports 0
2016-12-18 20:51:03 configGroup3Interval 3600
2016-12-18 20:51:03 configGroup3Reports 0
2016-12-18 20:51:03 configHumidityCalibration 0
2016-12-18 20:51:03 configHumidityReportingThreshold 10
2016-12-18 20:51:03 configLowBattery 20
2016-12-18 20:51:03 configLowTempAlarm Disabled
2016-12-18 20:51:03 configLuminanceCalibration 0
2016-12-18 20:51:03 configLuminanceReportingThreshold 100
2016-12-18 20:51:03 configOnTime 10
2016-12-18 20:51:03 configReportingThreshold Enabled
2016-12-18 20:51:03 configTemperatureCalibration 0
2016-12-18 20:51:04 configTemperatureReportingThreshold 20
2016-12-18 20:51:04 configUVReportingThreshold 2
2016-12-18 20:51:04 configUltravioletCalibration 0
2016-12-18 20:51:04 configWakeUp10MinutesOnPowerOn No
2016-12-18 19:52:01 config_9 256
2016-12-19 14:33:01 humidity 38 %
2016-12-19 14:33:02 luminance 7 Lux
2016-03-02 23:32:34 model Aeotec MultiSensor 6
2016-03-02 23:32:34 modelConfig aeotec/multisensor6.xml
2016-03-02 23:32:34 modelId 0086-0002-0064
2016-08-27 16:27:22 state TRANSMIT_NO_ACK
2016-12-19 14:33:00 temperature 19.8 C
2016-12-19 14:33:02 timeToAck 0.026
2016-12-19 14:33:02 transmit OK
2016-12-19 14:33:02 ultraviolet 0 UV
2016-12-19 14:33:02 wakeup notification
Attributes:
IODev ZWAVE1
WNMI_delay 0.3
classes ZWAVEPLUS_INFO VERSION MANUFACTURER_SPECIFIC ASSOCIATION_GRP_INFO ASSOCIATION POWERLEVEL ALARM WAKE_UP BATTERY SENSOR_BINARY SENSOR_MULTILEVEL CONFIGURATION FIRMWARE_UPDATE_MD MARK DEVICE_RESET_LOCALLY
group Multisensoren
room ZWave,a_EG_Küche
Die Formatierung des Plots funktioniert, auch der Sensor "Dot" wird angezeigt, aber leider nicht richtig (Koordinaten sind immer so, oder ähnung: (temo/hum -> 21/0)
Aus irgendeinem Grund wird also wohl das humidity Value nicht richtig ausgelesen.
Also erstes dachte ich, es liegt vielleicht am " %" im humidity Reading und habe folgendes versucht (ohne erfolg):
substr(ReadingsVal("kue_MultiSensor","humidity",0),0,length(ReadingsVal("kue_MultiSensor","humidity",0))-2)
Jetzt ist meine Vermutung dass es vielleicht an dem unterschiedlichen timestamp der Readings "temperature" und "humidity" liegt - könnte das sein?
Denn auch wenn ich im gplot file für das humidity-reading als default-angabe statt 0 die 10 wähle, wird die "Dot" humidity-Koordinate trotzdem bei 0 gesetzt.
Hat da jemand einen kleinen Tipp für mich?
Vielen Dank und freundliche Grüße
reen
timestamps sind egal da die werte direkt aus dem aktuellen readings geholt werden.
es liegt an den einheiten an beiden werten. nimm mal für beides ReadingsNum statt ReadingsVal:#PlotProxy Func:logProxy_xy2Plot([[ReadingsNum("kue_MultiSensor","temperature",0),ReadingsNuml("kue_MultiSensor","humidity",0)]])
gruss
andre
Danke andre, das hats gebracht! :)