Re: [90] MQTT Support
Posted: Tuesday 27 October 2020 12:15
I have a now and then problem left. I get the following message:
27-10-2020 12:04:32node: dc3574e1.4bac9msg : string[41]
"Unexpected token W in JSON at position 16"
27-10-2020 12:04:32node: 5627d816.529848
domoticz/out : msg.payload : Object
{ command: "udevice", idx: 86, svalue: "232W" }
The svalue is 232W and that's not correct and I get an error message.
The strange thing is that suddenly the W error disappears and I get a C error in a temperature device. The input from MQTT is:
27-10-2020 12:04:32node: dc3574e1.4bac9msg : string[41]
"Unexpected token W in JSON at position 16"
27-10-2020 12:04:32node: 5627d816.529848
domoticz/out : msg.payload : Object
{ command: "udevice", idx: 86, svalue: "232W" }
The svalue is 232W and that's not correct and I get an error message.
The strange thing is that suddenly the W error disappears and I get a C error in a temperature device. The input from MQTT is:
It looks that the mistake already starts when domoticz is making the mqtt/out message. Any idea what I can do about it?domoticz/out : msg.payload : Object
object
Battery: 255
EnergyMeterMode: "0"
RSSI: 12
description: ""
dtype: "General"
hwid: "11"
id: "000B0004"
idx: 86
name: "PV Vermogen Garage"
nvalue: 0
stype: "kWh"
svalue1: "200W"
svalue2: "1300400.0"
unit: 4