nikkow / node-red-contrib-tahoma

Node-RED module to control a Somfy Tahoma box (Roller shutters...). Used for home automation flows.
Apache License 2.0
19 stars 11 forks source link

Missing field name and available when get device info TAHOMA #38

Closed HubertusH closed 4 years ago

HubertusH commented 4 years ago

in previus version of contrib-tahoma it works - in the actual version the fields "name" and "avaible" are lost. When i call the /get/GetDevicesBySiteId at the somfy developer api site i get the responce of all devices. For the box himself i get:

    "id": "8xxxxxxx-5850358c-3yyyyyyy-014b3968",
    "type": "hub_tahoma_1",
    "categories": [
      "hub"
    ],
    "states": [],
    "capabilities": [],
    "site_id": "ß948ß109483ß0412ß390481ß",
    "name": "TAHOMA",
    "available": true,
    "version": "2018.4.4.7-kizboxv1"
  }

with the fields name and avaible - when i do this wirh Tahoma-Read the result is:

payload: object
   id: "8xxxxxxx-5850358c-3yyyyyyy-014b3968"
  type: "hub_tahoma_1"
  categories: array[1]
    0: "hub"
  states: array[0]
  capabilities: array[0]
  site_id: "ß948ß109483ß0412ß390481ß"
  version: "2018.4.4.7-kizboxv1"
  topic: ""
_msgid: "295024f.b5753dc"

BR Hubertus

nikkow commented 4 years ago

Hi @HubertusH,

There is no filtering performed on the responses provided by Somfy API. It seems that Somfy provides a different fieldset depending on the endpoint you are requesting.

The endpoint that lists all the devices belonging to a given site includes, indeed, those two properties. However, the endpoint used to retrieve a single device, does not.

You might want to raise this issue to Somfy directly. As the API response is broadcasted as-is to the node output, it will be available as soon as Somfy takes action.