Page 16 of 36

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

Posted: Thursday 08 December 2016 11:54
by fergalom
nothing showing in the logs so I guess not, am using eu-west and english uk so may try switching.

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

Posted: Thursday 08 December 2016 12:37
by fergalom
Madgeni wrote:hmm is the skill firing the lamdba - can you check the logs?

I think there's some general problems with skills linking to lambda functions. My skill is using English U.S, and my lambda is in N.Virginia if that helps.
Switched to English U.S, and my lambda is in N.Virginia and worked first time!
Thanks!!

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

Posted: Thursday 08 December 2016 13:12
by Madgeni
Perfect! That's really good - welcome :)

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

Posted: Thursday 08 December 2016 13:37
by heggink
So if i wanted UK english, is that currently an issue?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk

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

Posted: Thursday 08 December 2016 13:41
by Madgeni
well, i believe nigels0 has it working in Ireland with English UK but i have the US English one, and it makes no difference to the usage to me. It understands my commands just fine. Latency is <1sec for discovery, <0.5s for interactions. Quicker than my direct Hue integrated lights for sure.

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

Posted: Thursday 08 December 2016 13:46
by heggink
My accent is British

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk

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

Posted: Thursday 08 December 2016 13:52
by Madgeni
i am very british :)

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

Posted: Thursday 08 December 2016 14:14
by heggink
And can talk to it successfully?

Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk

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

Posted: Thursday 08 December 2016 14:52
by Madgeni
yes

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

Posted: Friday 09 December 2016 16:34
by fergalom
Thanks, this works a treat.
Couple of feedback items:
  • 1. On/off work perfect, dimming does not work well, i.e. asking for 10% will result in 35% for example
    2. Thermostat - works perfect for me - only thing is the Alexa confirmation is "Setting Thermostat to unknown temperature" i.e. Alexa does not repeat back the setpoint temperature - not a big deal but would be nice.
    3. Temperature devices - what is the correct syntax for asking Alexa the temperature?
    4. Are multi-selector switches supported?

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

Posted: Friday 09 December 2016 16:43
by Madgeni
1. Argh! This seems to be a very strange issue, where it seems fine for some people, and wrong for others. What type of Dimmers do you have out of interest?
2. I'll take a look - not sure what happens to the payload, as the integer seems to be there, so not sure why Alexa doesn't interpret it
3. I'm afraid that currently Alexa doesn't support asking via the Smart Home Skill. As soon as it does, i'll implement it. The only way to get this would be to rebuild it as a Custom skill (Alexa, ask 'Home' what the temperature is in the front room etc etc) - but would be a piece of work to do this. I'm loathe to whilst this is allegedly on Alexa's roadmap for Smart Home
4. Can you give me a couple of user stories for multi-selector switches to work with?

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

Posted: Friday 09 December 2016 18:58
by nigels0
Madgeni wrote:well, i believe nigels0 has it working in Ireland with English UK but i have the US English one, and it makes no difference to the usage to me. It understands my commands just fine. Latency is <1sec for discovery, <0.5s for interactions. Quicker than my direct Hue integrated lights for sure.
Yes, all the above is true. I've built 2 of these and both worked no problem with the EU-West and UK English parameters. Latency is about the same (it generally switches before I get the 'OK')

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

Posted: Saturday 10 December 2016 0:08
by fergalom
Madgeni wrote:1. Argh! This seems to be a very strange issue, where it seems fine for some people, and wrong for others. What type of Dimmers do you have out of interest?
2. I'll take a look - not sure what happens to the payload, as the integer seems to be there, so not sure why Alexa doesn't interpret it
3. I'm afraid that currently Alexa doesn't support asking via the Smart Home Skill. As soon as it does, i'll implement it. The only way to get this would be to rebuild it as a Custom skill (Alexa, ask 'Home' what the temperature is in the front room etc etc) - but would be a piece of work to do this. I'm loathe to whilst this is allegedly on Alexa's roadmap for Smart Home
4. Can you give me a couple of user stories for multi-selector switches to work with?
They are all dummy dimmers - Type: Light/switch - Switch: Dimmer

Using multi-selectors to enable various airplay speakers around the house, quickly set heating modes, select & play some radio channels.
Interestingly if you ask alexa to set a multi-selector switch to a percentage, it works sort of (the dimming issue skews it).

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

Posted: Saturday 10 December 2016 8:43
by Bororo
Just a curious question for Echo/dot owners: Can this device communicate in English, but use metric system? (I don't want to receive answers in miles, pounds or lbs, but metres, kg, etc.)

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

Posted: Saturday 10 December 2016 16:07
by StanHD
Bororo wrote:Just a curious question for Echo/dot owners: Can this device communicate in English, but use metric system? (I don't want to receive answers in miles, pounds or lbs, but metres, kg, etc.)
Yes I have UK Echo Dots and there is a setting for metric temperature and distance units.

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

Posted: Saturday 10 December 2016 18:42
by l0gic
l0gic wrote:Hi,
just updated to latest code and I'm getting the following in the lambda logs

Code: Select all

2016-11-29T10:48:53.222Z	691f17c3-b621-11e6-a006-c9681d09aea6	TypeError: Cannot read property 'length' of undefined
at /var/task/domapi.js:401:42
This seems to be while running a discovery.

If I understand it correctly, is should also discover temperature set point units, these do not appear in discovered devices but I guess that could well be down to the code not completing.

Control of the discovered units seems to be ok still.

All the best

Kevin
Got to the bottom of this. I had a defined room that I hadn't populated with any units.
Worth bearing in mind when doing a discovery.

All the best

Kevin

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

Posted: Saturday 10 December 2016 19:52
by Madgeni
Yep, it's a well known 'feature' - basically i do no error handling on there being no room plans, or no devices IN room plans. I'll fix it shortly

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

Posted: Wednesday 14 December 2016 18:17
by heggink
Does amazon charge anything for the Lambda function?

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

Posted: Thursday 15 December 2016 11:51
by Madgeni
No, they have a free tier, which is huge for this purpose:
1M free requests per month and 400,000 GB-seconds of compute time per month

https://aws.amazon.com/lambda/pricing/

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

Posted: Thursday 15 December 2016 13:18
by heggink
Good to know. If I get an invalid character error, any ideas on where to look for a solution? Followed your doc (only thing missing seemed to be listing the endpoint).