API request - Group Toggle

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

API request - Group Toggle

Post by Madgeni »

Hi there -

can I request for the ability to Toggle a scene, as well as issue direct On/Off by the API?

Thanks
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
neginazin
Posts: 1
Joined: Friday 02 September 2016 15:32
Target OS: Windows
Domoticz version:
Contact:

Re: API request - Group Toggle

Post by neginazin »

thanks for nice information
borgkitty
Posts: 34
Joined: Wednesday 26 October 2016 21:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Contact:

Re: API request - Group Toggle

Post by borgkitty »

+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
Lusch
Posts: 6
Joined: Monday 27 February 2017 21:39
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5837
Contact:

Re: API request - Group Toggle

Post by Lusch »

+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:

Code: Select all

commandArray['Group:SomeGroup'] = "Toggle"
or

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?
User avatar
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

Post by emme »

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?
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests