Amazon Echo to Domoticz Bridge: switches, sensors & more

Alexa, Google Home and Siri

Moderator: leecollings

Madgeni
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 by Madgeni »

ok that's very strange, it's working for me. That doesn't actually look like the right one - I changed FriendlyDescription to either 'Group' or the Device.Type
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

Sorry - my mistake - I didn't see that you had made some changes - I'll try again :)
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

It works!

The 'Open bedroom blinds left' also works - but is back to front - Open closes them and close Opens them!

I'm also getting MANY more devices available - a real step change.
Madgeni
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 by Madgeni »

i can see how that's quite counter intuitive - Open = On, Close = Off - is that how it is in Domoticz?
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

Here's what I get

With four blinds set as an Alexa group:

'Alexa, Turn On the blinds' closes them when in an Alexa group.
'Alexa, Open the blinds' returns 'I'm not sure how I can help you with that'
'Alexa, Turn Off the Blinds' Opens them
'Alexa, Close the blinds' ... Opens them (!)

maybe I need a better keyword for the Open the Blinds one...

Individually:

'Alexa, Turn on the bedroom blinds left' Closes the blind
Alexa, Open the bedroom blinds left' Closes them (!)
'Alexa, Turn off the bedroom blinds left' Opens them
'Alexa, Close the bedroom blinds left' Opens them (!)
Madgeni
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 by Madgeni »

in Domoticz - i'm assuming these are switches?

Don't forget we're limited to the words we can use in the Smart Home Skill
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

I've set them up as blinds in Domoticz, but yes, they are switches so it's a bonus I get open and close as keywords. Not sure why Domoticz has them upside down - probably a Dutch thing :). Is there no way to change this in your code?
Madgeni
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 by Madgeni »

If i do that, it starts to be *your* code ;)
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

Not sure what that means - I would think all users of this who have blinds would want them to work the right way up!
Madgeni
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 by Madgeni »

ah ok - it's a Domoticz 'feature'? I misunderstood :)
I can fix that.


try it now - NB: You'll need to do a Discovery first
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

I see what you've done in the code - must admit I tried that too, but for some reason it didn't change anything - Open is still on, Close is off. I'm not convinced though it's your code but something screwy is going on.

If I run

Code: Select all

192.168.0.52:8080/json.htm?type=command&param=switchlight&idx=194&switchcmd=On 
(one of the blinds) it closes the blind, and

Code: Select all

http://192.168.0.52:8080/json.htm?type=command&param=switchlight&idx=194&switchcmd=Off 
opens it...


So On and Off Closes and Opens as you would expect - just Open and Close seem to reverse going through Alexa.

Close and Open works well with lights BTW, so it seems that open and on, close and off are synonymous in Alexa's vocabulary so I can't understand why it is reversed on blinds!


Either way Open and Close for the blinds are good - just need to remember!
Madgeni
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 by Madgeni »

weird!
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
Madgeni
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 by Madgeni »

update - Scene commands weren't working - they are now (stoopid typos).
Native Alexa skill and Google app - register at https://www.controlicz.com - https://twitter.com/Controlicz
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

Thx.
simonfr
Posts: 16
Joined: Sunday 13 March 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by simonfr »

Firstly, thanks off for creating this and providing the necessary instructions. I've downloaded the code from Github, modified it, created my Lambda function and linked it to a new skill. I can test the Lambda function successfully by modifying the "Hello World" test with the DiscoverAppliancesRequest test, and that works as I would expect it to. I can also see the new skill (which I've called "Alexa2Domoticz") in the Echo App, but on attempting to get Alexa to discover new devices she is unable to find anything. I do not see any events in the CloudWatch which indicates to me that the skill is not calling the Lambda function, but I can't work out why this is. The only time I see entries in the CloudWatch logs is when I run the tests manually (as described above).

