Page 10 of 36

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

Posted: Saturday 22 October 2016 19:31
by Madgeni
It's probably my code! i've not tested that many devices, so maybe not coping with that large an array.
i'll take a look

OK, so can you add a couple of lines of logging in for me? I don't want to add in 150 odd dummy devices into my domoticz set up :)
So in the getRooms function - :

Code: Select all

function getRooms(callback) {

    api.getPlans(function (error, plans) {

        var plansArray = plans.results;

//Add the below:
 console.log("number of rooms found - ",plansArray.length);
and in getRoomDevices:

Code: Select all

function getRoomDevices(devID, returnme){

    api.getPlanDevs({
        idx: devID
    }, function(params, callback) {
        var DevsArray = callback.results;
        y = DevsArray.length;
        for (var i = 0; i < DevsArray.length; i++) {
            var device = DevsArray[i];
            var devIDX = device.devidx;
  ---> add this:          log(device.name);

This will tell you how many rooms it's finding, and then list the devices per room.

Thanks!

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

Posted: Saturday 22 October 2016 22:17
by nigels0
Hi,


I've cut down the number of devices and some of the rooms to make it more manageable, and made the code changes.


It is finding 6 rooms (which is correct).

Here's the output

Code: Select all

START RequestId: 3504a4b4-9893-11e6-aa3b-ebf52efc4fc0 Version: $LATEST
2016-10-22T20:07:52.658Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	number of rooms found -  6
2016-10-22T20:07:52.958Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom Blind: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom Wardrobe Light: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bed BnO: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Velux Blinds: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Velux Windows: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom blinds Right: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom blinds Window: undefined
2016-10-22T20:07:52.959Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom Blind Left: undefined
2016-10-22T20:07:53.040Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Lounge Centre Light: undefined
2016-10-22T20:07:53.040Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Lounge Side Light: undefined
2016-10-22T20:07:53.040Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Veranda Lights: undefined
2016-10-22T20:07:53.040Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Table Lamps: undefined
2016-10-22T20:07:53.159Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Family Room: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** K BnO: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Kitchen Door: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Kitchen Main: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Office: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Office Window Light: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Utility Room: undefined
2016-10-22T20:07:53.178Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Kitchen Sink: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom 2: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom 3: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom 4: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bedroom 5: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bath BnO: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Bathroom: undefined
2016-10-22T20:07:53.239Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Stair Lights: undefined
2016-10-22T20:07:53.359Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Dining Picture Light: undefined
2016-10-22T20:07:53.359Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Dining Table: undefined
2016-10-22T20:07:53.359Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Plants Light: undefined
2016-10-22T20:07:53.359Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Hallway: undefined
2016-10-22T20:07:53.477Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Driveway Lights: undefined
2016-10-22T20:07:53.477Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Irrigation: undefined
2016-10-22T20:07:53.477Z	3504a4b4-9893-11e6-aa3b-ebf52efc4fc0	**** Rear Light: undefined
END RequestId: 3504a4b4-9893-11e6-aa3b-
There are some missing in the Smart Home Devices - specificaly the two Velux ones, the Bedroom Blinds right window and left.Notably, these are defined as Blinds - so maybe that's the problem - although Bedroom Blind gets through to the app and that is defined as a blind...

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

Posted: Sunday 23 October 2016 20:20
by Madgeni
thanks nigels0 -

for the log line " add this: log(device.name);"

Can you change it to log("name: ", device.name, " type: ", device.type)

My discovery is currently finding lights, groups and temperature sensors based on the Domoticz type (as seen in the Devices tab), so could be that.

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

Posted: Monday 24 October 2016 0:33
by nigels0
Here we go:

Code: Select all

393Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom 4"
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom 5"
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bath BnO"
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bathroom"
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Stair Lights"
2016-10-23T22:32:20.393Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Blind"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Wardrobe Light"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bed BnO"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Velux Blinds"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Velux Windows"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom blinds Right"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom blinds Window"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Blind Left"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Somfy Blinds"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Deck"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Christelle Light"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Main Light"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Nigel Light"
2016-10-23T22:32:20.514Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Driveway Lights"
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Irrigation"
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Rear Light"
2016-10-23T22:32:20.771Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.772Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Bedroom Deck"
2016-10-23T22:32:20.772Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
2016-10-23T22:32:20.772Z	8e74ba10-9970-11e6-a503-532190b26d0f	**** name: : "Garden side lights"
2016-10-23T22:32:20.772Z	8e74ba10-9970-11e6-a503-532190b26d0f	****  type: : 0
END RequestId: 8e74ba10-9970-11e6-a503-532190b26d0f

Note I had to put the log on two separate lines as I got nothing out otherwise. Looks like it isn't parsing the type value correctly for some reason.

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

Posted: Monday 24 October 2016 11:48
by Madgeni
i've resolved the switch issue in the repo - and added in two lines of logging for device discovery. The above logging is a red herring, as the plan device mapping doesn't have device type in it.

Can you try it from there?

https://github.com/madgeni/alexa_domo

Thanks

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

Posted: Monday 24 October 2016 11:58
by nigels0
Will do. Thanks again!

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

Posted: Monday 24 October 2016 12:23
by Madgeni
Sorry it's not working as necessary - as usual, this started as something for me, and has grown legs :)
Despite discovery issues, is it working via your Echo now?

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

Posted: Monday 24 October 2016 12:51
by nigels0
I sympathise! But this is such a worthwhile feature and really brings Domoticz to life and makes it much more useable for everyone in a household - not just people who are happy with phones etc. Apart from the missing device type, this is working really well - I bought 6 extra Dots to distribute around the house because of your bridge!

Sorry for the long post, but here is the output - the amount of devices I'm seeing is still the same and I'm not seeing any blinds type devices anymore.

Code: Select all

03.831Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.869Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bedroom Deck"
2016-10-24T10:43:03.869Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.871Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Kitchen Door"
2016-10-24T10:43:03.871Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.929Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Family Room"
2016-10-24T10:43:03.929Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.929Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Office Window Light"
2016-10-24T10:43:03.929Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.930Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Office"
2016-10-24T10:43:03.930Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.949Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Driveway Lights"
2016-10-24T10:43:03.949Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.950Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Rear Light"
2016-10-24T10:43:03.950Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:03.972Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Kitchen Sink"
2016-10-24T10:43:03.972Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.029Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Irrigation"
2016-10-24T10:43:04.029Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.030Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Utility Room"
2016-10-24T10:43:04.030Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.030Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bedroom 5"
2016-10-24T10:43:04.030Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.049Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bath BnO"
2016-10-24T10:43:04.049Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.049Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Family Room"
2016-10-24T10:43:04.049Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.069Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bathroom"
2016-10-24T10:43:04.069Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.079Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bedroom 4"
2016-10-24T10:43:04.079Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.094Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Garden side lights"
2016-10-24T10:43:04.094Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.110Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Kitchen Main"
2016-10-24T10:43:04.110Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.126Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Utility Room"
2016-10-24T10:43:04.126Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.142Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "K BnO"
2016-10-24T10:43:04.142Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
2016-10-24T10:43:04.157Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** Device name: : "Bedroom 2"
2016-10-24T10:43:04.157Z	a2343478-99d6-11e6-9232-f7edbf3d6835	**** device type: : "Lighting 5"
END RequestId: a2343478-99d6-11e6-9232-f7edbf3d6835

Code: Select all

{
  "header": {
    "namespace": "Alexa.ConnectedHome.Discovery",
    "name": "DiscoverAppliancesResponse",
    "payloadVersion": "2"
  },
  "payload": {
    "discoveredAppliances": [
      {
        "applianceId": "15",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Family Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "47",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "K BnO",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "14",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "13",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Main",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "16",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "12",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office Window Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "138",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Sink",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "141",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Utility Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "15",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Family Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "13",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Main",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "14",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "9",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Driveway Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "12",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office Window Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "19",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Rear Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "46",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Irrigation",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "47",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "K BnO",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "13",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Main",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "47",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "K BnO",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "16",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "322",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garden side lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "138",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Sink",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "254",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bedroom Deck",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "14",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Door",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "15",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Family Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "12",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office Window Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "16",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Office",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "9",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Driveway Lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "19",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Rear Light",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "138",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Sink",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "46",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Irrigation",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "141",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Utility Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "44",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bedroom 5",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "49",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bath BnO",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "15",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Family Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "45",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bathroom",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "43",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bedroom 4",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "322",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Garden side lights",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "13",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Kitchen Main",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "141",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "Dimmer",
        "friendlyName": "Utility Room",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "Dimmer",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "47",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "K BnO",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      },
      {
        "applianceId": "41",
        "manufacturerName": "RFXCom",
        "modelName": "LightwaveRF",
        "version": "On/Off",
        "friendlyName": "Bedroom 2",
        "friendlyDescription": ".",
        "isReachable": true,
        "actions": [
          "incrementPercentage",
          "decrementPercentage",
          "setPercentage",
          "turnOn",
          "turnOff"
        ],
        "additionalApplianceDetails": {
          "switchis": "On/Off",
          "WhatAmI": "light"
        }
      }
    ]
  }
}


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

Posted: Monday 24 October 2016 12:56
by Madgeni
Thanks -
so the Smart Home skill language currently only allows certain commands (on/off/settemp, set %age etc). Would you be ok with on/off for blinds?

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

Posted: Monday 24 October 2016 13:14
by nigels0
Absolutely!

New code discovers the blinds now - fantastic!

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

Posted: Monday 24 October 2016 15:36
by PABben
BazsoDombiAndras wrote:Unfortunately, getting this project up and running is a huge effort. It took me quite a few days to completely figure it out. It's working now, though, so I may be able to help with specific questions. The URL I use is https://<domain>/domoticz (no prt specified here, it defaults to 443 automatically). Note that in my local router I have a mapping from port 443 to an internal port 4443 because 4443 is the port specified in one of the source files for the Domoticz to Echo bridge.
Are you able to create a step-by-step guide on how to install this? :)

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

Posted: Monday 24 October 2016 15:59
by bbqkees
Please use the code tags [ code ] [/code ] when pasting large log files or pieces of code.
It automatically adds sliders so the page wont get too long.

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

Posted: Tuesday 25 October 2016 14:47
by nigels0
Anyone getting a lot of "that command doesn't work on that device" responses - then just repeating the same phrase, it works! Not sure why...

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

Posted: Tuesday 25 October 2016 16:41
by Madgeni
Don't think you can blame me for that one! Think Alexa gets more accurate the more you use it :)

Code updated to include a wider set of blinds, i've resolved the discovery failing if a group is in a room plan - over to you guys!

also started updating the readme, but it's probably still messy. When I get a chance i'll modularise the code for ease of consumption, and update the readme

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

Posted: Tuesday 25 October 2016 16:48
by nigels0
ha ha! No - not blaming you - just it seems devices go offline and online rather frequently - hopefully they'll fix it.

I'll try the code right now - thanks again!

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

Posted: Tuesday 25 October 2016 19:15
by nigels0
@madgeni,

I'm getting no discovered devices with this latest build.

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

Posted: Tuesday 25 October 2016 19:52
by nigels0
nigels0 wrote:Anyone getting a lot of "that command doesn't work on that device" responses - then just repeating the same phrase, it works! Not sure why...
Looking into it a bit further, this could be the problem..

"Online means that your actions in the companion app affect it. For instance, you can press play through the companion app and have it play on your AVS device. In other words, Alexa can talk directly to your device through an open connection (this is called the down channel). Offline means that there is no open connection. The v1 devices had this limitation because all interaction with AVS was through a request-response model. There was no open connection for Alexa to send directives on."

also "My OAuth server was granting an Access Token for 10 hours but no Refresh Token"

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

Posted: Tuesday 25 October 2016 20:38
by Madgeni
The no discovery thing isn't good! There's some logging commented out, can you try it with it on and see what happens?

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

Posted: Wednesday 26 October 2016 9:39
by Madgeni
ok, fixed - also introduced a safer config file for setting your hostname, userid/passwd.
Download the example_conf.json, rename to conf.json and put your own details in it, zip it along with the domapi.js, package.json and node_modules dir as usual

hopefully the readme doc is a little clearer also

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

Posted: Wednesday 26 October 2016 14:23
by nigels0
Trying it...