homebridge-switchbot: Bug: API Request: TypeError

Describe The Bug

error shows up in log

To Reproduce

just updated to V2.0. It might be because the Curtains are not grouped?

Expected behavior

no error

Relevant log output

[12/10/2022, 10:39:36] [SwitchBot] API Request: TypeError: Cannot read properties of undefined (reading 'toUpperCase')
[12/10/2022, 10:39:36] [SwitchBot] deviceName: Rote Gardine [Curtain Config] disable_group: undefined, UnGrouping true
[12/10/2022, 10:39:36] [SwitchBot] deviceName: Vorhang [Curtain Config] disable_group: undefined, UnGrouping true

Config for homebridge-switchbot

{
  "name": "SwitchBot",
  "credentials": {
    "token": "xxx",
    "secret": "xxx",
    "notice": "Keep your token a secret!"
  },
  "options": {
    "irdevices": [
      {
        "deviceId": "xxx",
        "configRemoteType": "TV"
      }
    ],
    "refreshRate": 30,
    "pushRate": 1,
    "logging": "standard"
  },
  "platform": "SwitchBot"
}

Screenshots

No response

Device & Model

na

Node.js Version

v16.17.1

NPM Version

8.15.0

Homebridge Version

v1.5.0

Homebridge Switchbot Plugin Version

v2.0.0

Homebridge Config UI X Plugin Version

v4.50.1

Operating System

Raspian Buster

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23

Commits related to this issue

Most upvoted comments


{"statusCode":190,"body":{},"message":"Requests reached the daily limit"}

Closing as it will be resolved with v2.1.0 which I will release right now.