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

statelessProgrammableSwitchService throws error on null switch value #181

Open sipuncher opened 1 year ago

sipuncher commented 1 year ago

Describe The Bug: Homebridge log is filled with errors for all devices with switches "Missing button status from [device name]"

To Reproduce: I have a range of z-wave and zigbee relays that have switch inputs that i'm not using.

Expected behavior: No errors in logs

Logs:

[26/06/2023, 17:58:15] [Smartthings Plug (IK)] Button value from Front Garden Uplighter: null
[26/06/2023, 17:58:15] [Smartthings Plug (IK)] Missing button status from Front Garden Uplighter

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 9AD8",
        "username": "0E:A5:61:46:9A:D8",
        "port": 51749,
        "pin": "483-66-557",
        "bind": [
            "Ethernet"
        ]
    },
    "accessories": [
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config",
            "sessionTimeout": 28800
        },
        {
            "name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": ""
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "PollSwitchesAndLightsSeconds": 10,
            "IgnoreDevices": [
                "Dehumidifier",
                "Beas side light",
                "Hatties side light"
            ],
            "platform": "HomeBridgeSmartThings"
        }
    ],
    "disabledPlugins": [
    ]
}

Screenshots:

Environment:

roger-richards commented 4 months ago

I too have this symptom. Would be nice to have a way of suppressing error messages from a ST device.