I've checked that the Application ID set for the Trigger of the Lamda function matches that of the Skill, and I've checked that the ARN of the Lamda function matches that configured in the Service Endpoint Type for the skill. My region is set to US East (N. Virginia) .... which my ARN seems to reflect correctly (i.e. it is "arn:aws:lambda:us-east-1:xxxxxxxxxxxx:function:alexa2Domoticz" (where xxxxxxxxxxx is a number). I didn't see a reference to the "Service Endpoint Type" in the instructions for setting up the Skill, but it does appear to be required and I can't progress without configuring one.

Any pointers appreciated as I feel I'm really close to getting this working.

Thanks,
Simon
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

You may be connected but the lambda isn't accessing your Domoticz server. Try this first:

You can also check the lambda is reaching Domoticz by, instead of using the hello world test, copy the discovery code from the instructions and see if the lambda gets connection to your Domoticz server by seeing the devices appear when running test.

Once you are sure that the lambda connects to domoticz, then check the service endpoint type in the skill. You get this from the lambda. It is shown in the top right if I remember correctly
simonfr
Posts: 16
Joined: Sunday 13 March 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by simonfr »

Thanks Nigel. It was your post on the Echo Facebook group that alerted me to this thread in the first place.

If I was connected I think I'd expect to see a hit in the CloudWatch logs. As per my post above, I have used the discovery code from the instructions to see if the Lambda function can indeed access my Domoticz server. Output as per below confirms this does indeed work :

Code: Select all

{
  "header": {
    "namespace": "Alexa.ConnectedHome.Discovery",
    "name": "DiscoverAppliancesResponse",
    "payloadVersion": "2"
  },
  "payload": {
    "discoveredAppliances": [
      {
        "applianceId": "73",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Vestibule - Mirror LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "31",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - Corner Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "30",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - Media Centre",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "106",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Family Room - Desk Lamp",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "111",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Family Room - Mirror LEDs New",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "32",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - TV Corner Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "18",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Front Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "107",
        "manufacturerName": "RFXTRX433E",
        "modelName": "ARC",
        "version": "On/Off",
        "friendlyName": "Dan's Room - Cupboard LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "106",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Family Room - Desk Lamp",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "81",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Master - Bookshelf LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "110",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - TV LEDs New",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "56",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Study - Main Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "46",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garage Double Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "24",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Stair Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "62",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Family Room - Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "45",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Back Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "62",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Family Room - Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "111",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Family Room - Mirror LEDs New",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "85",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Patio - Deck Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "59",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Lounge - Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "21",
        "manufacturerName": "RFXTRX433E",
        "modelName": "ARC",
        "version": "On/Off",
        "friendlyName": "Master - Simon's Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "86",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Patio - Right Socket",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "86",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Patio - Right Socket",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "32",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - TV Corner Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "24",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Stair Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "68",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garage LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "81",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Master - Bookshelf LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "46",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garage Double Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "69",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garage Door Socket",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "73",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Vestibule - Mirror LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "30",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - Media Centre",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "21",
        "manufacturerName": "RFXTRX433E",
        "modelName": "ARC",
        "version": "On/Off",
        "friendlyName": "Master - Simon's Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "59",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Lounge - Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "31",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - Corner Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "85",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Patio - Deck Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "107",
        "manufacturerName": "RFXTRX433E",
        "modelName": "ARC",
        "version": "On/Off",
        "friendlyName": "Dan's Room - Cupboard LEDs",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "110",
        "manufacturerName": "RFXTRX433E",
        "modelName": "COCO GDR2",
        "version": "On/Off",
        "friendlyName": "Lounge - TV LEDs New",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "56",
        "manufacturerName": "RFXTRX433E",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Study - Main Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      }
    ]
  }
}
I'll double check that the Endpoint Type in the Skill matches that of the Lambda function. Would you mind confirming the Lambda function role that you have set? Is it "service-role/BasicExecutionRole" or "lambda_basic_execution" ?
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

Thats' good - solves half the problem ;). With regard to your question;I have lambda_basic_execution.

You should think about changing the ARN to Ireland as it is closer, likely to respond faster and will not tire out your photons. It works well for me.
simonfr
Posts: 16
Joined: Sunday 13 March 2016 14:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by simonfr »

I've just tried updating the Lambda region to "EU (Ireland)", but on attempting to create the Lambda function I get :

Code: Select all

"Your Lambda function "AlexaToDomo" was successfully created, but there was an error creating the trigger: Could not create alexa-smart-home event source"
As per the Amazon AWS documentation, and the doc provided by Madgeni, I understood that the region HAD to be "US East (N. Virginia)".
nigels0
Posts: 221
Joined: Thursday 23 January 2014 12:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

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

Post by nigels0 »

No, works well in Ireland now. Did you change the ARN (and as a EU ARN) in the Skill as well?

Worst case (which really isn't that bad) - delete the lambda function and start again.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest