Show user variable as virtual switch?

Moderator: leecollings

Post Reply
User avatar
Solderbro
Posts: 80
Joined: Tuesday 18 September 2018 15:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Hamburg, Germany
Contact:

Show user variable as virtual switch?

Post by Solderbro »

Hope this is even possible, found no way to to do it.

My domoticz have user variables that change in dependency of illumination and temperatures. They only exist in much blockly and dzvent scripts, to change behavior. I would like to see these user variables on the for example counter page in the gui, to watch the internal status.

Any ideas how to solve that?
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Show user variable as virtual switch?

Post by JeroenG »

Should not be that difficult I think:

1. Create a dummy sensor from type Text
2. Write the value of the variable to this sensor at the moment it's changed in your script
3. Add the sensor to your dashboard.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests