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

blinds poll failure repeating in logs #106

Open RichBrew opened 1 year ago

RichBrew commented 1 year ago

Describe Your Problem:

using: Somfy ZRTSI Controller (zw:L type:0200 mfr:0047 prod:5A52 model:5400 ver:1.08 zwv:3.42 lib:07 cc:86,72) and: somfy-shades/Springs Window Fashions Shade (zw:L type:1105 mfr:0047 prod:5A52 model:5401 ver:1.08 zwv:3.42 lib:07 cc:2C,72,26,20,25,2B,86)

homekit labels the device (blinds) as incompatible (while writing this up, i updated from 1.4.18 to 1.4.19 and the 'incompatible' label went away, but the error still repeats in the logs)

error repeats continuously in logs: [12/14/2022, 1:36:26 PM] [Smartthings Plug (IK)] Poll failure on Living Room Blinds

Logs:

[12/14/2022, 1:36:26 PM] [Smartthings Plug (IK)] Poll failure on Living Room Blinds

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 933D",
        "username": "0E:A9:2D:52:F8:72",
        "port": 51794,
        "pin": "875-94-229"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Nest",
            "access_token": "xxx",
            "platform": "Nest"
        },
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode-blue",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "SmartThings-v2",
            "app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/",
            "app_id": "xxx",
            "access_token": "xxx",
            "direct_port": 8000,
            "temperature_unit": "F",
            "validateTokenId": true,
            "logConfig": {
                "debug": false,
                "showChanges": true,
                "hideTimestamp": true,
                "hideNamePrefix": true,
                "file": {
                    "enabled": true,
                    "level": "good"
                }
            },
            "platform": "SmartThings-v2"
        },
        {
            "controllers": [
                {
                    "address": "192.168.1.1",
                    "password": "xxx",
                    "username": "xxx"
                }
            ],
            "platform": "UniFi Protect"
        },
        {
            "email": "xxx",
            "password": "xxx!",
            "name": "xxx",
            "platform": "myQ"
        },
        {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": "xxx",
            "GarageDoorMaxPoll": 10,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "platform": "HomeBridgeSmartThings",
            "_bridge": {
                "username": "0E:75:24:CD:94:B0",
                "port": 35051
            }
        }
    ],
    "disabledPlugins": [
        "homebridge-smartthings",
        "homebridge-myq"
    ]
}

Screenshots:

Environment:

v18.12.1

iklein99 commented 1 year ago

If you send me the debug logs, I may have a better idea of what is happening. Follow these steps:

  1. Truncate your logs.
  2. Go into Homebridge settings and turn on debug mode.
  3. Restart homebrige
  4. Reproduce the error
  5. Download the log file
  6. Reset the debug flag
  7. Restart homebridge

Send the logs directly to me at iklein99@comcast.net.

mpreissner commented 1 year ago

I just started seeing this on mine as well. I'm only using SmartWings roller shades. Installed them last week, and everything was working fine. Now homekit can't seem to get an updated status.

To clarify: I just created a new API token just to see if it would fix the issue - it did not. The devices appear fine when using the SmartThings app...it's just the ability of Homebridge to get the information from the ST platform that seems to be affected here.

iklein99 commented 1 year ago

Happy to take a look, but I need detailed logs. Follow the directions I posted on this issue 2 weeks ago.

bastropsteve commented 1 year ago

I am also seeing this issue. I collected debug logs for the applicable period and sent them per the instructions above.

iklein99 commented 1 year ago

Thanks. Got the logs - I’ll take a look and let you know if I need anything else.

On Mar 6, 2023, at 8:14 PM, bastropsteve @.***> wrote:

I am also seeing this issue. I collected debug logs for the applicable period and sent them per the instructions above.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/106#issuecomment-1457316770, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EUI7E4VFF3MHOVUBY3W22DWNANCNFSM6AAAAAAS64POCQ. You are receiving this because you commented.

mpreissner commented 1 year ago

Just as an update - I'm no longer having this issue. It seems that some of my shades were not reporting battery status until the battery had reached 100% charge for the first time. Now all report just fine and this error doesn't happen. Perhaps the plugin could have an option to ignore lack of battery status so that Homekit won't treat the device as unresponsive.

bastropsteve commented 1 year ago

FWIW, I just replaced all of the batteries on my six shades so they would all be at 100% which I confirmed via SmartThings. I'm still seeing the polling failures and undefined value errors.

iklein99 commented 1 year ago

Follow the instructions in this document and send me the logs. I need to see from startup until you see the issue.

Instructions for Producing a Detailed Log.pdf

ebdoran commented 7 months ago

I am having this issue as well, I will be emailing the logs.

ebdoran commented 3 months ago

Any updates on this?