Easy Domoticz to Alexa Integration

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.
Post Reply
User avatar
getSurreal
Posts: 27
Joined: Friday 31 July 2015 0:59
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Easy Domoticz to Alexa Integration

Post by getSurreal » Friday 17 March 2017 19:34

There are a few working methods already for integrating Domoticz and Alexa. The simplest I had found was using HA-Bridge https://github.com/bwssytems/ha-bridge. The nice thing about it, is that it simulates a Phillips Hue so Alexa can discover your devices locally without any cloud service. There are some limitations. You basically only have access to On, Off and Dim requests. You're not able to query the status or temperature of any device. To get some of the extra bells and whistles you can setup the Domoticz Alexa Skill https://www.domoticz.com/forum/viewtopi ... exa#p65767, but that gets a lot more involved.

I've been satisfied with HA-Bridge for a while, but I would like it to be even simpler. I'm also not a java developer and I would really like to make tweaks. So I searched for alternative Hue simulators. I wanted one that would automatically look at my Domoticz devices and make them available to Alexa. I then found hueAndMe https://github.com/johnray/hueAndMe, a python based Hue simulator. It did exactly what I wanted but for Indigo instead of Domoticz. Duplicating what it was doing for Indigo to Domoticz was pretty straight forward. I have a pending pull request to add the Domoticz integration, but the code is available on my fork in a Domoticz branch https://github.com/getSurreal/hueAndMe/tree/domoticz.

User avatar
lonebaggie
Posts: 96
Joined: Tuesday 31 January 2017 14:21
Target OS: Raspberry Pi
Domoticz version: beta
Location: England
Contact:

Re: Easy Domoticz to Alexa Integration

Post by lonebaggie » Tuesday 11 April 2017 15:06

Just to add my recommendation to HA-Bridge

The software has recently been upgraded , so it it will now automatically pull all your Domoiticz switch configuration via JSon to HA-Bridge. This means Alexa will update the switches ( and their states ) on Domoticz via HA-bridge so you can get Alexa to trigger multiple events on Domoticz.

It runs alongside my Domoticz install on Raspberry Pi 3 without issues. Simplicity itself

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Wednesday 12 July 2017 14:36

Hi - just wanted to let you know that the native Alexa smart home skill is now live :)
This allows you to control on/off/dim lights, on/off devices, set/get temperatures and requires no installation or configuration on your Domoticz, other than adding devices to room plans (for the devices you want Alexa to control).

Simply register at www.controlicz.com then enable the Controlicz skill on Alexa
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
blacksn0w
Posts: 78
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Easy Domoticz to Alexa Integration

Post by blacksn0w » Wednesday 12 July 2017 14:42

Madgeni wrote:Hi - just wanted to let you know that the native Alexa smart home skill is now live :)
This allows you to control on/off/dim lights, on/off devices, set/get temperatures and requires no installation or configuration on your Domoticz, other than adding devices to room plans (for the devices you want Alexa to control).

Simply register at http://www.controlicz.com then enable the Controlicz skill on Alexa
And you are saving this credentials and in case of a leak someone could control all saved domoticz instances? Or is there some kind of protection?
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R47, MiHome

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Wednesday 12 July 2017 15:26

all your data is encrypted, the site uses a public SSL cert and your password for the site is hashed
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
remb0
Posts: 811
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Easy Domoticz to Alexa Integration

Post by remb0 » Wednesday 12 July 2017 21:18

Great work!
I registered an account.
I setup my external https address and discover.
but nothing found.

so I want to check my details but can't login, tried multiple times, am I blocked?
there is no option to reset account, no confirmation mail etc.
maybe you can help me?

Because this is very very nice if it works :)

diepatchworke
Posts: 1
Joined: Wednesday 12 July 2017 23:02
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by diepatchworke » Wednesday 12 July 2017 23:15

getSurreal wrote:There are a few working methods already for integrating Domoticz and Alexa. The simplest I had found was using HA-Bridge https://github.com/bwssytems/ha-bridge. The nice thing about it, is that it simulates a Phillips Hue so Alexa can discover your devices locally without any cloud service. There are some limitations. You basically only have access to On, Off and Dim requests. You're not able to query the status or temperature of any device. To get some of the extra bells and whistles you can setup the Domoticz Alexa Skill viewtopic.php?f=38&t=9446&hilit=alexa#p65767, but that gets a lot more involved.

I've been satisfied with HA-Bridge for a while, but I would like it to be even simpler. I'm also not a java developer and I would really like to make tweaks. So I searched for alternative Hue simulators. I wanted one that would automatically look at my Domoticz devices and make them available to Alexa. I then found hueAndMe https://github.com/johnray/hueAndMe, a python based Hue simulator. It did exactly what I wanted but for Indigo instead of Domoticz. Duplicating what it was doing for Indigo to Domoticz was pretty straight forward. I have a pending pull request to add the Domoticz integration, but the code is available on my fork in a Domoticz branch https://github.com/getSurreal/hueAndMe/tree/domoticz.
Hello,
i have to tries this second workaround : https://github.com/getSurreal/hueAndMe/tree/domoticz but my alexa diddnt find anything of my domoticz items.. alexa found nothing.

