Get group settings  [Solved]

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

Moderator: leecollings

Post Reply
User avatar
mvleusden
Posts: 3
Joined: Tuesday 20 February 2024 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Contact:

Get group settings  [Solved]

Post by mvleusden »

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.
2024-04-07 12_43_55-Clipboard.png
2024-04-07 12_43_55-Clipboard.png (48.44 KiB) Viewed 517 times
Is this possible to do? and if so, has some one a sample cond for me?

Thanks,

Marcel
willemd
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

Post by willemd »

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
User avatar
mvleusden
Posts: 3
Joined: Tuesday 20 February 2024 10:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.3
Contact:

Re: Get group settings

Post by mvleusden »

sometimes you have to look twice. could reas the setting with

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)
Thanks.
willemd
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

Post by willemd »

wow, next level DzVents .... respect :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest