The monitor is connected with Domoticz. I know that the standard Domoticz client keeps the monitor in PS=1 mode. That's why I have a script running that fires a PS=0 command every minute. That way both the OTMonitor webgui and Domoticz are kept up to date.
This setup was working fine until I upgraded to 6.3.
After a while I noticed that monitor was kind of stuck. Domoticz nor the otmonitor status window shows updated values.
journalctl -u shows me this console output:
Code: Select all
Dec 12 08:29:27 pi systemd[1]: Started otmonitor.
Dec 12 16:48:51 pi otmonitor[717]: can't read "mqtt": no such variable
Dec 12 16:48:51 pi otmonitor[717]: while executing
Dec 12 16:48:51 pi otmonitor[717]: "$mqtt publish $topic [json build object json2 $d] $qos $retain"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "json2" line 6)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "json2 {def {"" string} value {T00630000,
Dec 12 16:48:51 pi otmonitor[717]: R801C0000}}"
Dec 12 16:48:51 pi otmonitor[717]: (in namespace eval "::json::layout" script line 1)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "namespace eval layout [list $layout {*}$args]"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "build" line 2)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "json build object json2 $data"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "mqttpub" line 8)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "mqttpub $cfg(mqtt,eventtopic)/Message $data 0"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "mqttmessage" line 4)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "mqttmessage $src"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "otmessage" line 5)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "otmessage $us $line [expr {$type & 7}] $id $data"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "process" line 13)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "process [append data $line]"
Dec 12 16:48:51 pi otmonitor[717]: (procedure "receive" line 6)
Dec 12 16:48:51 pi otmonitor[717]: invoked from within
Dec 12 16:48:51 pi otmonitor[717]: "receive"
Dec 12 23:48:52 pi systemd[1]: Stopping otmonitor...
Dec 12 23:48:52 pi systemd[1]: Stopped otmonitor.
Dec 12 23:48:52 pi systemd[1]: Started otmonitor.
Dec 13 06:44:53 pi otmonitor[19675]: can't read "mqtt": no such variable
Dec 13 06:44:53 pi otmonitor[19675]: while executing
Dec 13 06:44:53 pi otmonitor[19675]: "$mqtt publish $topic [json build object json2 $d] $qos $retain"
Dec 13 06:44:53 pi otmonitor[19675]: (procedure "json2" line 6)
Dec 13 06:44:53 pi otmonitor[19675]: invoked from within
Dec 13 06:44:53 pi otmonitor[19675]: "json2 {def {"" string} value {BE01C0000,
Dec 13 06:44:53 pi otmonitor[19675]: AC0091200}}"
When "can't read "mqtt": no such variable" is thrown I was not interacting myself with otmonitor.
Is this a known issue? Is there more I can do to find the cause of the can't read "mqtt" error?
I have no logs for the times mentioned above. I've enabled full logging while my experiment with mqtt disabled is running.
In the end I want to enable mqtt again to allow for the latest version of the firmware so I can still feed the Opentherm data into Domoticz.