Ich habe ein Problem beim speichern der Daten in DBLog. Ich bekomme kein desired-temp reading bei aktuell 4 Fritz Comet-DECT Thermostaten:
alle Readings werden korrekt übertragen und in der DB gespeichert, bis auf desired-temp, also die Solltemperatur. Im event-monitor sehe ich jeweils 2 Einträge
2021-03-25 09:27:23 FBDECT FBDECT_fbahahttp_eltern_10971_0489920 desired-temp: 21.5 C
2021-03-25 09:27:23 FBDECT FBDECT_fbahahttp_eltern_10971_0489920 desired-temp: 21.5 C
was aber scheinbar nur den state Eintrag aktualisiert:
"2021-03-25 09:32:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "state: desired-temp: 21.5 C" "state" "desired-temp" "21.5 C"
"2021-03-25 09:32:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "state: desired-temp: 21.5 C" "state" "desired-temp" "21.5 C"
die Devices wurden per Autocreate erzeugt, hier mal ein List eines Devices:
Internals:
CFGFN
DEF fbahahttp_eltern:10971_0489920 actuator,tempSensor
FUUID 605c276e-f33f-2f94-058c-226f2661b418aeac
IODev fbahahttp_eltern
LASTInputDev fbahahttp_eltern
MSGCNT 30
NAME FBDECT_fbahahttp_eltern_10971_0489920
NR 1626026
STATE desired-temp: 21.5 C
TYPE FBDECT
fbahahttp_eltern_MSGCNT 30
fbahahttp_eltern_TIME 2021-03-25 09:32:23
id 10971_0489920
props actuator,tempSensor
webCmd desired-temp
.attraggr:
.attrminint:
power:120
Helper:
DBLOG:
AIN:
DbLog:
TIME 1616661143.49701
VALUE 10971 0489920
FBNAME:
DbLog:
TIME 1616661143.49701
VALUE Küche rechts
FBPROP:
DbLog:
TIME 1616661143.49701
VALUE actuator,tempSensor
FBTYPE:
DbLog:
TIME 1616661143.49701
VALUE Comet DECT
ID:
DbLog:
TIME 1616661143.49701
VALUE 19
battery:
DbLog:
TIME 1616661143.49701
VALUE 30 %
batteryPercent:
DbLog:
TIME 1616661143.49701
VALUE 30
batteryState:
DbLog:
TIME 1616661143.49701
VALUE ok
batterylow:
DbLog:
TIME 1616661143.49701
VALUE 0
boostactive:
DbLog:
TIME 1616661143.49701
VALUE no
boostactiveendtime:
DbLog:
TIME 1616661143.49701
VALUE N/A
day-temp:
DbLog:
TIME 1616661143.49701
VALUE 21.0
devicelock:
DbLog:
TIME 1616661143.49701
VALUE no
errorcode:
DbLog:
TIME 1616661143.49701
VALUE noError (0)
fwversion:
DbLog:
TIME 1616661143.49701
VALUE 03.68
holidayactive:
DbLog:
TIME 1616661143.49701
VALUE no
locked:
DbLog:
TIME 1616661143.49701
VALUE no
nextPeriodStart:
DbLog:
TIME 1616661143.49701
VALUE 2021-03-25 20:00:00
nextPeriodTemp:
DbLog:
TIME 1616661143.49701
VALUE 16.0
night-temp:
DbLog:
TIME 1616661143.49701
VALUE 16.0
present:
DbLog:
TIME 1616661143.49701
VALUE yes
state:
DbLog:
TIME 1616661143.49701
VALUE desired-temp
summeractive:
DbLog:
TIME 1616661143.49701
VALUE no
tempadjust:
DbLog:
TIME 1616661143.49701
VALUE 0.0
temperature:
DbLog:
TIME 1616661143.49701
VALUE 22.0
windowopenactiv:
DbLog:
TIME 1616661143.49701
VALUE no
windowopenactiveendtime:
DbLog:
TIME 1616661143.49701
VALUE N/A
READINGS:
2021-03-25 09:32:23 AIN 10971 0489920
2021-03-25 09:32:23 FBNAME Küche rechts
2021-03-25 09:32:23 FBPROP actuator,tempSensor
2021-03-25 09:32:23 FBTYPE Comet DECT
2021-03-25 09:32:23 ID 19
2021-03-25 09:32:23 battery 30 %
2021-03-25 09:32:23 batteryPercent 30
2021-03-25 09:32:23 batteryState ok
2021-03-25 09:32:23 batterylow 0
2021-03-25 09:32:23 boostactive no
2021-03-25 09:32:23 boostactiveendtime N/A
2021-03-25 09:32:23 day-temp 21.0 C
2021-03-25 09:32:23 desired-temp 21.5 C
2021-03-25 09:32:23 devicelock no
2021-03-25 09:32:23 errorcode noError (0)
2021-03-25 09:32:23 fwversion 03.68
2021-03-25 09:32:23 holidayactive no
2021-03-25 09:32:23 locked no
2021-03-25 09:32:23 nextPeriodStart 2021-03-25 20:00:00
2021-03-25 09:32:23 nextPeriodTemp 16.0 C
2021-03-25 09:32:23 night-temp 16.0 C
2021-03-25 09:32:23 present yes
2021-03-25 09:32:23 state desired-temp: 21.5 C
2021-03-25 09:32:23 summeractive no
2021-03-25 09:32:23 tempadjust 0.0 C
2021-03-25 09:32:23 temperature 22.0 C (measured)
2021-03-25 09:32:23 windowopenactiv no
2021-03-25 09:32:23 windowopenactiveendtime N/A
Attributes:
IODev fbahahttp_eltern
event-min-interval power:120
room FBDECTInternals:
CFGFN
DEF fbahahttp_eltern:10971_0489920 actuator,tempSensor
FUUID 605c276e-f33f-2f94-058c-226f2661b418aeac
IODev fbahahttp_eltern
LASTInputDev fbahahttp_eltern
MSGCNT 30
NAME FBDECT_fbahahttp_eltern_10971_0489920
NR 1626026
STATE desired-temp: 21.5 C
TYPE FBDECT
fbahahttp_eltern_MSGCNT 30
fbahahttp_eltern_TIME 2021-03-25 09:32:23
id 10971_0489920
props actuator,tempSensor
webCmd desired-temp
.attraggr:
.attrminint:
power:120
Helper:
DBLOG:
AIN:
DbLog:
TIME 1616661143.49701
VALUE 10971 0489920
FBNAME:
DbLog:
TIME 1616661143.49701
VALUE Küche rechts
FBPROP:
DbLog:
TIME 1616661143.49701
VALUE actuator,tempSensor
FBTYPE:
DbLog:
TIME 1616661143.49701
VALUE Comet DECT
ID:
DbLog:
TIME 1616661143.49701
VALUE 19
battery:
DbLog:
TIME 1616661143.49701
VALUE 30 %
batteryPercent:
DbLog:
TIME 1616661143.49701
VALUE 30
batteryState:
DbLog:
TIME 1616661143.49701
VALUE ok
batterylow:
DbLog:
TIME 1616661143.49701
VALUE 0
boostactive:
DbLog:
TIME 1616661143.49701
VALUE no
boostactiveendtime:
DbLog:
TIME 1616661143.49701
VALUE N/A
day-temp:
DbLog:
TIME 1616661143.49701
VALUE 21.0
devicelock:
DbLog:
TIME 1616661143.49701
VALUE no
errorcode:
DbLog:
TIME 1616661143.49701
VALUE noError (0)
fwversion:
DbLog:
TIME 1616661143.49701
VALUE 03.68
holidayactive:
DbLog:
TIME 1616661143.49701
VALUE no
locked:
DbLog:
TIME 1616661143.49701
VALUE no
nextPeriodStart:
DbLog:
TIME 1616661143.49701
VALUE 2021-03-25 20:00:00
nextPeriodTemp:
DbLog:
TIME 1616661143.49701
VALUE 16.0
night-temp:
DbLog:
TIME 1616661143.49701
VALUE 16.0
present:
DbLog:
TIME 1616661143.49701
VALUE yes
state:
DbLog:
TIME 1616661143.49701
VALUE desired-temp
summeractive:
DbLog:
TIME 1616661143.49701
VALUE no
tempadjust:
DbLog:
TIME 1616661143.49701
VALUE 0.0
temperature:
DbLog:
TIME 1616661143.49701
VALUE 22.0
windowopenactiv:
DbLog:
TIME 1616661143.49701
VALUE no
windowopenactiveendtime:
DbLog:
TIME 1616661143.49701
VALUE N/A
READINGS:
2021-03-25 09:32:23 AIN 10971 0489920
2021-03-25 09:32:23 FBNAME Küche rechts
2021-03-25 09:32:23 FBPROP actuator,tempSensor
2021-03-25 09:32:23 FBTYPE Comet DECT
2021-03-25 09:32:23 ID 19
2021-03-25 09:32:23 battery 30 %
2021-03-25 09:32:23 batteryPercent 30
2021-03-25 09:32:23 batteryState ok
2021-03-25 09:32:23 batterylow 0
2021-03-25 09:32:23 boostactive no
2021-03-25 09:32:23 boostactiveendtime N/A
2021-03-25 09:32:23 day-temp 21.0 C
2021-03-25 09:32:23 desired-temp 21.5 C
2021-03-25 09:32:23 devicelock no
2021-03-25 09:32:23 errorcode noError (0)
2021-03-25 09:32:23 fwversion 03.68
2021-03-25 09:32:23 holidayactive no
2021-03-25 09:32:23 locked no
2021-03-25 09:32:23 nextPeriodStart 2021-03-25 20:00:00
2021-03-25 09:32:23 nextPeriodTemp 16.0 C
2021-03-25 09:32:23 night-temp 16.0 C
2021-03-25 09:32:23 present yes
2021-03-25 09:32:23 state desired-temp: 21.5 C
2021-03-25 09:32:23 summeractive no
2021-03-25 09:32:23 tempadjust 0.0 C
2021-03-25 09:32:23 temperature 22.0 C (measured)
2021-03-25 09:32:23 windowopenactiv no
2021-03-25 09:32:23 windowopenactiveendtime N/A
Attributes:
IODev fbahahttp_eltern
event-min-interval power:120
room FBDECT
erstelle ich mir ein attribut userreadings
userReadings desired-temp { (ReadingsNum("FBDECT_fbahahttp_eltern_10971_0489920","state",15)) }
wird das nun auch korrekt in die DB eingetragen
gibt es dafür eine Lösung?
Gruß Thomas
nach dem setzen des userreadings attributes, treten nun Folgefehler auf.
die Aktualisierung der Werte desired-temp erfolgt einmalig richtig.
beim nächsten Mal wird der Wert vom Event einmal mit Unit und einmal ohne Unit eingetragen
"2021-03-25 11:37:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5" "desired-temp" "21.5" ""
"2021-03-25 11:42:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5 C" "desired-temp" "21.5" "C"
"2021-03-25 11:42:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5" "desired-temp" "21.5" ""
"2021-03-25 11:47:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5 C" "desired-temp" "21.5" "C"
"2021-03-25 11:47:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5" "desired-temp" "21.5" ""
"2021-03-25 11:52:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5 C" "desired-temp" "21.5" "C"
"2021-03-25 11:52:23" "FBDECT_fbahahttp_eltern_10971_0489920" "FBDECT" "desired-temp: 21.5" "desired-temp" "21.5" ""
Ich vermute, einmal das Event direkt und einmal das Userreading
deaktiviere ich jetzt wieder das Userreading, so wird nur noch einmal das Event mit Unit eingetragen, anschließend erfolgt bei neuen Events keine Aktualisierung mehr .
ein Event-on-Change-Reading hilft hier nicht mehr, da es immer einen Wert mit Einheit und einen ohne Einheit gibt... :(
hat jemand eine Idee, was man hier machen könnte?
Edit:
Wenn ich ein anderes Userreading (desired-temp-num) mache, funktioniert es mit diesem Reading. Das "normale" desired-temp wird dann nicht mehr geschrieben.
Das state Reading ist nicht gut gemacht:
Zitat
2021-03-25 09:32:23 state desired-temp: 21.5 C
Es suggeriert dass es eigentlich das Reading desired-temp ist.
Im DbLog könntest du mit dem Attr addStateEvent spielen. Besser wäre es m.M. nach der Modulautor würde das state Reading umbauen, z.B. in:
Zitat
2021-03-25 09:32:23 state desired-temp - 21.5 C
Grüße,
Heiko