SwitchBotAPI
SwitchBotAPI copied to clipboard
No deviceType field for Curtain 3
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.
Any news on when this will be fixed?
Bump
Bump
Bump
I have exactly the same problem
This problem should have been fixed. Please check again.
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?
I am seeing the same issue with the Hub 2, missing deviceType