Pulse counter Domoticz MQTT output misses quotes in svalue.
Posted: 15 Jul 2021, 16:05
When the pulse counter is set to output only one value (delta option), the svalue message is missing the quotes. This is interpreted by Domoticz as invalid message.
Mqtt-output:
1) For one (delta) svalue:
{"idx":37,"RSSI":8,"nvalue":0,"svalue":2800.00}
2) For two (delta + total) svalues :
{"idx":37,"RSSI":8,"nvalue":0,"svalue":"2800.00;3124.00"}
note: The quotes (''2800") are missing in case 1 when only the counting is requested (delta option).
Work around: output two values(delta/total option) and ignore the second value in Domoticz.
Build : 20114 - Mega
Mqtt-output:
1) For one (delta) svalue:
{"idx":37,"RSSI":8,"nvalue":0,"svalue":2800.00}
2) For two (delta + total) svalues :
{"idx":37,"RSSI":8,"nvalue":0,"svalue":"2800.00;3124.00"}
note: The quotes (''2800") are missing in case 1 when only the counting is requested (delta option).
Work around: output two values(delta/total option) and ignore the second value in Domoticz.
Build : 20114 - Mega