Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: guard mode changes crash the client

See original GitHub issue

Client version


Node version


Operating System type


Operating system version

Windows 10

Describe the bug

With the new alarm delay event the library crashes on Homebase 2. See this issue for more information. I’ll provide a log of the eufy-security-client later. For now I only have the error message.

To reproduce

Calling this.eufyStation.setGuardMode(mode) with any approbiate mode.

Screenshots & Logfiles

[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase SET StationGuardMode (raw value homekit):0
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase SET StationGuardMode:1
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] INFO:  Homebase Request to change station guard mode to: Home.
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase ON handlePropertyChange: { name: 'guardMode', value: 1 }
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase ON handleRawPropertyChange: { type: 1151, value: '1' }
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase ON SecuritySystemCurrentState: 1
[7/21/2022, 8:51:34 AM] [EufySecurity-2.1.0-beta.11] DEBUG: Homebase ON handlePropertyChange: { name: 'currentMode', value: 1 }
TypeError: Cannot read properties of undefined (reading 'toString')
    at Station.getArmDelay (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\http\station.ts:596:85)
    at Station.onAlarmMode (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\http\station.ts:566:31)
    at P2PClientProtocol.<anonymous> (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\http\station.ts:54:68)
    at P2PClientProtocol.emit (node:events:527:28)
    at P2PClientProtocol.handleDataControl (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\p2p\session.ts:1274:22)
    at P2PClientProtocol.handleData (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\p2p\session.ts:988:18)
    at P2PClientProtocol.parseDataMessage (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\p2p\session.ts:979:26)
    at P2PClientProtocol.handleMsg (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\p2p\session.ts:801:26)
    at Socket.<anonymous> (C:\Users\Rene\AppData\Roaming\npm\node_modules\homebridge-eufy-security\node_modules\eufy-security-client\src\p2p\session.ts:113:56)
    at Socket.emit (node:events:527:28)
[21.7.2022, 08:51:34] [homebridge-eufy-security] Child bridge process ended

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

Palmkecommented, Jul 21, 2022

Sure. @thieren can you paste the security settings? And also, am I correct to assume you are using HomeKit?

thierencommented, Jul 23, 2022

Seems to work just fine now. Thx for the fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keyboard must be created before you can read events - Mojang
The bug. Minecraft crashes when you toggle fullscreen mode. ... Description: Updating screen events java.lang.
Read more >
Fix Valorant Crashing | Launch, Random Crashes & Instability
Trying to play Valorant, but it keeps randomly crashing or crashing on launch? This video covers a few common issues that could be...
Read more >
How to fix Fortnite crash and technical issues - Epic Games
Right-click your Epic Games Launcher shortcut. Click Run as administrator. Launch Fortnite. Update your video card drivers. Video driver updates are released ...
Read more >
143923 - Angry birds crashes in debug build when ... - Monorail
I just synced today, and I see that code in SkDeferredCanvas, but I still get the crash. The client appears to be doing...
Read more >
Overwatch 2 Known Issues - October 25, 2022 - Bug Report
Players on PC may be prompted to update their client. This addresses some reports of crashes and black screen issues.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found