Page 1 of 1

Config Number actionnable in DZVENT ?

Posted: Thursday 16 May 2024 18:21
by rezzalex
Hello,

using ZwaveJsUI, now that we have the configuration items available in DZ, in the configuration menu of the MQTT Auto Discovery Hardware page,

can we use them, read or change values from scripts, DZVent first ?

thank you

Re: Config Number actionnable in DZVENT ?

Posted: Thursday 16 May 2024 19:50
by waltervl
Definitely not directly from dzvents. Perhaps whith an API call through OpenUrl() but then you have to find out with browser developer tool (F12) what the API call is. Or look in the source code.

Re: Config Number actionnable in DZVENT ?

Posted: Friday 17 May 2024 0:07
by waltervl
It seems there is an undocumented MQTTAD_UpdateNumber API command https://github.com/domoticz/domoticz/bl ... .cpp#L4883

So should be something like

Code: Select all

/json.htm?type=command&param=MQTTAD_UpdateNumber&idx=HARDWAREID&name=DEVICENAME&value=NUMBERVALUE
HardwareID is the MQTTAD Hardware ID from page Setup-Hardware. So not the device IDX in Setup-Hardware-MQTTAD-Setup button
It seems to select the to be updated Number device based on the device name found in Setup-Hardware-MQTTAD-Setup button

You can test this out, all on your own risk......