mqtt : nvalue (type integer ?)
Posted: Thursday 23 August 2018 9:27
Hi,
I try to update a single humidity through mqtt and it seems when nvalue is not an integer it is rejected
it is working fine on HTTP but below of examples of problems :
test 1 => rejected
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52.5, "svalue" : "0"}
test 2 => rejected
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52,5, "svalue" : "0"}
test 3 => ok
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52, "svalue" : "0"}
=> is it possible to make nvalue a float ?
I try to update a single humidity through mqtt and it seems when nvalue is not an integer it is rejected
it is working fine on HTTP but below of examples of problems :
test 1 => rejected
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52.5, "svalue" : "0"}
test 2 => rejected
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52,5, "svalue" : "0"}
test 3 => ok
018-08-22 08:56:49.604 MQTT: Topic: domoticz/in, Message: { "command": "udevice", "idx":774,"nvalue" : 52, "svalue" : "0"}
=> is it possible to make nvalue a float ?