Amazon Echo to Domoticz Bridge: switches, sensors & more
Moderator: leecollings
-
- Posts: 26
- Joined: Saturday 03 January 2015 20:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
I appreciate, the work that must be going into this, I am fully aware that Amazon are not particularly interested in the Echo outside of the US nor the FireTV version. Have you chaps seen this. https://alexaweb.herokuapp.com/static/w ... l?next=%2F it works pretty well with signed in UK based amazon account but alas is limited but interesting never the less
-
- Posts: 26
- Joined: Saturday 03 January 2015 20:30
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Some more news about Amazon Alexa Service running on a RaspberryPi
https://mypocketfluff.wordpress.com/201 ... on-an-rpi/
https://mypocketfluff.wordpress.com/201 ... on-an-rpi/
-
- Posts: 30
- Joined: Monday 04 April 2016 22:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
So I was hoping someone else would post about this and elaborate, but since no one has, I guess it's up to me to log in and post, lol. Amazon came out with a "Smart Home Skill API". From what I gather, it's pretty much like the other Skills API, but it allows for one to say "Alexa, turn off the dining room light" instead of having to ask Alexa to tell something to do the action (e.g. "Alexa, tell Domoticz to turn off the dining room light").
https://developer.amazon.com/public/sol ... -skill-api
https://developer.amazon.com/public/sol ... -skill-api
- BazsoDombiAndras
- Posts: 56
- Joined: Thursday 08 January 2015 9:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.10717
- Location: Cluj-Napoca, Romania
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
That's great but it seems like a lot of work to port old implementations to new ones. I'd rather say "Alexa, ask the House to turn on the dining room light" instead of spending 100 hours of work to re-implement my skill the new way, just to be able to say "Alexa, turn on the dining room light". The least they could have done is stick with the Java example, if that's what they started with in the past...
But for people who start fresh and have to do a lot of work anyway, this is great.
But for people who start fresh and have to do a lot of work anyway, this is great.
-
- Posts: 30
- Joined: Monday 04 April 2016 22:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
So the API is considerably different? I'm not a developer, the most I can do is hack together other people's code. Does seem like a lot of effort just to leave off a word or two in commands.
- BazsoDombiAndras
- Posts: 56
- Joined: Thursday 08 January 2015 9:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v4.10717
- Location: Cluj-Napoca, Romania
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Well, from what I saw, it's a different approach. While in the old approach you could host your code in your own LAN, now you have to get involved with AWS Lambda to write some adapter. They still support Java (which the old examples were written in), but the new examples are written in PHP, so it's harder to make the transition. But that's just the impression that I got after 10 minutes of browsing their example.
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
I am a little lost on this - I am comfortable with the command line but not a developer
The readme on github is a little sketchy about the installation details and dependencies
Would anyone be able to tell me the steps to get this running?
The readme on github is a little sketchy about the installation details and dependencies
Would anyone be able to tell me the steps to get this running?
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi
i've actually written a native Alexa Skill using the Smart Home Skill API, which i have working with my domoticz just fine.
However, i still have to work out how to make it universally available (the node.js i've written has my externally available domoticz hardcoded).
Once that's done, I will push for certification.
Currently it discovers all 'used' devices and scenes, and allows you to turn off/on/dim lights, and turn on/off scenes - e.g:
"alexa turn off kitchen lights" "alexa turn on the front room" "alexa turn on Top Bathroom Light"
i've actually written a native Alexa Skill using the Smart Home Skill API, which i have working with my domoticz just fine.
However, i still have to work out how to make it universally available (the node.js i've written has my externally available domoticz hardcoded).
Once that's done, I will push for certification.
Currently it discovers all 'used' devices and scenes, and allows you to turn off/on/dim lights, and turn on/off scenes - e.g:
"alexa turn off kitchen lights" "alexa turn on the front room" "alexa turn on Top Bathroom Light"
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Would you be able to publish the node.js code for the same here?Madgeni wrote:ailable (the node.js i've written has my externally available domoticz hardcoded).
Once that's done, I will push for certification.
Currently it discovers all 'used' devices and scenes, and allows you to turn off/on/dim lights, and turn on/off scenes - e.g:
"alexa turn off kitchen lights" "alexa turn on the front room" "alexa turn on Top Bathroom Light"
I have got the webservice to work but it is not exactly an easy task to handcode all the used devices
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi -
i'd actually decided to do this - i'll get the files up to github over the weekend, with a blow by blow account of how to configure both the lambda and the smart skill, so everyone can have it
i'd actually decided to do this - i'll get the files up to github over the weekend, with a blow by blow account of how to configure both the lambda and the smart skill, so everyone can have it
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Thank you!Madgeni wrote:Hi -
i'd actually decided to do this - i'll get the files up to github over the weekend, with a blow by blow account of how to configure both the lambda and the smart skill, so everyone can have it
I got one skill (rather imaginatively called Jarvis ) up & running that is configured currently for a few scenes and harmony activities
Would love to have something more comprehensive but unfortunately don't have the necessary coding skills!
Would love to buy you a beer but I guess you are on another continent!
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
RIght!
Here we go, hopefully this all makes some sense
Go here: https://github.com/madgeni/alexa_domo/t ... llyworking
There's a word doc with some instructions, let me know how you get on.
I'm in the UK, and we've just voted to leave everything, so beer most welcome
Here we go, hopefully this all makes some sense
Go here: https://github.com/madgeni/alexa_domo/t ... llyworking
There's a word doc with some instructions, let me know how you get on.
I'm in the UK, and we've just voted to leave everything, so beer most welcome
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Thanks a ton for thisMadgeni wrote:RIght!
Here we go, hopefully this all makes some sense
Go here: https://github.com/madgeni/alexa_domo/t ... llyworking
There's a word doc with some instructions, let me know how you get on.
I'm in the UK, and we've just voted to leave everything, so beer most welcome
I have been able to configure most of it
However the lambda function testing returns an error stating "Unable to invoke the function because invoke parameters were not valid JSON."
I do not use a user name/password so my var api string in domapi.js looks like - Does that look right or is that the cause of the issue?
Code: Select all
var api = new Domoticz({protocol: "http", host: "xyz.no-ip.com", port: 80, username: "", password: ""});
Last edited by superczar on Monday 27 June 2016 10:36, edited 2 times in total.
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi there - make sure you select Smart Home Skill API on the Skill Information page, rather than Custom Interaction Model.
The Smart Home Skill API takes care of the language piece, albeit more restrictively.
Give that a go, and see what happens.
The Smart Home Skill API takes care of the language piece, albeit more restrictively.
Give that a go, and see what happens.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Thanks again - I figured out the first part so that is taken care of
However the lambda function testing returns an error stating "Unable to invoke the function because invoke parameters were not valid JSON."
I do not use a user name/password so my var api string in domapi.js looks like - Does that look right or is that the cause of the issue?
However the lambda function testing returns an error stating "Unable to invoke the function because invoke parameters were not valid JSON."
I do not use a user name/password so my var api string in domapi.js looks like - Does that look right or is that the cause of the issue?
Code: Select all
var api = new Domoticz({protocol: "http", host: "xyz.no-ip.com", port: 80, username: "", password: ""});
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
That looks fine - can you just double check you're pasting in only one of my example test payloads?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
also, can you check the logs via CloudWatch? Should give you some idea of what i've done wrong
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
LOL, I feel like an idiot now !Madgeni wrote:That looks fine - can you just double check you're pasting in only one of my example test payloads?
You, my man, are a genius for figuring out the problem while I indulged in a blind copy-paste exercise
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
is it working?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 65
- Joined: Wednesday 14 January 2015 12:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: India
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
The test worked - At work right now so can't test on the echo and the smarthome skill API does not allow for custom string testing
Hopefully should work though - will post an update once am home
Hopefully should work though - will post an update once am home
Who is online
Users browsing this forum: No registered users and 1 guest