Controlicz - Easy Domoticz to Alexa Integration Topic is solved

Alexa, Google Home and Siri

Moderator: leecollings

kaigame
Posts: 7
Joined: Monday 04 September 2017 11:48
Target OS: Windows
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by kaigame »

Madgeni wrote: Monday 04 September 2017 13:09 will try it as soon as I can - it's quite likely a combination of my conversion and the domoticz API :)
Not trying to rush you at all, do what you can, when you can, and i'll be grateful when you do :D

I can live without it, not life changing! Having the ability to change colours at all is amazing and i'm very thankful for your hard work!
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

Thanks, appreciate that :) The white thing bugs me though, as it feels like it should be 'basic' functionality
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Jem101
Posts: 66
Joined: Saturday 02 May 2015 21:26
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bexleyheath, SE London, UK
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Jem101 »

And suddenly no devices responding and all are showing as Offline in the Alexa app-was working fine earlier this afternoon.

Neither do I seem to be able to login to the Controlicz website.

Anyone else having issues or just me?
I firmly believe in having an open mind - although not so open that your brain falls out!

- sometimes attributed to Carl Sagan, but the original quote is much older than that
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

hmm
controlicz is up for me - and it's been up since june 8th

Edit - just ran a discovery fine
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Jem101
Posts: 66
Joined: Saturday 02 May 2015 21:26
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Bexleyheath, SE London, UK
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Jem101 »

I hate it when that happens, it means it's something at my end then :D

Anyway forget about not being able to log in, that was 'pilot error' on my part, I had a VPN open to one of my clients' site updating a server and I think the routing went a bit weird. What I did find is that the password for the Domoticz login as shown in my profile was not the same as the one I had originally setup on the Pi. A simple mistype but it's odd that it would have been working OK for these past two days - unless some credentials had become cached somewhere and finally aged out. Go figure!

So reset the password, test remote access from another location (thanks to the VPN link), all working OK.

Try to rediscover and....


....it works.

How weird is that?

John
I firmly believe in having an open mind - although not so open that your brain falls out!

- sometimes attributed to Carl Sagan, but the original quote is much older than that
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

that is weird - i certainly don't cache any credentials. I store your credentials (encrypted) and decrypt at runtime for the domoticz API interaction, but it's based on what's persisted in the DB.
The access token handed to Alexa is possibly cached by Amazon, and i provide a refreshtoken when this expires, but it's still predicated on your authenticated to Controlicz initially.

Weird!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
kaigame
Posts: 7
Joined: Monday 04 September 2017 11:48
Target OS: Windows
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by kaigame »

Madgeni wrote: Monday 04 September 2017 13:47 Thanks, appreciate that :) The white thing bugs me though, as it feels like it should be 'basic' functionality
OK, so my strip lights arrived, and apart from them being wired incorrectly(red goes to green and vice versa) another oddity..

They switch back to white on command!!!!!

Considering all of these lights are configured the same, on the same milight controller, in Domoticz, it's very strange..
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

ok, so good for me, bad for you :)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
kaigame
Posts: 7
Joined: Monday 04 September 2017 11:48
Target OS: Windows
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by kaigame »

Madgeni wrote: Wednesday 06 September 2017 22:54 ok, so good for me, bad for you :)
Very, i've done nothing major different. The Strip shows as a V6 RGBWW device even though it isn't. The light bulbs are a RGBW device(v5) and had to be configured seperately.

I'll run a few tests later.
kaigame
Posts: 7
Joined: Monday 04 September 2017 11:48
Target OS: Windows
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by kaigame »

OK, so i spent hours on this, and got absolutely nowhere! I have two milight controllers(V5 and V6) and 4 sets of lights(including the bridge):

1) LED Strip light - changes to white flawlessly - configured on V6 controller as RGBWW(it's RGBW)
2) 2x RGBW Lights - does not change to white, but did change to ivory once! - configured as V5 on V6 controller or on V5 controller(makes no difference)
3) V6 Controller Lamp - does not change to white
4) V6 RGBWW light - changes to white flawlessly - configured on V6 controller.

I'm no closer to finding out why white is such a problem, the logs don't actually mention what command is being passed, so i have no idea what Domoticz is receiving.

The log entry for the colour change is:
2017-09-07 21:50:27.886 (Living Room Light) Lighting Limitless/Applamp (Lamp)
2017-09-07 21:50:41.902 (Living Room Light) Lighting Limitless/Applamp (Lamp)
2017-09-07 21:50:50.826 (Living Room Light) Lighting Limitless/Applamp (Lamp)
2017-09-07 21:50:51.159 (Living Room Light) Lighting Limitless/Applamp (Lamp)
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
kaigame
Posts: 7
Joined: Monday 04 September 2017 11:48
Target OS: Windows
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by kaigame »

Madgeni wrote: Friday 08 September 2017 13:02 does this help?
viewtopic.php?t=14235&start=180
Not really, if i press the 'set white' button in Domoticz, the lights turn white, so white is working. It's just not working when i ask Alexa to do it. Is there any way of finding out what command is being passed from controlicz to domoticz, the logging on my end is very minimal.
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

so, taken from the Domoticz API:
https://github.com/domoticz/domoticz/bl ... troller.js

I had to rewrite the node wrapper API to add this, but happy it's working (well, as happy as I can be about undocumented APIs ;) )

https:// username:password@domoticzIP/json.htm?type=command&param=setkelvinlevel&idx=1234&kelvin=2200


where Kelvin=2200 is 'warm white' according to Alexa:

https://developer.amazon.com/public/sol ... urerequest
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
toxicated101
Posts: 2
Joined: Wednesday 13 September 2017 14:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Easy Domoticz to Alexa Integration

Post by toxicated101 »

Madgeni

Would it be possible to modify your https://github.com/madgeni/alexa_domo or maybe give instructions so it could be run on a linux server without needing an amazon avs.

Thanks
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

Hi all -

Can i please ask a favour? If you're finding the skill useful, can you please give me a review on Amazon? Whether it's .com/.co.uk/.de - I want to raise the visibility of the skill, and of Domoticz itself with other Amazon users.
I'm not on Facebook, but if someone could update the original post with my begging letter, that would be really kind :)

Thank you very much!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Terra2000
Posts: 1
Joined: Tuesday 05 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Terra2000 »

Hello !
Super thing with the Alexa connection. Only I have a problem with the Tepmperatur query. If I want to know a temperature he tells me most of the weather. - German User
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Easy Domoticz to Alexa Integration

Post by freijn »

I had the same, you have to make the name really unique. I have livingone. But yess on family demonstrations it does come with the temperature somewhere in the US :-)
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

Hi -
temperature is a problem for German users, as specifically the skill sends the temp with a '.' for float numbers, whereas I believe Germany (and most of Europe etc) use a comma. So currently 'Get Temperature' isn't working properly, and also, deliberately (by Alexa) it provides 'fuzzy' logic, so if you say 'Set Temp of Kitchen to 20', and you have a thermostat called Kitchen AND any other device with Kitchen in, it will ask you to specify which one.
Which is annoying!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
robal_k
Posts: 6
Joined: Sunday 09 March 2014 15:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by robal_k »

Awesome work.

I can't get it to work though.
Alexa discovery just says "There was an error doscovering your devices"
My Domoticz is definitely accessible from Internet with connection details I've given to Controlicz.

It's using a dummy SSL certificate though. Could it be the problem ?
Madgeni
Posts: 1571
Joined: Friday 25 March 2016 17:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Easy Domoticz to Alexa Integration

Post by Madgeni »

Hi - no, the SSL cert shouldn't be the problem - can you DM the email address you used, and i'll take a look?

just to confirm, you have put the devices you want Alexa to control in Domoticz Room Plans?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest