Linking Iphone/Siri to control Vera?

I am getting there. My config.yml lines just set a few URL components (and this could be done in the .rb file). But I now am setting up a hash of my “house” rooms in the .rb initialize method…so adding more devices is as simple as adding another room there, or more devices to a room. Currently, all it does is turn off/on lights and set levels for dimmers. It shouldn’t be hard to have a method that reports all the lights that are currently on, and individual light status. Thermostat won’t be hard, either.

But before my friends get over for Christmas dinner, I have to get the main garage door to open when Siri hears “open the pod bay doors, Hal”.

When I get this stapled down a bit more, I’ll let you all know. And if I learn Ruby before I’m done, well, I guess that’s okay. First Python, and now this. For some of this, it’d be a lot easier if I hadn’t been writing Perl for 20 years. I just keep writing it, even when it’s now the language I am working in.

–Richard

That alone would be worth the price of a 4S :slight_smile:

Table-driven. Still haven’t added anything to do locks or garage doors, but have done implemented a table-walk that matches device numbers from Vera’s “status” dump to the tables, and produces this as some of its output, only reporting on sensors that are tripped, locks that are unlocked, and lights/outlets that are switched on. Of course, Siri is saying all this stuff as well.

–Richard

Hi, I was just wondering how @rimalisz or any otherswere progressing with pairing Siri and Vera?
Is it a match made in silicon heaven? I’m looking for a some easy to follow instuctions for someone who is a newbie in this area.

Hi

I’ve spent the last few days getting siri proxy up and running to control lights and scenes. Did any have any luck returning status such as temperature?

Cheers

Hi Gjones

Sorry to jump on you so soon after you’ve posted, but would you be able to share the set up and steps you took to get it working with Vera?

I’ve done very little different than reported by Rlmalisz and autotoronto earlier. The original siri proxy by plamoni on github appears to have some problems reported at the end of last year and is no longer being updated. I installed the Three Little Pigs siri proxy on a Ubuntu VM as this one is currently being supported.

Instructions and installer can be found at


http://www.am3yrus.com/

After up and running I modified the siriproxy-example.rb as described by autotoronto to send http commands to vera for devices and scenes. Once modified run ‘siriproxy update .’ And the restart the proxy.

If I still find it useful when completed I may look at moving it to a raspberry pi.

Hi rlmalisz

Are you able to share an details on your advance config and status reporting?

Thanks

I have everything running on the Raspberry PI.

The one problem I’m having is that my changes to the siriproxy-example.rb are not showing up when I restart siriproxy.

I have run “siriproxy update .” and have tried rebooting afterwards but none of my changes show up.

Any suggestions are greatly appreciated.

Thanks,

Will Byrum

[quote=“Gjones, post:27, topic:169387”]I’ve done very little different than reported by Rlmalisz and autotoronto earlier. The original siri proxy by plamoni on github appears to have some problems reported at the end of last year and is no longer being updated. I installed the Three Little Pigs siri proxy on a Ubuntu VM as this one is currently being supported.

Instructions and installer can be found at


http://www.am3yrus.com/

After up and running I modified the siriproxy-example.rb as described by autotoronto to send http commands to vera for devices and scenes. Once modified run ‘siriproxy update .’ And the restart the proxy.

If I still find it useful when completed I may look at moving it to a raspberry pi.[/quote]

I started to see the same problem. ran ‘rake install’ again and updates to the siriproxy-example.rb started to work.

My normal process of stopping the server. running ‘siriproxy bundle’ and then ‘siriproxy server’ then started to work again.

hope this helps

Thanks for the suggestion but I’m still not having luck. In my SiriProxy directory I ran “rake install”, “siriproxy update .”, “siriproxy bundle” then “siriproxy server”

Still no changes showing up. I will try a reboot for the heck of it. Any ideas?

Will Byrum

FYI:

I was able to get everything working by changing the siriproxy-example.rb file in the usr/rvm etc. etc. directory. Then I run “siriproxy bundle” after any change.

It works great!

Just as reference I posted instuctions to set up a Proxy Server for those interested. Probly should have posted here… My Bad

http://forum.micasaverde.com/index.php/topic,13324.msg99059.html#msg99059

Does anyone have any other examples of how to interact with Siri? I saw the example to run a Scene and I’ve used that successfully. But can we interact with individual devices instead of a scene? Is there a way to poll the status of a device for Siri to return?

Thanks

Hi

I’ve listed my commands for turning a device off, setting the DIM level and reporting the thermostat temperature. To return the status i used HTTParty. I didn’t get time to work out how to load the HTTParty gem seperately so just enabled the default thermostat plugin in the /.siriproxy/config.yml file which installed it for me

#Turn Device off
listen_for /Living room light off/i do
open(‘http://10.0.30.35:3480/data_request?id=lu_action&DeviceNum=35&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0’)

#Set Dim Level
listen_for /Living room light ([0-9,]*[0-9])%/i do |dimlevel|
say “Set Living room light to: #{dimlevel} percent.”
open(“http://10.0.30.35:3480/data_request?id=lu_action&DeviceNum=35&action=SetLoadLevelTarget&serviceId=urn:upnp-org:serviceId:Dimming1&newLoadlevelTarget=#{dimlevel}”)

listen_for /Hall temperature/i do
halltemp = HTTParty.get(“http://10.0.30.35:49451/data_request?id=lu_variableget&serviceId=urn:upnp-org:serviceId:TemperatureSensor1&Variable=CurrentTemperature&DeviceNum=14”)

    say "Hall temperature #{halltemp} degrees."

Thanks Gjones - that will help me get started with on/off/dimmer.

Do we know if there is anyway to have siri pull up an image from a webcam that’s connected to Vera?

Another question as I dig into this further: Has any one written a siriproxy plugin for vera? I’m wondering if we can use the one done for the ISY-99i controller and modify it to use Vera commands instead.

https://github.com/elvisimprsntr/siriproxy-isy99i

GJones
New to this stuff. Just want to clarify. The code you posted is in the siriproxy-example.rb file and NOT the config.yml file or do I modify the config.yml?

Enable the default thermostat plugin, i gather that is get rid of # in line name: Thermostat, and change the host ip address line to the siri-proxy?

Thanks

That’s right the config.yml just needs the comments removing from the thermostat section, as it’s not being used other than to load the httparty gem the IP can be left as it is.

the siriproxy-example.rb should have the vera commands added.

rlmalisz looks to have a far more elegant solution though on this post.
http://forum.micasaverde.com/index.php/topic,9070.msg104399.html#msg104399

GJones
Thanks for the reply. Making some progress :slight_smile:
Having issues with dimmer control. changed the device number to that found under advanced, id of the GE dimmer. Needed to add scheme to the URN: Still no go. guess I found a project for the evening.

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules