SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

No deviceType field for Curtain 3

Open AdyRock opened this issue 2 years ago • 8 comments

Analysis

When fetching the list of device from the API, the curtain 3 devices have no deviceType entry.

Expected Behavior

A valid deviceType of something like "Curtain" or "Curtain3".

Steps To Reproduce

Call the API entry to fetch the list of devices.

Logs

{
  "deviceList": [
    {
      "deviceId": "C1316F1469F6",
      "deviceName": "Curtain 3 F6",
      "enableCloudService": true,
      "hubDeviceId": "",
      "curtainDevicesIds": [
        "E517216B42B6",
        "C1316F1469F6"
      ],
      "calibrate": false,
      "group": true,
      "master": false
    },
    {
      "deviceId": "C2A87CFB7CD3",
      "deviceName": "Hub 2",
      "deviceType": "Hub 2",
      "enableCloudService": true,
      "hubDeviceId": ""
    },
    {
      "deviceId": "C7850DE4775B",
      "deviceName": "Contact Sensor 5B",
      "deviceType": "Contact Sensor",
      "enableCloudService": true,
      "hubDeviceId": "C2A87CFB7CD3"
    },
    {
      "deviceId": "E517216B42B6",
      "deviceName": "Curtain 3 B6",
      "enableCloudService": true,
      "hubDeviceId": "E8099027FE07",
      "curtainDevicesIds": [
        "E517216B42B6",
        "C1316F1469F6"
      ],
      "calibrate": true,
      "group": true,
      "master": true
    },
}

Configuration

Using Homey

Environment

Homey

Additional Context

Without the deviceType it is difficult to determine which driver to use. Currently, all I can do is assume the missing deviceType has to be the curtain 3 devices, but that can't be good.

AdyRock avatar Sep 15 '23 06:09 AdyRock

Any news on when this will be fixed?

AdyRock avatar Sep 25 '23 08:09 AdyRock

Bump

AdyRock avatar Oct 05 '23 08:10 AdyRock

Bump

Michael-B-23 avatar Nov 06 '23 14:11 Michael-B-23

Bump

alexbk66 avatar Nov 24 '23 05:11 alexbk66

I have exactly the same problem

D-Kalck avatar Nov 27 '23 08:11 D-Kalck

This problem should have been fixed. Please check again.

Minsheng avatar Jan 29 '24 09:01 Minsheng

Yes, I can now see the Device type is reported as "Curtains3".

Does this require a firmware update or will all curtain 3 units now report this?

AdyRock avatar Jan 29 '24 10:01 AdyRock

I am seeing the same issue with the Hub 2, missing deviceType

skarotech avatar Feb 09 '24 00:02 skarotech