iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

New Version not Registering my Tilt Rollershades #212

Closed 20sixstring closed 9 months ago

20sixstring commented 10 months ago

Tilt Roller Shades For the past two years, I've been using the tonesto7 plugin on my Homebride to manage my Tilt RollerShades in HomeKit. However, last week, homebridge began generating a 401 error for smartthings in the logs. I've since installed this new plugin and noticed that it can access my SmartThings account successfully. However, it's only registering one out of the 4 devices, which happens to be a TV. My 3 Tilt roller shades are no longer visible.

I'm curious if this plugin is designed to retrieve all devices registered with SmartThings, as the previous version did. Any assistance you can provide would be immensely appreciated—I'm feeling quite lost without the ability to control my shades in HomeKit.

Logs: [02/09/2023, 02:11:55] Loaded plugin: homebridge-smartthings-ik@1.5.14 [02/09/2023, 02:11:55] Registering platform 'homebridge-smartthings-ik.HomeBridgeSmartThings' [02/09/2023, 02:11:55] --- [02/09/2023, 02:11:55] Loading 6 platforms... [02/09/2023, 02:11:55] [Smartthings Plug (IK)] Initializing HomeBridgeSmartThings platform... [02/09/2023, 02:11:57] [Smartthings Plug (IK)] Registering new accessory: Samsung Q70 Series (65)

Show the Homebridge logs here, remove any sensitive information.
 {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": "Valid",
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "PollWindowShadesSeconds": 20,
            "ExposeHumiditySensorForAirConditioners": false,
            "OptionalModeForAirConditioners": "None",
            "platform": "HomeBridgeSmartThings"
        }

Screenshots:

Environment:

20sixstring commented 10 months ago

See extended log below. It appears that the RollerShades are being pushed to the plugin but the plugin doesn't register the devices.

02/09/2023, 02:47:16] Loaded plugin: homebridge-smartthings-ik@1.5.14 [02/09/2023, 02:47:16] Registering platform 'homebridge-smartthings-ik.HomeBridgeSmartThings' [02/09/2023, 02:47:16] --- [02/09/2023, 02:47:16] Loading 6 platforms... [02/09/2023, 02:47:16] [Smartthings Plug (IK)] Initializing HomeBridgeSmartThings platform... [02/09/2023, 02:47:16] [Smartthings Plug (IK)] Finished initializing platform: Smartthings Plug (IK) [02/09/2023, 02:47:16] [Smartthings Plug (IK)] Loading accessory from cache: Samsung Q70 Series (65) [02/09/2023, 02:47:16] [Smartthings Plug (IK)] Executed didFinishLaunching callback [02/09/2023, 02:47:16] [Smartthings Plug (IK)] Discovering devices... [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Pushing Bedroom - Shades [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Pushing Kitchen - Patio Door [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Pushing Samsung Q70 Series (65) [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Stored all devices. [02/09/2023, 02:47:18] [Smartthings Plug (IK)] DEVICE DATA: {"deviceId":"removed prefix 0000000000","name":"c2c-shade","label":"Bedroom - Shades","manufacturerName":"SmartThings","presentationId":"SmartThings-smartthings-c2c-shade","deviceManufacturerCode":"tilt","locationId":"0000000000","roomId":"0000000000","components":[{"id":"main","label":"main","capabilities":[{"id":"windowShade","version":1},{"id":"switchLevel","version":1},{"id":"refresh","version":1},{"id":"healthCheck","version":1}],"categories":[{"name":"Blind","categoryType":"manufacturer"}]}],"createTime":"2022-05-17T20:25:05.518Z","profile":{"id":"0000000000"},"viper":{"manufacturerName":"tilt","modelName":"Roller Shade","endpointAppId":"0000000000"},"type":"VIPER","restrictionTier":0,"allowed":[]} [02/09/2023, 02:47:18] [Smartthings Plug (IK)] DEVICE DATA: {"deviceId":"removed prefix 0000000000","name":"c2c-shade","label":"Kitchen - Patio Door","manufacturerName":"SmartThings","presentationId":"SmartThings-smartthings-c2c-shade","deviceManufacturerCode":"tilt","locationId":"0000000000","roomId":"0000000000","components":[{"id":"main","label":"main","capabilities":[{"id":"windowShade","version":1},{"id":"switchLevel","version":1},{"id":"refresh","version":1},{"id":"healthCheck","version":1}],"categories":[{"name":"Blind","categoryType":"manufacturer"}]}],"createTime":"2022-05-17T20:25:05.519Z","profile":{"id":"0000000000"},"viper":{"manufacturerName":"tilt","modelName":"Roller Shade","endpointAppId":"0000000000"},"type":"VIPER","restrictionTier":0,"allowed":[]} [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Restoring existing accessory from cache: Samsung Q70 Series (65) [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Creating instance of SwitchService for capabilities switch [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Adding SwitchService to Samsung Q70 Series (65) [02/09/2023, 02:47:18] [Smartthings Plug (IK)] Registered SwitchService for capabilities switch

iklein99 commented 9 months ago

Closing as this is a duplicate