Config Number actionnable in DZVENT ? Topic is solved

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
rezzalex
Posts: 49
Joined: Thursday 24 September 2020 14:30
Target OS: NAS (Synology & others)
Domoticz version: Beta
Contact:

Config Number actionnable in DZVENT ?

Post 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
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Config Number actionnable in DZVENT ?

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Config Number actionnable in DZVENT ?

Post 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......
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests