Page 26 of 36
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 9:54
by Madgeni
Update: Discovery should now set the correct actions for temp/thermostat devices. You'll need to forget and discover again to get the correct actions.
Please test and let me know

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 10:25
by qwerk
First test, it discovers temp and thermostaat.
It sets my thermostat.
When asking to decrease, it says the device does not respond and my domoticz devide goes to Nan ( error)
I cannot query any temperature.
this was a quick and dirty test. more in the afternoon.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 10:31
by heggink
Q: how is letsencrypt different (better?) from the built in self signed ssl in domoticz?
Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 10:46
by Madgeni
heggink wrote:Q: how is letsencrypt different (better?) from the built in self signed ssl in domoticz?
Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Hi - simply put, letsencrypt acts as a CA, so there's some comfort that the certificate issued is genuine, which would reduce the chance of a man in the middle attack (unlikely i know, most are just brute force / port scans).
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 10:47
by Madgeni
qwerk wrote:First test, it discovers temp and thermostaat.
It sets my thermostat.
When asking to decrease, it says the device does not respond and my domoticz devide goes to Nan ( error)
I cannot query any temperature.
this was a quick and dirty test. more in the afternoon.
Ok, thanks - i've left some logging in there, so if you check cloudwatch, hopefully you can give me a clue what's wrong

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 10:50
by heggink
So my understanding was correct. What would be nice is to distribute a certificate to all clients where the server only accepts connections using this certificate...
Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 14:57
by Madgeni
so it looks like Increment/Decrement and Set temperature are now working as expected

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 25 April 2017 21:18
by qwerk
All is working great. I moved all from ha-bridge to this bridge.
keep up the good work.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 27 April 2017 12:25
by Madgeni
Quick comment to those experiencing Alexa requesting the device name again - it seems there's some logic (bug?) which will query a direct match if there is a fuzzy match also:
So if you have a device called Main Bedroom, but also have devices called Main Bedroom light, Main Room light etc, it will ask for you to specify, even though it found and matched the correct device.
We have a work around for that courtesy of Borcon's friendly name work (give the devices another name in the Domoticz description field - Start it Alexa_Name: ) and you should be ok
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 27 April 2017 19:44
by Madgeni
Hi all -
Amazon released a new service - Lex, which is a chatbot tool.
I've written some code to create a facebook messenger app - this will currently give you the status of your devices (the ones in Room plans)
i've created another repo -
https://github.com/madgeni/LexDomoticz
If you're interested, there's instructions (with the exception of the facebook integration - i'm not on FB!, but i've linked to the instructions, and they seem simple).
Hope it's of some use to someone. If it gets interest, i'll add in more conversational stuff, turn things on/off etc
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Friday 28 April 2017 15:13
by qwerk
Hi all,
is there anybody who got his working:
GetTemperatureReadingRequest
Example Utterances: “Alexa, what is the temperature of device name?” - Currently US hosting only
GetTargetTemperatureRequest
Example Utterances: “Alexa, what is the device name set to? - Currently US hosting only
Setting of temperature is working fine.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Friday 28 April 2017 15:31
by Madgeni
pretty sure its dependent on:
amazon.com account
Virginia hosted skill
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Sunday 30 April 2017 21:03
by qwerk
I know, I think/expect you are right.
I changed my developer account to US, I changed the language to US, I changed the AWS engine to US, I even changed my Alexa user address to the US.
I hoped somebody would say: It only work if this and that.....
And that I missed something.
It is the engineer in me, that cannot handle the fact that it should work ( after moving all t the US, according to all I have read) but it does not work.
It is no attack on your programming skills or so. I really think you did a great job.
it's just hmmmm.....

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 02 May 2017 14:31
by Swifty
Thanks for this.
I've been having at look here;
https://www.domoticz.com/wiki/Secure_Nginx_Proxy_Setup
As I'd like to make use of client certificates to secure things further.
Any idea how this would interact with the skill? - I'm not sure how the client certificates get handled on that front, as I assume the alexa server hitting my nginx installation would need to be showing a client cert..
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 02 May 2017 18:13
by Madgeni
an interesting question. As the Smart Home skill enforces Oauth2 - you can't use self-signed certs - it specifies that you must have a certificate signed by an Amazon-approved certificate authority or account linking will fail.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 02 May 2017 20:14
by borcon
@swifty
you can use a secure nginx proxy with a self signed certificate.
In domoticz the same.
I use the secure nginx proxy and domoticz with my self signed certificate.
If you need a program to create easy self signed certificates with your own ca, then google "xca".
I think amazon requires only a genuie certificate, if you release your amazon skill.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 02 May 2017 21:27
by ressof
Hello
Im trying to get Alexa to say what the temperature is for my sensors but with no luck.
I have a temperature sensor with temperature and humidity in domoticz, alexa discover this device but when I ask her what the temperature is she says "device" is not responding.
I have also created a temperature and a thermostat dummy sensor but Alexa responds with not responding for them also.
Do you know what is wrong?
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Wednesday 03 May 2017 8:37
by Madgeni
That's good to know @borcon - i wasn't sure if nginx required you to install the CA cert on any client (i.e the lambda).
@ressof - i'm sorry, the code is ready for you to ask for the temperatures - however amazon haven't released that functionality outside the US yet
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Wednesday 03 May 2017 13:09
by Swifty
borcon wrote:@swifty
you can use a secure nginx proxy with a self signed certificate.
In domoticz the same.
I use the secure nginx proxy and domoticz with my self signed certificate.
If you need a program to create easy self signed certificates with your own ca, then google "xca".
I think amazon requires only a genuie certificate, if you release your amazon skill.
Thanks Borcon.
I don't want to de-rail this topic, but can you confirm you mean you use nginx reverse proxy
without client certificates?
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Wednesday 03 May 2017 14:39
by ressof
Madgeni wrote:
@ressof - i'm sorry, the code is ready for you to ask for the temperatures - however amazon haven't released that functionality outside the US yet
But I have configured my amazon accounts to use US and N. Virginia location or doesnt this matter?