Amazon Echo to Domoticz Bridge: switches, sensors & more
Moderator: leecollings
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Ok, apologies - fixed now (should be ok, tested against Dummy dimmer, which is now showing correctly as a Light, rather than as a Temp)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
@Madgeni
Hiya,
I got my grubby paws on my Echo today and obviously want it to integrate with Domoticz (who wouldn't? ).
I had already set HA-Bridge in preparation for it's arrival and it can turn stuff on and off ok...ish.
What I want to clarify is... Are you developing a true "Alexa Skill" to be installed via the Alexa App or something that each individual needs to set up and tweak? I've been trying to follow the thread, but without hardware to refer to, it isn't completely clear.
Either way, I have an Echo and some spare time if you need another tester
Sean
Hiya,
I got my grubby paws on my Echo today and obviously want it to integrate with Domoticz (who wouldn't? ).
I had already set HA-Bridge in preparation for it's arrival and it can turn stuff on and off ok...ish.
What I want to clarify is... Are you developing a true "Alexa Skill" to be installed via the Alexa App or something that each individual needs to set up and tweak? I've been trying to follow the thread, but without hardware to refer to, it isn't completely clear.
Either way, I have an Echo and some spare time if you need another tester
Sean
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
So the issue is more with Domoticz than with Alexa. It's a 'true' Smart Home Skill, however I can't certify it, as Domoticz doesn't have a standardised 'front door' - If/when my.domoticz gets oauth2, then I can probably simplify everyone's lives, and you will be able to just install it from alexa.
Till then, you'll need to follow my (hopefully simple instructions) and roll your own.
Basically it's 100% a true alexa skill, without being able to certify it.
Worth saying that this started as for my own use
The Hue-Bridge seems like a good workaround (not used it though)
Till then, you'll need to follow my (hopefully simple instructions) and roll your own.
Basically it's 100% a true alexa skill, without being able to certify it.
Worth saying that this started as for my own use
The Hue-Bridge seems like a good workaround (not used it though)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
The problem with the ha-bridge (or me more likely) is that I can't figure out how to fetch data i.e. "Alexa, what is the sitting room temperature?"
Is your skill able to do that? I'll try and get it set up later today. Are there any necessary naming conventions for devices?
Ideally I want to able to say "Alexa, turn the sitting room stat down by 2 deg and ignore the wife, even if she screams at you to turn it up."
Is your skill able to do that? I'll try and get it set up later today. Are there any necessary naming conventions for devices?
Ideally I want to able to say "Alexa, turn the sitting room stat down by 2 deg and ignore the wife, even if she screams at you to turn it up."
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
-
- Posts: 6
- Joined: Saturday 25 January 2014 20:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi,
I can get the lambda test to work - for example discovering all my devices, but I can't get my Echo to discover them - nothing in the lambda logs either - any ideas?
Cheers,
Lard
I can get the lambda test to work - for example discovering all my devices, but I can't get my Echo to discover them - nothing in the lambda logs either - any ideas?
Cheers,
Lard
Last edited by Lard2010 on Thursday 29 September 2016 11:38, edited 1 time in total.
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
blackdog65 wrote:The problem with the ha-bridge (or me more likely) is that I can't figure out how to fetch data i.e. "Alexa, what is the sitting room temperature?"
Is your skill able to do that? I'll try and get it set up later today. Are there any necessary naming conventions for devices?
Ideally I want to able to say "Alexa, turn the sitting room stat down by 2 deg and ignore the wife, even if she screams at you to turn it up."
Hi -
currently it should allow you to set temp - so "alexa set sitting room stat to 18" - It will allow increments (when I get around to it!) - I'm somewhat limited by the Domoticz API and it's capabilities, so it involves more coding for me
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi - sounds like a disconnect between the skill and the lambda. Can you double check your config against my doc? Worth checking that your lambda is running in Virginia? I've had no luck in getting it working in Europe (I only tried once to be fair)Lard2010 wrote:Hi,
I can get the lambda test to work - for example discovering all my devices, but I can get my Echo to discover them - nothing in the lambda logs either - any ideas?
Cheers,
Lard
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 79
- Joined: Thursday 23 October 2014 22:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Quick question (I imagine this is going to be a popular thread today!). Do I need to open my domoticz externally or will the local ip suffice?
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
afraid it needs to be externally facing. Hopefully my.domoticz.com will get oauth2, then it will be a 'straightforward' task for me to certify this, and make everyones easier
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 79
- Joined: Thursday 23 October 2014 22:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Thanks. I'm guessing hue / hive e.t.c are built differently as they all work without open ports? I appreciate there is a risk we drift off topic here, but I dont suppose there is a way to limit the access to just Alexa? Historically I've VPN'd to get to Domoticz and have no idea about how best to secure outside access.
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Oh dear, I tried to set up Lamda in europe and nothing happened... If I'd read ALL of this, I'd have gone to Virginia 1st... doh
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
"Note: Lambda functions for Alexa skills must be hosted in the US East (N. Virginia) region. Currently, this is the only Lambda region the Alexa Skills Kit supports." from the developer site
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
pretty sure it's supposed to be Ireland also now:
https://developer.amazon.com/public/sol ... home-skill
"Make sure you’ve selected the N.Virginia for English (US) skills or the EU (Ireland) region for English (UK) and German skills"
Also, thought it was in my Readme?
https://developer.amazon.com/public/sol ... home-skill
"Make sure you’ve selected the N.Virginia for English (US) skills or the EU (Ireland) region for English (UK) and German skills"
Also, thought it was in my Readme?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
In the lamda console I get
I thought the "domoticz" needed the .js suffix, but that just gives
The pages I'm seeing in lamda are also different to those in your docx.... enough head scratching for one day
Code: Select all
"errorMessage": "Cannot find module './node_modules/domoticz-api/api/domoticz'",
Code: Select all
"errorMessage": "Cannot find module './node_modules/domoticz-api/api/domoticz.js'",
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Ok - from my doc, did you:
Take the node_modules folder, the domapi.js, and package.json from
https://github.com/madgeni/alexa_domo and zip them and upload them?
The Lambda pages look pretty much the same to me?
Take the node_modules folder, the domapi.js, and package.json from
https://github.com/madgeni/alexa_domo and zip them and upload them?
The Lambda pages look pretty much the same to me?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 68
- Joined: Friday 12 December 2014 14:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Thanks for the fast update, my lights are now back as lightsMadgeni wrote:Ok, apologies - fixed now (should be ok, tested against Dummy dimmer, which is now showing correctly as a Light, rather than as a Temp)
- l0gic
- Posts: 107
- Joined: Tuesday 08 October 2013 9:35
- Target OS: Linux
- Domoticz version: Latest
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Hi Madgeni,
Ok, I grabbed the latest version and stuck it up on my Lambda site (Ireland instance).
After correcting a password typo (doh!) I can get a list of devices and also control my lights via script.
My next set will be to extend this over to the echo, it's not working at the moment but it's probably a typo in the referring address.
Something I have noticed is that even though I have 31 temperature devices (all dumb readers, one wires etc) none of them appear in the list of detected devices.
Is this correct or should I be able to see them?
I was hoping to be able to query a temperature in a room or in a hot water tank, this is possible for other temperatures i.e. from the weather.
If is ask Alexa what the current outside temperature she (it?) responds with the expected information.
BTW, I've sent you a pm on a different subject, hope you have got it OK.
All the best
Kevin
Ok, I grabbed the latest version and stuck it up on my Lambda site (Ireland instance).
After correcting a password typo (doh!) I can get a list of devices and also control my lights via script.
My next set will be to extend this over to the echo, it's not working at the moment but it's probably a typo in the referring address.
Something I have noticed is that even though I have 31 temperature devices (all dumb readers, one wires etc) none of them appear in the list of detected devices.
Is this correct or should I be able to see them?
I was hoping to be able to query a temperature in a room or in a hot water tank, this is possible for other temperatures i.e. from the weather.
If is ask Alexa what the current outside temperature she (it?) responds with the expected information.
BTW, I've sent you a pm on a different subject, hope you have got it OK.
All the best
Kevin
Non credus crepitus
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
ok, sure it's my code. Will take a look!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
-
- Posts: 1571
- Joined: Friday 25 March 2016 17:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Ok - i've cleaned up the logic - which should help me iterate it more easily. Over to you!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- l0gic
- Posts: 107
- Joined: Tuesday 08 October 2013 9:35
- Target OS: Linux
- Domoticz version: Latest
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Nice one, will try to have a go this pm. If not this evening.
Non credus crepitus
Who is online
Users browsing this forum: No registered users and 1 guest