So last night the magic happened
I had Alexa discovering all my lighting devices from my core, added them to the Alexa app and more importantly spent the night pissing off my family by repeatedly requesting Alexa to turn my living room lights on, off and up and down. It was amazing.
Now i need to tidy up my code mess along the way and strengthen the oauth2 server I added to my core as at the moment for testing there is no password or anything to authorise which kind of defeats the point but I note phenigma that you said we now have one already on LinuxMCE? I've updated and I cant see any sign of one? I'm happy to use the one built in one though I mean who whats 2?
its a basic web standard so should require no more than a url change in my code to switch anyway.
At the moment I've only linked in lights but over the next few days ill try and add thermostats and scenarios although I only have a z-wave boiler control not a thermostat so may be in the dark a bit there so may need some help to test.
I'm excited about scenarios but I've read that amazon will only allow up to 12 "scenes" as they call them to be discovered which may be a pain.
Ive tried my best to make the api as simple and flexible as possible and not have it only for Alexa but indeed any web service its a bit rough at the moment so will probably no doubt need changes and tweaks that I'm sure all you guys on here can offer advice and assistance on.
At the moment because I'm using my own oauth2 server on the core the interface requires the following:
Note also that the intermediate site I've built will store your cores IP address and the required access tokens there is no way around this as I said before this site should i believe be stored on this linuxmce.org domain securely but for the moment I have it on a test site I can promise you Im not interested in accessing your core, but at the moment this is the only way I can see it being possible, you still have full control of the outh server on your core and revoke all access at any point.
- A small folder of web pages to be placed in the /var/www/lmce-admin folder on your core.
- The creation of 7 small mySQL tables to handle the access tokens ect.
- A SSL cert but it can be self signed we just want an encrypted connection for security - I think this is now done by default anyway.?
- Allow remote access to the web admin via https on the standard port and ensure you can then access your web admin from the web.
- An Alexa enabled product and the Alexa app
So anyway I guess the fun question is once I've ironed out the few bits today who has a system they don't mind playing with that wants to test this?