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.
Post Reply
mrelfire
Posts: 54
Joined: Wednesday 03 August 2016 15:12
Target OS: Windows
Domoticz version:
Contact:

mqtt : nvalue (type integer ?)

Post by mrelfire » 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 ?

User avatar
waaren
Posts: 1227
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: mqtt : nvalue (type integer ?)

Post by waaren » Thursday 23 August 2018 9:47

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
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

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

Re: mqtt : nvalue (type integer ?)

Post by mrelfire » Thursday 23 August 2018 13:19

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests