
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
post the error here and i'll take a look 

Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more

Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Here's the endpoint I added:

Sent from mTalk

Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
endpoint looks fine. Re error - you need to zip the following, then upload them (Code Entry Type dropdown)
domapi.js
conf.json
package.json
/node_modules dir
domapi.js
conf.json
package.json
/node_modules dir
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Did that 

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more


Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
Then i'm confused. If you upload the zip file, you can't post in the code inline (which you can't do, as it relies on the other dependencies in node_modules/conf.json). so Code entry type should be "Upload .Zip file"
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
also, updated the code to handle the lack of Room Plans (you need Room Plans)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
I downloaded your code yesterday afternoon so hope the roomplan update was part of that. If not then I need to update.
I did upload through ZIP. It's just that, when I upload the zip, it then switches to edit code inline and shows domapi.js.
Are you saying that it should not do that?
Sent from mTalk
I did upload through ZIP. It's just that, when I upload the zip, it then switches to edit code inline and shows domapi.js.
Are you saying that it should not do that?
Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
definitely not - just recreated it in case there was a lambda change that did this. Seem to recall someone having an issue with zipping the files on Windows in this thread, maybe it's that?
You really only need the roomplan bit if you forget to create RoomPlans and put devices in them in Domoticz
You really only need the roomplan bit if you forget to create RoomPlans and put devices in them in Domoticz

Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
I zipped on the raspberry pi and checked/uploaded on windows. I'll try to re-upload using my ubuntu desktop.
Any way to debug this stuff?
Sent from mTalk
Any way to debug this stuff?
Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
maybe chmod -R 777 on the files/folders to sort perms out before zipping?
afraid there's no debugging of the upload process into a lambda as far as i know
afraid there's no debugging of the upload process into a lambda as far as i know
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Sorry to have wasted your time. Finally bumbed into a helpful google search: https://forums.developer.amazon.com/que ... lidch.html
Basically indicates that this is a win10/Edge/IE11 issue. As soon as I switched to firefox, all was well (well, firefox crashed but before that, I saw a result with all my devices in the rooms
).
Next is trying to figure out why I see no items in Alexa. One step at a time.
Thx so far.
H
Sent from mTalk
Basically indicates that this is a win10/Edge/IE11 issue. As soon as I switched to firefox, all was well (well, firefox crashed but before that, I saw a result with all my devices in the rooms

Next is trying to figure out why I see no items in Alexa. One step at a time.
Thx so far.
H
Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
No worries
as an FYI i can't run it from EU:West, i use English(US) from Virginia, and the alexa skill works fine. Saying that, nigels0 runs it from EU:West just fine, but worth considering.
Latency and language are NOT an issue if you run it from Virginia.
as an FYI i can't run it from EU:West, i use English(US) from Virginia, and the alexa skill works fine. Saying that, nigels0 runs it from EU:West just fine, but worth considering.
Latency and language are NOT an issue if you run it from Virginia.
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Here's an example of when I run a test discover. The list is big tho. This seems to look good. IMO, correct?
{
"applianceId": "388",
"manufacturerName": "Thermostat",
"modelName": "SetPoint",
"version": "temp",
"friendlyName": "HomeTemp",
"friendlyDescription": "Thermostat",
"isReachable": true,
"actions": [
"setTargetTemperature"
],
"additionalApplianceDetails": {
"WhatAmI": "temp"
}
},
{
"applianceId": "372",
"manufacturerName": "AEOTEC",
"modelName": "Switch",
"version": "Dimmer",
"friendlyName": "Dinner table",
"friendlyDescription": "Light/Switch",
"isReachable": true,
"actions": [
"incrementPercentage",
"decrementPercentage",
"setPercentage",
"turnOn",
"turnOff"
],
"additionalApplianceDetails": {
"switchis": "Dimmer",
"WhatAmI": "light"
}
},
Sent from mTalk
{
"applianceId": "388",
"manufacturerName": "Thermostat",
"modelName": "SetPoint",
"version": "temp",
"friendlyName": "HomeTemp",
"friendlyDescription": "Thermostat",
"isReachable": true,
"actions": [
"setTargetTemperature"
],
"additionalApplianceDetails": {
"WhatAmI": "temp"
}
},
{
"applianceId": "372",
"manufacturerName": "AEOTEC",
"modelName": "Switch",
"version": "Dimmer",
"friendlyName": "Dinner table",
"friendlyDescription": "Light/Switch",
"isReachable": true,
"actions": [
"incrementPercentage",
"decrementPercentage",
"setPercentage",
"turnOn",
"turnOff"
],
"additionalApplianceDetails": {
"switchis": "Dimmer",
"WhatAmI": "light"
}
},
Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
Those look good to me 
If the Alexa Skill isn't triggering the lambda (check the CloudWatch logs) - then maybe reproduce the lambda in Virginia, bind the skill to that Lambda selecting Englishg(U.S) - this works for me

If the Alexa Skill isn't triggering the lambda (check the CloudWatch logs) - then maybe reproduce the lambda in Virginia, bind the skill to that Lambda selecting Englishg(U.S) - this works for me
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
I did manage to switch a light. I'll test switching to Virginia and see if that makes a difference. Thanks for the help so far.
Sent from mTalk
Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
That did the trick. I have devices now
. Thx!!
Sent from mTalk

Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
-
- 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
boom. Stupid Amazon 

Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
- heggink
- Posts: 980
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Amazon Echo to Domoticz Bridge: switches, sensors & more
Yup. Just weird that you get thrown off so easily by weird error messages caused by OS/browser combinations and then need to solve all sorts of other intricacies. Anyways, brilliant stuff!
ps: any thoughts on how to change friendly names? I now find that I never anticipated device naming to have to be workable in English (being Dutch myself) and being spoken
Sent from mTalk
ps: any thoughts on how to change friendly names? I now find that I never anticipated device naming to have to be workable in English (being Dutch myself) and being spoken

Sent from mTalk
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Who is online
Users browsing this forum: No registered users and 1 guest