Page 27 of 36
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Wednesday 03 May 2017 19:11
by Madgeni
ok, update:
There was an error in my code, now fixed.
I can ask Alexa "What is the Kitchen set to" and it works.
I have a US account, with code hosted in Virginia - enjoy!
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 9:56
by Madgeni
out of interest - do any of you have door locks?
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 10:08
by heggink
I do (nuki). Integrated them through dummy devices as I want timers to auto lock which domoticz does not have on the standard lock devices. Why?
Verstuurd vanaf mijn HUAWEI NXT-L29 met Tapatalk
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 10:49
by Madgeni
alexa has the functionality to set and get status on locks - if this is of use i can look to add it in.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 11:15
by qwerk
Madgeni wrote:ok, update:
There was an error in my code, now fixed.
I can ask Alexa "What is the Kitchen set to" and it works.
I have a US account, with code hosted in Virginia - enjoy!
great work,
alexa what is the xxx set to works on my thermostat and on 1 measuring device.
what is the temperature in the xxx, does not work on any device.
some temp devices are responding and some not. I will try to test it more to see if there is any logic in it.
step by step we are getting there.
thanks for looking in to it again and again and again,
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 11:18
by Madgeni
yes, I hadn't made the changes to test 'What is temperature'. I did this on the way in to work this morning but it's untested. Pull the latest version and try again. I'll also try and add some logging in to help debug why some are not responding (i've had to make some assumptions about where domoticz stores its temp values)
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 11:30
by qwerk
Domoticz works in mysterious ways
I think you broke it,
I will try and use the yesterday version and the this morning version. and send you a test report.
have a nice day at work
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 11:31
by Madgeni
whoops!

Let me know - for now i've rolled it back on Github
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 14:40
by qwerk
There seems to be a difference between the devices.
a razberry( z-wave) temp device will not give away its temperature .....
however a selfmade virtual device without any problem. ( keep in mind you have to ask: what is xxx set to )
a thermostat/setpoint will also work ( i only have razberry z-wave thermostats)
I was writing this, and made 1 last check. a z-wave thermostat with a temp device. and that I could query with: what is it set to.
so, I found no logic in devices that work or do not work.
I know devices that hold temperature and humidity don't work. I made virtual sensors to present only the temperature and that works.
I still have 1 z-wave device with lacrosse TX3 temp ( like they all do) that will not work.
this is the software version without the "what's the temperature change"
keep up the good work.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 14:45
by Madgeni
thanks qwerk. There's a logging line commented out on line 431. if you uncomment it, and retest, i'm interested in what it captures for device.temp and device.subtype - these are the two ways i've found of obtaining the current temp from a device. It might be that one of yours is using a different value?
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 16:35
by qwerk
hmmm, I really thought I could edit a text file and get rid off two '/' line 431 is but no, i am no programmer. even using notepad++
I get these results:
{
"errorMessage": "missing ) after argument list",
"errorType": "SyntaxError",
"stackTrace": [
"Object.Module._extensions..js (module.js:416:10)",
"Module.load (module.js:343:32)",
"Function.Module._load (module.js:300:12)",
"Module.require (module.js:353:17)",
"require (internal/module.js:12:17)"
]
}
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 16:52
by Madgeni
ok, i'll update it with the logging and push it back to git
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 16:54
by Madgeni
Don't worry - error was mine (i missed a closing bracket) - updated with the logging. try again?
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 19:42
by cryonic90
Anyone else trying to follow the alexa-domo pdf?
In the AWS I'm unable to find the alexa-smart-home-skill-adapter blueprint, anyone else having the same problems?
Doesn't matter which region I'm selecting btw.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 20:18
by Madgeni
ah - sorry, i'll update it. You don't need to select a blueprint anymore.
Read the alexa-domoticz-README.docx
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Thursday 04 May 2017 21:50
by Madgeni
temperature requests should now be working. Weirdly, if there's only one thermostat, and you ask "Alexa, what is the temperature of device name" - it will respond with "the temperature inside is..." - I can't control the response, but it seems to suggest here that it does it on purpose:
https://developer.amazon.com/blogs/post ... ome-skills
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Sunday 07 May 2017 13:43
by cryonic90
Madgeni wrote:ah - sorry, i'll update it. You don't need to select a blueprint anymore.
Read the alexa-domoticz-README.docx
Thanks, it's working great now!

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Sunday 07 May 2017 16:40
by Madgeni
that's great news

Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 09 May 2017 18:05
by martintom
Great work creating this, connected my new Amazon Dot to Domoticz today using this tool.
Only having some problems with devices having the same name, e.g.: 'Turn on the living room light' does work while 'What is the living room temperature' returns the error message 'That command does not work on the device living room'. Changing the name of the temperature sensor to something else solves this though.
Any change this can support changing the colors of the lights? I have some connected Hue/MiLights I can change the color using Domoticz.
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Posted: Tuesday 09 May 2017 22:36
by Madgeni
Hi - pleased it's working.
There are some general issues with the Echo interpreting the words, unfortunately i've got little control over that. We've a work around, in the naming of the description (see the manual).
Re: light controls - i'll take a look - they released the functionality a little while back. I've got some Hue lights, see if i can have a play around.