groupactivation  [Solved]

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

Moderator: leecollings

Post Reply
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

groupactivation

Post by pvklink »

i activate a scene b
dz.setScene('Peter naar werk', 'On')

is there a way to activate a group?
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: groupactivation

Post 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()
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: groupactivation

Post by pvklink »

OK, Thanks that works!
So i used dz.setscene wrong?
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: groupactivation  [Solved]

Post 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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest