Project

General

Profile

Amazon Echo / Dot / Alexa

Added by lolouk44 almost 3 years ago

Hi,

Alexa is taking the world by storm, and is now available in Europe (well UK at least)
Are there any plans to make DomtiGa compatible with it?

Thanks


Replies (61)

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 8 months ago

Mark,
probably my suggestion caused a little misunderstandig... I think only that maybe a good idea simply add the link to your actual python project into Domotiga Website, eventually among available modules: your script is very stable, perfectly integrated even if separated, and it works very well: why don't keep it as now as a simply stand-alone project? Less elegant but functional!

Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 7 months ago

Mark,
after your latest fix on KNX dimmer device, now Echo/Alexa gives like before some errors on dimming values...

Alexa voice command | Domotiga | Alexa respond

10% --> 9% error
20% --> 20% error
30% --> 29% error
40% --> 39% (but alexa gives OK)
50% --> 49% error
60% --> 59% (but alexa gives OK)
70% --> 70% (OK)
80% --> 80% (OK)
90% --> 89% error

I think is caused by the value -1 recorded on the slider (view my report on KNX thread), but I don't know exactely.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 7 months ago

Mark,
I have also noticed now that in the single value dimming device, if you give the on command, the slider (domotiga and Alexa app) goes to maximum, but Alexa says that the device doesn't support the requested value (out of range, or similar message).
Dimming control works (with errors)
Off command is executed instead without problems.

No problems on double value device (except values errors, as reported)

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 7 months ago

Mark,
after your new domotiga-beta release, I have noticed the following strange things, but ONLY in the new double-value dimmer device:
- NO problems with on/off commands (voice control and app)
- NO problems with dimming commands and % values (voice control and app)
- NO problems with Domotiga control box (everytime is aligned)
- NO errors said by Alexa, in all functions
- Only on the Echo/Alexa App, after the Off command is gived and after about 20-30 seconds, is showed a message on the device that say about "the device don't support the requested value": the message is everytime showed, until is gived the next command (on, dim, off), perfectly executed, but when is turned Off again, is showed and persists the message.
This is not a real issue, only a bit annoying: If you think is correctable into the domo-hue-alexa script without touch the now fully functional double-value dimmer device in Domotiga, will be great.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 6 months ago

Mark,
probably I have found the origin of the little "issue" decribed before: the Alexa app, doesn't accept "0"% dimming value for HUE device when is off, but this one is instead perfect for Domotiga double-value device, and all normal dimming devices (KNX and others): if this is a unsolvable little incompatibility bug, dont' worry: in any case will be not right modify double-value device into Domotiga, why this one is working properly.
Note that Alexa give never errors on vocals messages, but you can see the error message only if you look at Amazon app.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 6 months ago

Mark,
excuse me, unfortunately I have noticed only now that a similar issue happens also with the single-value dimming device BUT instead ONLY with SWITCH ON command (instead of switching off with the double-value device): probably in this case Alexa try to send 100% value with ON, but is not supported by device.
Sometimes, when you give to Alexa the switch-on command, you receive a vocal error that says that the device doesn't support the requested value, even if the device is properly switched on.
If you look at the Alexa App, is showed the same error (only with ON state).
If you ask to Alexa to dim the device there are NO errors, all OK.
If you ask to Alexa to switch-off the device there are NO errors, all OK.
In any case, all OK with Domotiga: no errors or strange happenings with KNX dimmer device, with On-off and dimming.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by msp1974 6 months ago

Marcello,

I have tried all the combinations you have listed above and cannot seem to recreate the issue. 0% dim and 100% dim both seem to be fully supported on multi and single value dimmer in both on and off state. Ironically, Alexa uses 2 values for on/off state and dim value in its messages. The single value dimming device actually has to have logic to create both these values and this logic always sent 0% dimming value when off and 100% dimming value when turned on.

The one thing I have not been able to test is whether this is still true if you only have a dot v3 on the network (can't disconnect all my others right now) as from what we saw before this seems to be a bit of a pain. I will try this later this week to see what happens.

Also, what device are you running Alexa app on - Android or iOS. Mine is Android. Possible app difference?

Other than that, I can only think that there is something a little different with your setup that is causing bad messages or bad values to be sent on status updates. When you send a command with Alexa or the app, it immediately asks for a status update from domo-hue-bridge. Are you able to try these tests with a non KNX dimable device and see if it does the same. This will at least point to or eliminate the KNX plugin maybe updating values before the status message.

Also, if you can recreate it, can you run domo-hue-bridge in debug mode and send me the log to see if I can see anything.

Mark

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 6 months ago

Mark,
I have attached here the debug file, where you can see various on/off commands gived to single-value and double-value devices.
During tests I have noticed the same behaviour decribed in my previous post.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by msp1974 6 months ago

Marcello,

This is very useful.

It is clearly an issue when only a DOTv3 is on the network as DOTv2s and Echos are not as bothered about the returned status after a command. WHich is why I couldn't recreate this the other day.

I have found definitely one bug in domo-hue-bridge. More of a typo on my part! When turning on single value dim devices, the status is returning 255 instead of 254 for the dim value. I will fix this tonight.

I haven't yet found an issue with multi dim devices but will again look later at this some more.

Mark

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 6 months ago

Mark,
I have tested your new version: now is all ok with the single value dimmer! No errors with all vocal commands, domotiga and Echo app.

For the double value dimmer little issue, repeat, only showed on Echo app if the device is off, I have tested the commands on an empty, unreal knx device with domotiga: I have noticed that in Echo app seems to be not supported the 0% value, because if you give the Off command but if is let any dimming value, is showed everytime ok: for example value 1 off and value 2 x% but not 0.
Let me know if you need other specific debug or test.

Bye
Marcello

RE: Amazon Echo / Dot / Alexa - Added by linuxmate 5 months ago

Mark, all ok?
After other tests with empty knx device and ETS, I definitively confirm you the cause of the little issue showed only with Echo app and only with the double-value dimming device: in Amazon Echo app probably is not supported the 0% dimming value. (No problems instead with the other On/Off value).

I think that to solve the specific issue is needed, only with double-value device, add in your python script a forced logic that, only when 0% value dimming state is read from domotiga (right value, after feedback received from knx device switched to off), sets 1% value to dimming value instead 0% but only for Echo app and not in domotiga.

All other funtions and single dimming device works instead very well!

Bye, thanks
Marcello

(51-61/61)