How to get status of a group

Moderator: leecollings

User avatar
psubiaco
Posts: 222
Joined: Monday 20 August 2018 9:38
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Italy
Contact:

Re: How to get status of a group

Post by psubiaco »

Hi.
The right way to check the status of a group or scene is, in lua script, is:

Code: Select all

if (otherdevices_scenesgroups['AlarmAway']=='On') then  -- if the group "AlarmAway" is active
    commandArray['Group:AlarmDay']='Off'	-- turn off the group "AlarmAway"
end
Paolo
--
I use DomBus modules to charge EV car, get a full alarm system, control heat pump, fire alarm detection, lights and much more. Video
Facebook page - Youtube channel
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest