activate group scene

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

Moderator: leecollings

Post Reply
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

activate group scene

Post by devros »

hello, im playing with dzvents
switches works ok (logs are OK) , but cant trigger group switch to test... but cant see any log output when enable group.
Any idea what is wrong (probably something stupid :)

Code: Select all

return {
    on = {
		groups = {
			'GROUP_TEST'
		}
    },
    execute = function(domoticz, group)
        if (group.state == 'On') then
		    domoticz.log('Hey! I am off!')
        end
    end
}
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: activate group scene

Post by dannybloe »

What version of dzVents are you using and is 'GROUP_TEST' exactly the name of your group? Try to print something before the if-statement.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest