Page 11 of 52
Re: Easy Domoticz to Alexa Integration
Posted: Monday 04 September 2017 13:43
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
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!
Re: Easy Domoticz to Alexa Integration
Posted: Monday 04 September 2017 13:47
by Madgeni
Thanks, appreciate that

The white thing bugs me though, as it feels like it should be 'basic' functionality
Re: Easy Domoticz to Alexa Integration
Posted: Monday 04 September 2017 20:52
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?
Re: Easy Domoticz to Alexa Integration
Posted: Monday 04 September 2017 21:42
by Madgeni
hmm
controlicz is up for me - and it's been up since june 8th
Edit - just ran a discovery fine
Re: Easy Domoticz to Alexa Integration
Posted: Monday 04 September 2017 22:37
by Jem101
I hate it when that happens, it means it's something at my end then
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
Re: Easy Domoticz to Alexa Integration
Posted: Tuesday 05 September 2017 13:03
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!
Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 06 September 2017 20:58
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..
Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 06 September 2017 22:54
by Madgeni
ok, so good for me, bad for you

Re: Easy Domoticz to Alexa Integration
Posted: Thursday 07 September 2017 13:36
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.
Re: Easy Domoticz to Alexa Integration
Posted: Friday 08 September 2017 11:35
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)
Re: Easy Domoticz to Alexa Integration
Posted: Friday 08 September 2017 13:02
by Madgeni
Re: Easy Domoticz to Alexa Integration
Posted: Friday 08 September 2017 16:33
by kaigame
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.
Re: Easy Domoticz to Alexa Integration
Posted: Friday 08 September 2017 16:44
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¶m=setkelvinlevel&idx=1234&kelvin=2200
where Kelvin=2200 is 'warm white' according to Alexa:
https://developer.amazon.com/public/sol ... urerequest
Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 13 September 2017 14:29
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
Re: Easy Domoticz to Alexa Integration
Posted: Tuesday 19 September 2017 18:40
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!
Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 20 September 2017 13:58
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
Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 20 September 2017 14:07
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

Re: Easy Domoticz to Alexa Integration
Posted: Wednesday 20 September 2017 14:56
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!
Re: Easy Domoticz to Alexa Integration
Posted: Saturday 30 September 2017 17:13
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 ?
Re: Easy Domoticz to Alexa Integration
Posted: Saturday 30 September 2017 18:03
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?