OpenWonderLabs / SwitchBotAPI

SwitchBot Open API Documents
874 stars 73 forks source link

JSON response for "/devices" doesn't have "deviceType" field for cameras #330

Open alexbk66 opened 3 months ago

alexbk66 commented 3 months ago

Analysis

JSON response for "/devices" doesn't have "deviceType" field for cameras, see log below

Expected Behavior

Should add "deviceType" field for cameras.

Steps To Reproduce

Execute "/devices" request

Logs

{
        "deviceId": "eb3884bc99a5d26922cx0j",
        "deviceName": "Camera Drive 03",
        "enableCloudService": true,
        "hubDeviceId": "FFFFFFFFFFFF"
      },
      {
        "deviceId": "eb806f7a2d590d76113nfn",
        "deviceName": "Camera Drive 01",
        "enableCloudService": true,
        "hubDeviceId": "FFFFFFFFFFFF"
      },
      {
        "deviceId": "ebfb7a0806ba392037npkq",
        "deviceName": "Camera Drive 02",
        "enableCloudService": true,
        "hubDeviceId": "FFFFFFFFFFFF"
      }

Configuration

N/A

Environment

Additional Context

No response

donavanbecker commented 3 months ago

Which cameras?

alexbk66 commented 3 months ago

Which cameras?

I don't know, I'm the author of SwitchBot plugin for HomeSeer https://forums.homeseer.com/forum/hs4-products/hs4-plugins/lighting-primary-technology-plug-ins-aa/ak-switchbot/1620351-new-switchbot-plugin-introduction-configuration?p=1620354#post1620354

The user reported the problem, so I need to check with him.

[EDIT]

I asked the user, but in the mean time I can assume it's SwitchBot Outdoor Spotlight Cam - because all three cameras are in the driveway.

alexbk66 commented 3 months ago

Yes, the reply from user:

I have three "SwitchBot Outdoor Spotlight Cam"