mqtt : nvalue (type integer ?)

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
mrelfire
Posts: 40
Joined: Wednesday 03 August 2016 15:12
Target OS: Windows
Domoticz version:
Contact:

mqtt : nvalue (type integer ?)

Post by mrelfire »

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 ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: mqtt : nvalue (type integer ?)

Post by waaren »

mrelfire wrote: 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
=> is it possible to make nvalue a float ?
nValue is defined in the domoticz database as an integer; so my guess is no
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
mrelfire
Posts: 40
Joined: Wednesday 03 August 2016 15:12
Target OS: Windows
Domoticz version:
Contact:

Re: mqtt : nvalue (type integer ?)

Post by mrelfire »

I am suggesting an evolution ;)
but it is a modest suggestion ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest