A Node.js WebSocket server that wraps the eufy-security-client library, providing programmatic access to Eufy Security devices (cameras, doorbells, locks, sensors). Version 2.1.0 requires Node >=20.0.0 and uses CJS modules. It exposes a WebSocket API for controlling and receiving events from Eufy devices, designed for integration into custom smart home systems. The project is community-maintained and not affiliated with Anker/Eufy.
npm install eufy-security-wsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate the WebSocket server with a pre-shared key, start it, and how a client connects and sends a login command.
Use `const EufySecurityWS = require('eufy-security-ws');` instead of `import`.Use a reverse proxy like nginx to terminate TLS and forward to the WS server.
Replace `psk` with `authentication: (request) => request.url.searchParams.get('psk') === 'my-secret-psk'`.Upgrade Node.js to v20 or later.
Kill the process using the port or change port in options.
Provide a string PSK via options.psk or switch to authentication callback.
Use `require` instead of `import`.