Hi there -
can I request for the ability to Toggle a scene, as well as issue direct On/Off by the API?
Thanks
API request - Group Toggle
Moderators: leecollings, remb0
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
API request - Group Toggle
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 1
- Joined: Friday 02 September 2016 15:32
- Target OS: Windows
- Domoticz version:
- Contact:
Re: API request - Group Toggle
thanks for nice information
-
- Posts: 34
- Joined: Wednesday 26 October 2016 21:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5877
- Contact:
Re: API request - Group Toggle
+1 for this. I am trying to create a button (physical) that will turn on and off a group and I cant do it. If my lights are on in the group i can issue the command toggle and it turns them off but if i issue it again it doesn't do anything
-
- Posts: 6
- Joined: Monday 27 February 2017 21:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.5837
- Contact:
Re: API request - Group Toggle
+1
I'd like to be able to toggle a group of lights. So I want to be able to do one of the following:
or
Both do no work, or am I missing something?
I'd like to be able to toggle a group of lights. So I want to be able to do one of the following:
Code: Select all
commandArray['Group:SomeGroup'] = "Toggle"
Code: Select all
if(otherdevices['Group:SomeGroup'] == "On") then
commandArray['Group:SomeGroup'] = "Off"
elseif (otherdevices['Group:SomeGroup'] == "Off") then
commandArray['Group:SomeGroup'] = "On"
end
Both do no work, or am I missing something?
- emme
- Posts: 909
- Joined: Monday 27 June 2016 11:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Milano, Italy
- Contact:
Re: API request - Group Toggle
Groups get and keep their value (on or off) if you switch them
but as soon as you switch a device in that group it turns to MIXED
Example:
Group:LIGHTS include
- Dinner Light
- Living Light
- Kitchen Light
if I switch the group ON..
Group State: ON
- Dinner Light ON
- Living Light ON
- Kitchen Light ON
if I switch the Dinner Light
Group State: MIXED
- Dinner Light OFF
- Living Light ON
- Kitchen Light ON
...If Group Toggle would exist:
Group State: MIXED
- Dinner Light ON
- Living Light OFF
- Kitchen Light OFF
in terms of usage and usability... this is almost a Scenario than a group toggle....
...does this make sense?
but as soon as you switch a device in that group it turns to MIXED
Example:
Group:LIGHTS include
- Dinner Light
- Living Light
- Kitchen Light
if I switch the group ON..
Group State: ON
- Dinner Light ON
- Living Light ON
- Kitchen Light ON
if I switch the Dinner Light
Group State: MIXED
- Dinner Light OFF
- Living Light ON
- Kitchen Light ON
...If Group Toggle would exist:
Group State: MIXED
- Dinner Light ON
- Living Light OFF
- Kitchen Light OFF
in terms of usage and usability... this is almost a Scenario than a group toggle....
...does this make sense?
The most dangerous phrase in any language is:
"We always done this way"
"We always done this way"
Who is online
Users browsing this forum: No registered users and 1 guest