Author Topic: Run a scene on VeraPlus from VeraSecure  (Read 424 times)

Offline ZW-Tom

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +4/-1
Run a scene on VeraPlus from VeraSecure
« on: May 26, 2018, 01:24:18 am »
I have A VeraSecure and a VeraPlus.
What LUUP code can I use to run scene #4 on VeraPlus from VeraSecure?

Tom

Offline aa6vh

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +13/-0
Re: Run a scene on VeraPlus from VeraSecure
« Reply #1 on: May 26, 2018, 06:25:11 pm »
Code: [Select]
luup.inet.wget("http://192.168.xx.xx:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=4", 5, "", "")

Substitute your VeraPlus IP address in the above. Of course, you will need to establish a fixed IP address for your VeraPlus (best done with IP reservation on your router).

Stuff above is case sensitive.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 1382
  • Karma: +36/-35
Re: Run a scene on VeraPlus from VeraSecure
« Reply #2 on: May 26, 2018, 07:50:06 pm »
And if you have the latest firmware, you need to enable potential unsafe lua code.
Vera 3, 1.7.1030, CT101, Everspring motion sensor, GE/Jasco switch, Leviton outlet, AeonLabs sensor, NuTone garage door, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual/Multi Switch, Weatherunderground, LB60Z-1 bulb, Hue, Alexa

Offline ZW-Tom

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +4/-1
Re: Run a scene on VeraPlus from VeraSecure
« Reply #3 on: May 30, 2018, 04:29:22 pm »
Code: [Select]
luup.inet.wget("http://192.168.xx.xx:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=4", 5, "", "")

Substitute your VeraPlus IP address in the above. Of course, you will need to establish a fixed IP address for your VeraPlus (best done with IP reservation on your router).

Stuff above is case sensitive.

Hi. The above did not work on my system. Caused major crash on VeraPlus, not sure why. However, the following code does work:
luup.inet.wget('http://<IP>/port_3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=NUMBER')

Thanks,
Tom