Author Topic: All lights on/off  (Read 86 times)

Offline sloginov

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
All lights on/off
« on: July 17, 2018, 02:15:51 pm »
Hi all, it was a long story anyone tried to send a command all lights on / off in Vera. Standard scene runs rather long if you have a number of devices. Same time many remotes can execute this type of command very fast.

It took me a while to browse through out the forums, luup wiki, etc. Finally I got the way working for me, this is described in wiki page http://wiki.micasaverde.com/index.php/Luup_Requests#actions as turn off all lights.

The command works as http request sending commands to a virtual category 999 (lights and dimmers) but can be also sent in the scene luup code part: luup.inet.wget("http://localhost:3480/data_request?id=action&output_format=xml&Category=999&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0",1).

For the all lights on the command looks like this: luup.inet.wget("http://localhost:3480/data_request?id=action&output_format=xml&Category=999&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1",1).

Does anyone know how to send this command in luup.call_action format to avoid extra route via ip stack?

BTW some old Fibaro switches to accept this type of command should have subcategory 3 in advances settings, just change old 0 to 3 and reload the engine and you are done.