Hide devices using dzvents

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

Moderator: leecollings

Post Reply
HvdW
Posts: 617
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Hide devices using dzvents

Post by HvdW »

Is there a code I can use to hide devices (Make Hidden) from within dzvents.
In other words: is there a way to rename devices using dzvents.

User case:
I have an airco on/of switch and an airco temperature switch.
It is senseless to change temperature when the airco is switched off.
Compare this to to the display on the airco remote: temp, horizontal fan movement, vertical fan movement, switching between heat, cool, fan or dry; it is only visible when the airco is switched on.

Solution found:
- domoticz.devices(4).rename('Airco settings')
- domoticz.devices(4).rename('$Airco settings')

Now the question is how to let dzvents refresh the webpage.
Bugs bug me.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest