Amazon Echo to Domoticz Bridge: switches, sensors & more

Alexa, Google Home and Siri

Moderator: leecollings

Madgeni
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

Post 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 :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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.
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Madgeni
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

Post 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).
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Madgeni
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

Post 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 :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
User avatar
heggink
Posts: 980
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Madgeni
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

Post by Madgeni »

so it looks like Increment/Decrement and Set temperature are now working as expected :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by qwerk »

All is working great. I moved all from ha-bridge to this bridge.

keep up the good work.
Madgeni
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

Post 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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Madgeni
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

Post 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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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.
Madgeni
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

Post by Madgeni »

pretty sure its dependent on:
amazon.com account
Virginia hosted skill
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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..... :D
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post by Swifty »

Madgeni wrote:Hi there -

you should definitely look at http://www.domoticz.com/wiki/Native_sec ... ts_Encrypt - like you say, got to keep the bad people away :)
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..
Madgeni
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

Post 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.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
borcon
Posts: 20
Joined: Thursday 05 January 2017 11:15
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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.
ressof
Posts: 61
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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?
Madgeni
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

Post 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
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Swifty
Posts: 76
Joined: Saturday 31 December 2016 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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?
ressof
Posts: 61
Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest