Page 1 of 1

groupactivation

Posted: Thursday 17 January 2019 16:39
by pvklink
i activate a scene b
dz.setScene('Peter naar werk', 'On')

is there a way to activate a group?

Re: groupactivation

Posted: Thursday 17 January 2019 16:52
by waaren
pvklink wrote: Thursday 17 January 2019 16:39 i activate a scene b
dz.setScene('Peter naar werk', 'On')
setScene is deprecated. Please use the scene object directly

Code: Select all

dz.scenes('Peter naar werk').switchOn()
is there a way to activate a group?

Code: Select all

dz.groups('groupName').switchOn()

Re: groupactivation

Posted: Thursday 17 January 2019 16:59
by pvklink
OK, Thanks that works!
So i used dz.setscene wrong?

Re: groupactivation  [Solved]

Posted: Thursday 17 January 2019 17:37
by waaren
pvklink wrote: Thursday 17 January 2019 16:59 OK, Thanks that works!
So i used dz.setscene wrong?
No not wrong but this function is deprecated. It means that it is still in use, but only for historical purposes and it could be removed in a next major release. It is recommended that you do not use deprecated functions or features.