please can you tell me a step by step manual for me? i think i made a mistake in the config? and sorry for my english.

User avatar
michaldobrotka
Posts: 55
Joined: Sunday 01 November 2015 18:21
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Easy Domoticz to Alexa Integration

Post by michaldobrotka » Thursday 13 July 2017 7:09

Hi,
same by me. I am registered, skill enabled but after discovery noting was found. Is with IP meant my LAN IP ?
Domoticz on Raspi 3
Serial Mysensors GW on Arduino nano
Broadlink RM2
Rehau CO2 USB Stick
RF link 433 MHz
Amazon Echo Dot + HAbridge

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 9:23

Hi - a silly Q, but are your devices in Room Plans in Domoticz?
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
michaldobrotka
Posts: 55
Joined: Sunday 01 November 2015 18:21
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Easy Domoticz to Alexa Integration

Post by michaldobrotka » Thursday 13 July 2017 9:42

Yes Madgeni,
I have 7 rooms, each with 2-7 devices. (I noticed that this is a term in your skill description).
Domoticz on Raspi 3
Serial Mysensors GW on Arduino nano
Broadlink RM2
Rehau CO2 USB Stick
RF link 433 MHz
Amazon Echo Dot + HAbridge

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 10:34

Your Domoticz needs to be accessible via the internet - i would suggest implementing ssl https://www.domoticz.com/wiki/Native_HT ... SL_support

Then in the Controlicz site you just need to provide:

domoticz IP/dns name
port no:
domoticz Username
domoticz password
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

freijn
Posts: 151
Joined: Friday 23 December 2016 17:40
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands Purmerend
Contact:

Re: Easy Domoticz to Alexa Integration

Post by freijn » Thursday 13 July 2017 10:55

I have an other silly question. Living in the Netherlands its impossible to order an Echo dot.
What's the trick to get one?

Apologies for hijacking your post :-(

Frank

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 10:56

hah, ebay?
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
michaldobrotka
Posts: 55
Joined: Sunday 01 November 2015 18:21
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Easy Domoticz to Alexa Integration

Post by michaldobrotka » Thursday 13 July 2017 12:31

freijn wrote:I have an other silly question. Living in the Netherlands its impossible to order an Echo dot.
What's the trick to get one?

Apologies for hijacking your post :-(

Frank
Or even better amazon.de :D (maybe you'll need to make a request for order) and they send you bid. But from NL shouldn't be any problem to order it directly. And I registered a sale going on amazon right now.
Domoticz on Raspi 3
Serial Mysensors GW on Arduino nano
Broadlink RM2
Rehau CO2 USB Stick
RF link 433 MHz
Amazon Echo Dot + HAbridge

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 12:44

I've increased the timeout on the lambda, to see if that resolves it - can people retest, also ensuring you use https - i don't want to drop down to http connections for your homes - i don't think anyone would thank me :)
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

User avatar
blacksn0w
Posts: 78
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: Easy Domoticz to Alexa Integration

Post by blacksn0w » Thursday 13 July 2017 13:19

Madgeni wrote:I've increased the timeout on the lambda, to see if that resolves it - can people retest, also ensuring you use https - i don't want to drop down to http connections for your homes - i don't think anyone would thank me :)
Maybe you should open a new thread for the whole "Controlicz" thing, currently there are two which are used for the same purpose :D
And another question: What about allowing only the Controlicz IP to connect to the Domoticz Instance from the outside?
There should be some ways with firwall rules and/or iptables, what do you think?
This post was made with ♥ in Cologne. Raspberry Pi 3B (with SSD), Aeotec Z-Stick Gen5, RFLink R47, MiHome

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 13:22

fair point on multiple threads :)
In terms of FW rules, that would be client side, and therefore dependent on what kit each person has
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

danpep
Posts: 6
Joined: Wednesday 04 February 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by danpep » Thursday 13 July 2017 14:37

@madgeni,

I have now forwarded my external port to my Domoiticz SSL port and tested that this is working from outside my LAN. I am still not getting any devices in Alexa and now I don't even see the controlicz IP appearing in my domoticz log. Could it be because I don't have a SSL certificate? In a browser I can ignore this but I don't know if this will trip up your interface.

Perhaps an error message could be shown on controlicz.com to help with troubleshooting in future.

Thanks again for any help. Beers and a review coming your way if I get this working.

Madgeni
Posts: 430
Joined: Friday 25 March 2016 18:43
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni » Thursday 13 July 2017 14:57

Hi - have you had any luck? Been trawling through the various logs, i can see some control & discovery requests
Like my code? Want to buy me beer? https://paypal.me/madgeni
Like Controlicz? Want to help keep the lights on? https://paypal.me/madgeni :)

Native Alexa skill - register at http://www.controlicz.com

danpep
Posts: 6
Joined: Wednesday 04 February 2015 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by danpep » Thursday 13 July 2017 15:05

@madgeni,

I went back to the alexa web and my devices have appeared and are working via the echo. Thanks for your help! $10 in yor PayPal as promised.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests