Control Vera through call url / from the computer and Applescript?

Hi,

I haven’t found any questions related to that, although I am sure someone has already asked. I have a Vera, and in some circumstances I would like Vera to switch some devices by running an AppleScript on my MacMini.

I’m not highly technical, but I thought an URL call might do the trick? Any other method maybe?

Thanks,
Pierre

Check this out:

http://forum.micasaverde.com/index.php?topic=3895.msg19750#msg19750

It may give you a start.

Thanks …unfortunately I had already seen this post, but it’s apparently about Vera sending orders to the PC, and not the PC controlling a few devices through Vera.

Sorry, I misunderstood.

I haven’t had a chance to play with it, but I am sure Vera accept HTTP commands (from Mac Mini). Scroll to very bottom of this link:

http://www.linuxjournal.com/magazine/control-your-home-vera-mi-casa-verde

there are some code example that may give you some ideas…

Great, thanks a lot!
That’s exactly what I was looking for to start with.

See this example to turn on a Light, or run a named-Scene from within the same Network as Vera:

http://wiki.micasaverde.com/index.php/Luup_Requests#lu_action

It’s generally more up to date than the example posted in LinuxJournal … which is using an extremely old Firmware, but it was written a while ago, so that’s to be expected.

You can also work out other combinations for the URL’s, by looking at the Lua-coded versions here:

http://wiki.micasaverde.com/index.php/Luup_Scenes_Events

most of the examples listed can also be done by making a URL call, since the parameters to [tt]luup.call_action[/tt] are basically those passed to the [tt]lu_action[/tt] in the URL-style

Guessed, thank you so much for orienting me to the luup documentation.

I’m all set already ;D

I can switch on scenes (here N°3)
http://192.168.5.2:3480/data_request?id=lu_action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=RunScene&SceneNum=3

And also switch devices (here N°4, 0=off)
http://192.168.5.2:3480/data_request?id=lu_action&DeviceNum=4&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0

Thanks!