OpenWonderLabs / homebridge-switchbot

The Homebridge SwitchBot plugin allows you to access your SwitchBot Device(s) from HomeKit. Homebridge.
https://openwonderlabs.github.io/homebridge-switchbot/
ISC License
243 stars 53 forks source link

Motion Sensor: Does Not Perform as Expected #318

Closed EricSabe closed 2 years ago

EricSabe commented 2 years ago

Describe The Bug

Several Motion Sensors deployed alongside SimpliSafe motion sensors, tied together in nodered with TP-Link Kasa switches to enable room occupancy monitoring. Motion should reset the occupancy timer. SimpliSafe sensors work as expected. SwitchBot sensors do not keep the timer running.

To Reproduce

Turn on light. Move around. Find yourself in unexpected darkness after the timer runs down.

Expected behavior

Turn on light. Move around. SimpliSafe sensors consistently report motion events through HomeBridge to nodered, resetting the timer until the person leaves the area.

Relevant log output

Generating Debug Logs

Config for homebridge-switchbot

        {
            "name": "SwitchBot",
            "credentials": {
                "openToken": "encrypted",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "logging": "standard"
            },
            "platform": "SwitchBot"
        },

Screenshots

See Below

Device & Model

Motion Sensor

Node.js Version

v16.14.0

NPM Version

v8.3.1

Homebridge Version

v1.4.0

Homebridge Switchbot Plugin Version

v1.12.8

Homebridge Config UI X Plugin Version

v4.43.0

Operating System

Homebridge Docker/Alpine Linux (3.12.9)

EricSabe commented 2 years ago

Adding screenshot of a SwitchBot Motion Sensor Log:

image

EricSabe commented 2 years ago

To compare with these events I pipe to Syslog:

image

image

donavanbecker commented 2 years ago

not sure what you want me to do here? doesn't seem to be a plugin issue, more of an API? or what?