Repository navigation
v0.1.0
The first release published to npmjs as a public package, from a now-public repository. Earlier
versions went to GitHub Packages because the source was private; that reason is gone, and with it the
.npmrc a consumer had to write by hand.
npm install @mega-yfue/eufy-sdkPublished from CI with provenance, over an OIDC trusted publisher that stores no token. Prereleases
ship on the beta channel (@mega-yfue/eufy-sdk@beta) while a version is under review, so the code
behind a stable release is never code that shipped for the first time at that moment.
386 commits, 123 pull requests. Node.js ≥ 24.5.0 required.
Breaking changes
Pre-1.0: nothing is kept beside its replacement.
- Property announcements are derived from the members table, and every change is announced. The
per-member opt-out is gone (#95). - A live source announces its coded configuration to each consumer — a consumer reads the picture
geometry off the stream instead of assuming it (#98). - Per-camera media isolation. A station that serves one camera at a time says so, refuses a second
viewer, and never hands over a sibling camera's media, however long it has been serving it (#100). - A station's session is built from the station's own record, or not at all (#113).
- Consumers pace a live stream, and a live trace names the pull it belongs to as an opaque handle.
- The event pre-warm is opt-in, and the caller picks which power tiers it covers (#94).
- Live media is refused on a camera that is switched off — a typed reason, not a stall.
- The server is verified on a pinned broker dial, and on the push channel at all (#109).
clean: five reads a coverage audit found missing, one that was wrong, and DP 162 is a voice
pack rather than a locale (#85).- The spotlight master switch is reported, so the read is published (#95).
retain/releasename the P2P session refcount (#115).
Realtime and property announcements
- Property changes announced from a realtime report, not only from a poll (#95).
- The poll diff is applied to the live device, and the read-through re-read announces what it lands.
- A dropped
Devicesays when its announcements stopped, instead of going quiet. - A parameter the cloud has since moved is retired rather than reported at its old id.
Live media and P2P
- The heartbeat answer is read, and the path that stopped giving one is rebuilt (#100).
- A real start is re-issued while nothing has arrived — not a keepalive — and a session nothing
acknowledged is replaced instead of spending the window on it. - Retransmitted live keyframes are preserved, and numbering is resynchronized when a camera restarts
(#75). - Live startup is traced as structured stages, and start failures are typed (#75).
- Coded picture geometry is read from the parameter sets, with a wide exp-Golomb field decoded rather
than wrapped; a recording declares its geometry from those sets instead of zero (#98). - Closes nobody asked for are announced, so nothing is handed a dead session (#112).
- A caller can open one station without warming a fleet (#126), and abandon one media call without
disturbing the pull others hold.
Cameras and doorbells
- The two quality settings told apart — live view and recording (#136) — with labelled recording
tiers (#148). - Notification style, and what 6020 actually means (#134).
- Sound detection: the switch, the sensitivity and the type (#141).
- Doorbell live-view quality and video encoding format, both inside 1705 (#137, #149).
- No phantom battery on mains-powered cameras (#128).
- The PTZ property table corrected to the ids the app writes; three that read the wrong wire are gone
(#139). - RTSP: the camera-reported URL read as inbound state (#114, #127).
Smart lights and sirens
- Smart-light custom colour exposed (#25).
- Siren alarm outputs deepened, and standalone-siren support derived from reported evidence (#23).
Model
- The Smart Display gets its own codec, grouped into security (#117).
- Realtime readiness is exposed (#20).
Performance
distbundled into a single ESM file (#130).mqttandprotobufjsloaded on first use: importing this package cost 36 MB, now 24 (#125).- The v2 thumbnail search stops climbing a ladder it has already failed (#131).
- No waiting for a level-2 key a start does not need.
Build, CI and docs
- A guard that capability semantics stay in their own module (#95).
- The prerelease counter is per base version, not per channel dist-tag (#142).
- Device renders converted to lossless WebP (#118).
- The vendor's own misspellings kept, ours fixed, and the Anker eufy name adopted (#120).
- Root config tidied: dead allowlist, leaked test globals, stale ignores (#122).
Thanks
This project is shaped as much by the people who put it through its paces on real hardware as by the
people who write the code. Reverse-engineering a device you can only observe means someone has to live
with the rough edges, capture the logs, and try the fix again — and again — until it actually holds up
in a real home.
Wingers — for the endless testing. Thank you for patiently running build after build against your
own devices, chasing the intermittent cases, sending the logs that turned guesses into fixes, and
staying with it until the thing was genuinely ready. A lot of what works in 0.1.0 works because you
made sure it did.
max246, lenoxys and martijnpoppen — every commit in this release is co-authored by all
three.
If you helped test and you are not named here, that is an oversight and not intent — say the word.
Docs: https://mega-yfue.github.io/ · Problems: https://github.com/mega-yfue/eufy-sdk/issues