basic Q about user vars

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
BartSr
Posts: 546
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

basic Q about user vars

Post by BartSr »

Hi I looked in the wiki and only found uservar examples in the LUA docu.
I am looking for dzVents command to read and write uservars.
TIA
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 7028
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: basic Q about user vars

Post by waltervl »

See the dzvents wiki section for user variables
https://wiki.domoticz.com/DzVents:_next ... riables.29

And this discussion with examples: viewtopic.php?t=18893

Short example

Code: Select all

domoticz.variables('anotherVar').set(15)
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