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.
Post Reply
Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

API request - Group Toggle

Post by Madgeni » Sunday 04 September 2016 21:44

Hi there -

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

Thanks
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

neginazin
Posts: 2
Joined: Friday 02 September 2016 15:32
Target OS: Windows
Domoticz version:
Contact:

Re: API request - Group Toggle

Post by neginazin » Monday 05 September 2016 15:57

thanks for nice information

borgkitty
Posts: 41
Joined: Wednesday 26 October 2016 21:01
Target OS: Raspberry Pi
Domoticz version: 3.5877
Contact:

Re: API request - Group Toggle

Post by borgkitty » Thursday 08 December 2016 20:43

+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: 9
Joined: Monday 27 February 2017 22:39
Target OS: Raspberry Pi
Domoticz version: 3.5837
Contact:

Re: API request - Group Toggle

Post by Lusch » Monday 20 March 2017 18:54

+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: 566
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: API request - Group Toggle

Post by emme » Tuesday 11 April 2017 11:58

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?
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests