We have moved at community.getvera.com

Author Topic: Bridge Amazon Echo to Vera, on github!  (Read 768694 times)

Offline conchordian

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +4/-1
Re: Bridge Amazon Echo to Vera, on github!
« Reply #2340 on: January 29, 2019, 11:13:01 pm »
Well first of all you are trying to send a Put and you are using my code for a post.

Thank you, just before reading your post, excuse the pun, I discovered the local bridge used PUT, so I tried that, and eureka.

You're also correct about needing a user id, which I discovered in the logs of the HA bridge.  It creates an ID when it receives a request from the Vera.  You need to turn on DEBUG under 'Logging Configuration', and click 'Update Log Levels' to catch it.  That will give you the 313xxxxxxxxxxxxxxxxxx3c07 code below:

Code: [Select]
local http = require("socket.http")
http.TIMEOUT = 5
local response_body = { }
local body =[[{"on":true}]]
local res, code, response_headers, status = http.request{
    url = "http://192.168.0.11:8092/api/313xxxxxxxxxxxxxxxxxx3c07/lights/37/state",
    sink = ltn12.sink.table(response_body),
    headers = {
      ["Content-Type"] = "text/xml",
      ["Content-Length"] = tostring(body:len()),
      ["Connection"] = "Keep-Alive"
    },
    source = ltn12.source.string(body),
    method = "PUT"
}


Thanks for your help.  Now when I turn off my lights, Vera can talk to the fan and turn it off too, via the Broadlink.

Offline shapshere

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
Re: Bridge Amazon Echo to Vera, on github!
« Reply #2341 on: February 14, 2019, 12:57:04 pm »
I apologize in advance, but I have checked and can not find a difinitive answer. Does 5.2.2 Release candidate #3 detect your Harmony Remote? I am trying and I can not get see any of my harmony devices or activities. I entered the correct IP address of my hubs, but nothing populates as the Vera tab does.

Thanks

Offline shapshere

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +0/-0
Re: Bridge Amazon Echo to Vera, on github!
« Reply #2342 on: February 24, 2019, 01:56:36 pm »
Anyone? Maybe show me to which direction I should look into?