Page 1 of 1

Get group settings  [Solved]

Posted: Sunday 07 April 2024 12:47
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 523 times
Is this possible to do? and if so, has some one a sample cond for me?

Thanks,

Marcel

Re: Get group settings

Posted: Sunday 07 April 2024 13:27
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

Re: Get group settings

Posted: Sunday 07 April 2024 18:29
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.

Re: Get group settings

Posted: Sunday 07 April 2024 21:00
by willemd
wow, next level DzVents .... respect :-)