SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

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

Open alexbk66 opened this issue 1 year ago • 3 comments

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

  • OS:
  • Software:
  • Node:
  • npm:

Additional Context

No response

alexbk66 avatar Aug 05 '24 04:08 alexbk66

Which cameras?

donavanbecker avatar Aug 05 '24 04:08 donavanbecker

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 avatar Aug 05 '24 04:08 alexbk66

Yes, the reply from user:

I have three "SwitchBot Outdoor Spotlight Cam"

alexbk66 avatar Aug 06 '24 01:08 alexbk66