plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Homekit arming alarm and disarming

Open alternativ opened this issue 2 years ago • 3 comments
trafficstars

What happened?

I was playing around with alarms and the contact sensor that I had installed at home. I found out that when I select away it is actually registering home in the eufy application and when I select away it disarms and sets home. I could manually circumvent this by setting the overrides as attached in the picture and the problem does not occur.

Please not that the attached config is showing after configuring the below. Screenshot 2023-09-25 at 15 10 50

Device Type

Doorbell (Supported)

Plugin Version

v2.0.x (Supported)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Raspbian 10+ (Supported)

Relevant log output

No logs displayed.

config

{
            "platform": "EufySecurity",
            "ignoreStations": [],
            "ignoreDevices": [],
            "cleanCache": true,
            "username": *masked*,
            "password": *masked*,
            "country": *masked*,
            "deviceName": "",
            "cameras": [
                {
                    "serialNumber": *masked*,
                    "rtsp": false,
                    "talkback": false
                },
                {
                    "serialNumber": *masked*,
                    "rtsp": false,
                    "enableCamera": true,
                    "enableButton": false,
                    "motionButton": false,
                    "indoorChimeButton": true,
                    "useCachedLocalLivestream": true,
                    "snapshotHandlingMethod": 2,
                    "videoConfig": {
                        "audio": false,
                        "audioSampleRate": 0
                    },
                    "refreshSnapshotIntervalMinutes": 5
                }
            ],
"_bridge": {
                "username": *masked*,
                "port": 44278
            },
            "stations": [
                {
                    "hkHome": 1,
                    "hkAway": 0,
                    "serialNumber": *masked*,
                    "hkNight": 2,
                    "hkOff": 63
                }
            ]
        }

alternativ avatar Sep 25 '23 13:09 alternativ

Did you check this Common Issues pages ?

github-actions[bot] avatar Sep 25 '23 13:09 github-actions[bot]

It appears that in version 2.2.21 the home/away logic has been inverted. Rolling back to 2.2.20 fixes the issue for me.

gazzmanzx6 avatar Sep 27 '23 07:09 gazzmanzx6

@lenoxys, I found the commit https://github.com/homebridge-eufy-security/plugin/commit/6e58ea768df66f3fb3df35e6df8a94548adda262

const config: StationConfig = { hkHome: stationConfig?.hkHome ?? this.platform.config.hkHome ?? 0, hkAway: stationConfig?.hkAway ?? this.platform.config.hkAway ?? 1, hkNight: stationConfig?.hkNight ?? this.platform.config.hkNight ?? 2, hkOff: stationConfig?.hkOff ?? this.platform.config.hkOff ?? 3,

hkHome should be 1 and hkAway should be 0.

alternativ avatar Sep 27 '23 07:09 alternativ