Hi,
I have setup a group within Domoticz which called "All". This group has several devices defined, one called "Led Keuken". Within a dzVents script I would like to ask what level I setup for this device.
Is this possible to do? and if so, has some one a sample cond for me?
Thanks,
Marcel
Get group settings [Solved]
Moderator: leecollings
-
- Posts: 659
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Get group settings
Did you check the wiki? If you know the type of the device and the idx then the wiki tells you which command to use.
https://www.domoticz.com/wiki/DzVents:_ ... _scripting
https://www.domoticz.com/wiki/DzVents:_ ... _scripting
- mvleusden
- Posts: 3
- Joined: Tuesday 20 February 2024 10:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.3
- Contact:
Re: Get group settings
sometimes you have to look twice. could reas the setting with
Thanks.
Code: Select all
local myDevice = domoticz.groups('All').devices().find(function(device)
return device.name == 'Led Keuken'
end)
domoticz.log('Level is set to: ' .. myDevice.level)
-
- Posts: 659
- Joined: Saturday 21 September 2019 17:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.1
- Location: The Netherlands
- Contact:
Re: Get group settings
wow, next level DzVents .... respect 

Who is online
Users browsing this forum: No registered users and 1 guest