Skip to content

Releases

v0.6.0

Choose a tag to compare

@lenoxys lenoxys released this 27 Nov 17:43
Immutable release. Only release title and notes can be modified.
0e43175

116 pull requests since 0.5.0 (plus 4 dependency bumps): per-product options read from each product's thing description, setting writes that settle on the device's answer, recording downloads from a HomeBase 3, table and image reads on a HomeBase S1 Pro, lock frames over secure MQTT, and the app's P-256 media key for attached cameras.

npm install @mega-yfue/eufy-sdk@0.6.0

Breaking

  • Capabilities and their members follow the product's thing description once it loads. A member the description does not list is absent, and no capability is detected from a device's name. Check a member before calling it (#628, #634, #636, #637, #638, #639, #642, #647, #648, #649, #656, #657, #658).
  • LightActions.on, off and set are optional, absent where the spotlight switch wire is unconfirmed. Call light.on?.() (#613).
  • The co capability is removed: dev.co(), CO_MEMBERS, CoActions (#640).
  • The smartDrop capability is removed. A SmartDrop's lid is dev.lock().unlock() (#641).
  • rssi and lastSeen move from contact, lock, keypad, smoke and leak to dev.link(). getProperty("rssi") and getProperty("lastSeen") read as before (#630).
  • EntryAlarmTone and EntryAlarmToneValue are no longer exported. Pass the tone value (0-4) (#631).
  • StationFacesOptions is now StationReadOptions (#525).
  • setProperty rejects with CommandResultError when the device refuses or does not answer, and can wait up to 30 s (#655).
  • NightVision gains InfraredOn (3). An exhaustive switch over NightVisionValue needs the case (#627).
  • LiveTrace level2-unavailable gains the gateway-refused reason (#579).
  • A non-US country option with no countryCode throws a TypeError naming countryCode (#428).

Runtime exports go from 301 to 303: CommandResultError, LINK_MEMBERS, beginsAccessUnit, commandReflection and reflectCommand added, CO_MEMBERS, SMART_DROP_MEMBERS and EntryAlarmTone removed. New types: LinkActions, CommandReflection, MediaOutputResolution, StationReadOptions and the Thing* description types.

Thing descriptions

  • Each product's thing description is fetched, resolved per device and its conditions evaluated (#628, #629).
  • One link capability carries check-in and signal for every device (#630).
  • Entry sensors: left-open alert, daily check, tamper and bypass, low battery on battery (#631).
  • Detection from the description for leak (#632), spotlight (#634), pan-tilt and zoom (#636), doorbell (#637), smoke (#638), lock (#639) and motion (#642, #656). Leak and smoke read the params the app reads.
  • Options from the description: siren volume, duration and tone (#647), powerSource (#648), notification styles and live-view tiers (#649), night-vision modes (#627), sound detections (#623), motion tracking on ptz (#659).
  • Camera and audio settings are offered and written as the description and the product's bundle say (#657, #658), camera power included (#677).

Setting writes

  • A setting write settles on the device's answer and the getter reflects the written value (#655).
  • A station is asked for its parameter table once its session is keyed (#633).
  • An enum value outside the published options reads as undefined (#581). A valueless event announces the state its re-read lands (#635).

P2P and live video

  • Attached cameras are offered the app's P-256 media key, RSA as the fallback (#520).
  • Level 2: the cipher key is picked by the gateway info's header version (#650), each version negotiated on its own (#680) and named on level2-negotiating (#678). A re-prompt after a keyless settle is answered (#538), a media connection that never got its key is closed (#536), and an RSA key the cloud answers as PEM is read (#646).
  • A keyless cipher-65433 own-session camera starts live in the clear (#606). A cipher-0 session reads its database in the clear (#502).
  • Every live pull on a HomeBase 3 gets its own connection (#518). Simultaneous source builds for one camera are coalesced (#546).
  • A wired station's session stays open, its heartbeat counted as liveness (#522). Unsolicited keepalive pings are answered (#664). A T8423's level-1 session stays open after a guard-mode write (#484).
  • Cloud lookup asks the station's app_conn servers (#667), and the DSK lookup sends each station's own category (#521). A HomeBase S1 Pro is never dialled over P2P (#593).
  • Keyframes: a bit-0-clear unit with an IDR counts (#449), and a split unit's later-stamped frames are joined (#535).
  • Robustness: a short datagram is dropped (#542), an empty audio frame emits nothing (#544), a peer port Node cannot send to is skipped (#622), connect settles when the session closes while binding (#543), and the warm-up ticker is cleared before rewarm (#547).
  • A source stays stopped when its last Readable detaches after EOF (#519). The battery budget notice is re-emitted on an openReadable stream (#550).
  • Database reads: a station's camera-info table lands on each channel's camera (#571), an empty-string reply answers no rows (#600), and a session-key-sealed reply is opened (#654).

WebRTC portal route

  • HomeBase S1 Pro (T9000): tables and stored images read over the control channel (#525), and a bring-up fails at the step it fails, named on a timeout (#592).
  • T8N00: known attached cameras served through the NVR's media call (#524), T8P10 routed through it as a wired camera (#516), and Full-HD output selectable per live pull (#591).
  • The peer closes when the signalling socket closes (#561). Signing uses the portal WEB identity region (#598), and a refused sign names the shard and both estimates (#651).
  • A setter whose command kind the portal cannot carry is not advertised (#610).

Recordings

  • Downloads from cameras on a HomeBase 3 (#599), the T8530 included (#602). A recording the station does not hold is rejected at once (#603).
  • The downloaded video's codec is named (#601), and frames are counted across a frame size change (#604). The docs mux with -r to keep the measured fps (#617).
  • The HomeBase 2 path accepts the archive's recording name (#527).

Arming and motion

  • T8410 (#554) and T8442 (#702) get their guard mode as the direct 1224 frame, and both direct-frame models write every mode.
  • A T8410's motion switch reads and writes 6040, the param the app moves (#625). motionDetection allows the session-level auto fallback on 1011 (#697).

Locks

  • ff09 lock frames go over the region's security broker cluster (#621), addressed by product number (#668) or by serial when there is none (#670).
  • A standalone video lock sends ff09 over secure MQTT (#669), and ff09 goes in the clear when the station refuses level 2 (#579).
  • The Bluetooth lock actuates through the station's door-lock command (#689).
  • T8530: live view as a Readable (#573). A lock solely owns the battery property (#472).

Devices and model

  • PTZ rotate360, the room-scan sweep (#514). Vacuum requestMap over DP 153 (#567), and map-stream channels read as the robot's frames carry them (#552).
  • SmartTrack trackers get their own codec (#614). The sensor codec gets no battery surface (#616).
  • Spotlight: none inferred on the S350 (T8416) (#559), the Wall Light Cam S4 (T86C1) on the wall-light wire (#528), a HomeBase-attached E340/C45 doorbell on the int+string wire (#661).
  • T8416 is mains-powered (#700). T8224/T8223 get the doorbell capability (#589). A doorbell reporting its own quality on 1705 gets no live-view quality (#523).

Push, client, store

  • A half-open MCS socket is detected and reconnected (#471). A detection FCM delivers twice is announced once (#608).
  • Session and FCM files are written atomically and owner-only (#540). A failed push-store save (#539) and a failed read-through refresh (#510) are reported instead of thrown.
  • Each poll pass re-resolves a held device once (#541) and brings secure MQTT up to the roster (#548).
  • A stored snapshot's session failure clears on the next good login (#545). An untagged thumbnail failure names its kind (#580). The RTSP publish switch is sent unread (#698).

Repo. Specs keep host names out (#509), the router's replay gaps run on fake time (#644), fork pull requests route to the open beta (#695), BATTERY_MEMBERS stays unpublished in the docs (#626), and the devices gallery gains models, photos and a Baby section (#511, #512, #532, #673).

Deps. node-datachannel 0.33.6, @types/node, vitest and prettier (#679), and the vitepress docs bump (#553), with the matching dependabot bumps (#576, #578, #674).

What's Changed

  • fix(p2p): keep a T8423's level-1 session open after a guard-mode write by @danymexi in #484
  • test: keep host names out of the specs by @lenoxys in #509
  • docs(gallery): add missing models and a Baby section by @martijnpoppen in #511
  • docs(gallery): clear the leftover backdrop from the five new renders by @martijnpoppen in #512
  • fix(model): route the T8P10 PoE E41 through its T8N00 as a wired camera by @jaysi1001 in #516
  • fix(p2p): send a cipher-0 session's database reads in the clear by @Bielecki-UK in #502
  • fix(media): keep a source stopped when its last Readable detaches after EOF by @sapireli in #519
  • fix(client): report a failed read-through refresh instead of leaking it by @martijnpoppen in #510
  • fix(camera): keep live-view quality off a doorbell that reports its own (1705) by @martijnpoppen in #523
  • feat(rtc): serve known cameras attached to a T8N00 through the NVR's media call by @jaysi1001 in #524
  • fix(light): switch the Wall Light Cam S4 (T86C1) spotlight over the wal...
Read more

v0.5.0

Choose a tag to compare

@lenoxys lenoxys released this 24 Oct 16:09
Immutable release. Only release title and notes can be modified.
5f92bea

92 pull requests since 0.4.0 (plus 11 dependency bumps): the HomeBase S1 Pro and the portal's WebRTC route for call doorbells and PoE cameras, a PPCS relay fallback when no direct P2P path answers, per-mode push notification, lock actuation on the classic Wi-Fi lock and the T8530, and Tuya robots and mowers read the way the app reads them.

npm install @mega-yfue/eufy-sdk@0.5.0

WebRTC portal route

  • HomeBase S1 Pro (T9000): commands over the portal's control channel (#243), live view of the cameras behind it (#345), siren (#364, #401), a warm command session via the portal keepalive (#407), and no RTSP publish switch installed behind it (#453).
  • Live video for the standalone T8223 (#419) and T8224 (#507) doorbells over the portal call.
  • T8N00 PoE: commands over native call signaling (#354) and media over independent calls (#436). Independent optical views on NVR cameras (#479).
  • A local candidate trickles only while the signalling socket is open (#363). A refused sign's error no longer echoes the token (#427). A peer that cannot be built ends its session and fails the bring-up with that error (#466).

P2P and live video

  • Falls back to a PPCS relay when no direct path answers (#474), and a session whose RSA cipher key does not unwrap no longer fails (#505).
  • Resync after unrecovered loss (#322), the app's attached live start selector (#337), probe receive buffers sized (#367), source timestamps kept for live timing (#368), and fMP4 durations on the arrival clock (#423). The original arrival time is exposed in readable envelopes (#396).
  • Shared live consumers start at the next live keyframe (#483). Fragmented payloads are copied once (#392). UDP sends complete before close (#478).
  • Session lifecycle: independent media survives a station control close (#393), a connected peer's END closes the session (#394), a session that acks forced starts but serves nothing is replaced (#390), level 2 is negotiated from a gateway-info reply sent in the clear (#391), and a cipher-0 own-session live view starts and stops unencrypted (#475).
  • A failed live start traces its typed reason and stage (#462). Live-view quality can be set again over 2730 (#353). A short UDP receive buffer is noted at debug (#329).
  • Audio: an aac-eld frame carries the decoder config its framing lacks (#317), and talkback is sent in the codec the camera's speaker plays (#348).

Recordings. Recording pages are queried and archive downloads demonstrated (#313), and recording pictures are assembled before output (#312).

Arming. A device's push notification is read and set per guard mode, on stations (#357) and standalone cameras (#379). A T8410C gets its guard mode as the direct 1224 frame (#448).

Locks and SmartDrop

  • The classic Wi-Fi lock actuates over its keyed-payload envelope (#232), and its padded result is read by its sign code (#485).
  • T8530: control and status (#383), and its camera (#457).
  • A standalone SmartDrop opens its lid with a level-2 key negotiated over RSA (#403).

Tuya robots and mowers

  • Cloud login the way the app does it (#372). DPs read with dp.get, also when the broker refuses the subscribe (#416), robots read without bringing up the broker (#440), refreshed on the cloud poll (#442), and last data points read from the cloud on load (#347). Clean-line devices are no longer subscribed on the AIoT broker (#434).
  • Read-only mower capability from the E15's Tuya schema (#366).
  • Vacuum: one AutoClean pass starts an auto clean (#340), the alias names the robot (#344), suction range read when the catalog lists level names (#365), and a Raw-DP payload whose getter answers a boolean is kept (#443).

Devices and model

  • New or corrected models: T8E00/T8P00 PoE (#355, #376, #438), T8213 (#356), T8210C (#358), T8354 with pan/tilt (#430), T90S0 smoke alarm (#452). Doorbells are typed from the app's doorbell tables rather than a row per model (#481).
  • Capability fixes: S350 on/off through privacy mode (#321), T8423 spotlight (#351), E330 Pro spotlight (#406), T8171 spotlight not inferred (#498), T8134 ptz not granted (#431), T8442 night vision (#492), keypad charging and battery-low params (#496).
  • The manifest says whether each property has been reported (#359), the property schema resolves from realtime evidence too (#335), and Wi-Fi signal is exposed (#352). aiDetectType's JSON object form is read (#464), a stopped station alarm is told from a triggered one (#425), and a v2 thumbnail with encrypted chroma tables is recovered (#409).
  • A standalone camera can be restarted (#311). A wired station's session reopens after a standalone recycle (#426). Per-sensor indoor sensitivity is stored without warning (#405).

Push, HTTP, MQTT

  • A push bring-up that failed at startup is retried (#377). Acknowledged persistent ids are dropped after an MCS login (#495). A transition push with nothing left to move lapses quietly (#341).
  • Autonomous re-login stops once one needs a captcha or 2FA (#432), and a stored session from another country logs in again (#433).
  • Each probed broker's refusal reason is named (#429), and push and broker connection errors name the socket (#451).

Repo. Release job's npm pinned to CI's (#343), T8N00 routing spec fixed (#374), Photo / Icon toggle in the devices gallery (#399).

Deps. node-datachannel ships as a dependency (#361), so the WebRTC route installs with the SDK. Latest compatible versions (#499), mqtt 5.16.1, protobufjs 8.8.1, vitest 5.0.5 and docs toolchain bumps (#332, #333, #334, #413, #414, #417, #482, #489, #490, #493, #503). npm audit is clean.

Breaking changes

  • LiveTrace gains a start-failed phase (#462). A host typing an exhaustive table against the union needs the row before it compiles.
  • LiveAudioFrame is a union keyed on codec (#317). An aac-eld frame always carries config; aac-lc and g711a frames never do.
  • LiveConsumer.primed is removed (#483). A host reading it no longer compiles.
  • SharedLiveSourceOptions.onSessionUnreachable returns boolean (#390), not void. A () => void callback no longer typechecks.
  • DpCatalog.enumRanges holds string[] (#365), not number[].

No export removed. Two runtime exports added, MOWER_MEMBERS and SMART_DROP_MEMBERS (301, up from 299), and five types: MediaSourceSelection, MowerActions, SmartDropActions, ReceivedVideoFrame, TalkbackCodec.

What's Changed

  • chore(deps-dev): bump source-map-js from 1.2.1 to 1.2.2 in /docs by @dependabot[bot] in #334
  • chore(deps): bump brace-expansion from 5.0.9 to 5.0.12 in /docs by @dependabot[bot] in #333
  • chore(deps): bump @vue/server-renderer and vue in /docs by @dependabot[bot] in #332
  • fix(p2p): note a short UDP receive buffer at debug, not warn by @martijnpoppen in #329
  • fix(p2p): resynchronize live video after unrecovered loss by @sapireli in #322
  • feat(client): restart a standalone camera, not only a HomeBase by @martijnpoppen in #311
  • fix(model): resolve the property schema from realtime evidence too by @martijnpoppen in #335
  • feat(rtc): drive the HomeBase S1 Pro (T9000) over the portal's WebRTC control channel by @danymexi in #243
  • fix(ci): pin the release job's npm to 11.5.1, the one CI runs by @lenoxys in #343
  • fix(client): let a transition push with nothing left to move lapse quietly by @martijnpoppen in #341
  • fix(p2p): match attached live start selector from the app by @sapireli in #337
  • fix(vacuum): start an auto clean with one AutoClean pass by @martijnpoppen in #340
  • fix(p2p): describe aac-eld audio with the decoder config its framing lacks by @abavyka in #317
  • fix(client): read a robot's last data points from the cloud on load by @martijnpoppen in #347
  • fix(client): name a robot vacuum by its alias, not the product label by @martijnpoppen in #344
  • fix(model): register the T8213 Video Doorbell Dual as a doorbell by @max246 in #356
  • feat(camera): expose reported Wi-Fi signal by @genomez in #352
  • fix(light): send the T8423 spotlight enable on the level-1 int+string frame by @ImSkully in #351
  • fix(p2p): send talkback in the codec the camera's speaker plays by @abavyka in #348
  • fix(camera): set live-view quality again over 2730 by @lenoxys in #353
  • fix(p2p): assemble recording pictures before producing output by @benhei2 in #312
  • feat(p2p): query recording pages and demonstrate archive downloads by @benhei2 in #313
  • fix(rtc): connect T8N00 commands through native call signaling by @fubo08 in #354
  • feat(arming): read and set a device's push notification per guard mode by @lenoxys in #357
  • fix(p2p): size adopted probe receive buffers by @sapireli in #367
  • fix(model): classify the T8E00 PoE S4 as a camera by @fubo08 in #355
  • fix(ci): set the T8N00 child channel in the routing spec by @lenoxys in #374
  • fix(model): read a vacuum's suction rang...
Read more

v0.4.0

Choose a tag to compare

@lenoxys lenoxys released this 06 Oct 16:10
Immutable release. Only release title and notes can be modified.
7d1f016

Live video holds up on a lossy link or a busy host, a HomeBase 2 hands over its event recordings, camera power is right on the HomeBase 3 and indoor cams, and Security push registration now actually delivers events.

npm install @mega-yfue/eufy-sdk@0.4.0

Live video

  • The SDK asks for a 4 MiB UDP receive buffer, so the kernel no longer drops a keyframe burst. On a small Linux host this took live view from 9–30 s with freezes to about 4 s and smooth.
  • Late video datagrams are recovered and the stream resyncs after loss. The sequence counter no longer wraps at 255, and a frame header split across two datagrams is reassembled.
  • Liveness is measured on the peer path actually in use, and a cached live source is rebuilt when its session is replaced.
  • Closing the live view of a standalone camera stops its stream, so a floodlight's lamp turns off with it.

Recordings

  • New: camera().downloadRecording({ recording, cipherId }) fetches an event recording a HomeBase 2 holds, over the station's P2P session, without waking the camera. It returns H.264 and AAC (ADTS) plus frame counts and duration, and throws RecordingDownloadError on failure.

Push

  • Push registration completes on both the Mega and Security backends, so events raised by the app reach the SDK (#262).
  • A thumbnail stored only on the station is attached to the push, and one the media host hasn't published yet is retried.
  • Each received push and what it decoded to is logged at debug level.

Camera power

  • T8410 on a HomeBase 3: power state and readback are correct.
  • Indoor cams (incl. T8400 C120): the power switch uses the polarity the camera reports.
  • T8423 floodlight is mains-powered.
  • New: cameraPowerTier is exported, so a host reads the same power tier the SDK uses.

Devices and realtime

  • A station's face roster is read over P2P, so a recognised person shows up by name instead of "Person 1".
  • The HomeBase 3 siren works over the station alarm wire it advertises.
  • The classic Wi-Fi lock's result code is read correctly.
  • When the MQTT broker refuses one subscription, the device keeps its other granted ones.

Breaking changes

Change What to do
CapabilityDescriptor.accessor is optional: absent on a capability whose whole surface is inbound events (#276) Accept it missing, both in types and in any runtime validation of the manifest.

No export removed. Added: cameraPowerTier, RecordingDownloadError, VIDEO_GCM_AAD.

Thanks to everyone who contributed to this release: @sapireli, @PatrioteQc, @max246, @martijnpoppen, @ohetzendorfer, @Tursko, @tturnerdev, @sstangle73, @shaarkys, @genomez, @danymexi, @danielmigueltejedor and @lenoxys.

What's Changed

  • feat(p2p): read the zero-padded result code the classic Wi-Fi lock answers with by @tturnerdev in #233
  • fix(p2p): carry a frame header cut by the datagram boundary into the next datagram by @PatrioteQc in #259
  • fix(push): admit a station-only thumbnail under the push's device serial by @PatrioteQc in #258
  • Keep a device's granted MQTT legs when the broker refuses one of them by @martijnpoppen in #256
  • fix(p2p): ask for a 4 MiB receive buffer so keyframe bursts are not dropped by @ohetzendorfer in #255
  • fix(p2p): validate shared-live timer durations by @sapireli in #213
  • test(display): check unexposed through the binder, not the table by @max246 in #267
  • fix(camera): classify T8423 as mains powered by @sapireli in #225
  • test(http): keep gtoken header fixtures offline by @genomez in #286
  • refactor(http): share the passport login and signing steps between the eufy and Solix clients by @max246 in #268
  • fix(p2p): keep counting the level-2 sequence past 255 by @ohetzendorfer in #278
  • fix(siren): admit the HomeBase 3 to the station alarm wire it already advertises by @danymexi in #242
  • fix(camera): retry a push thumbnail the media host has not published yet by @PatrioteQc in #290
  • fix(p2p): stop logging the device's 0xf143 address record as UNHANDLED by @sstangle73 in #289
  • feat(p2p): download a recording stored on a HomeBase 2 by @PatrioteQc in #260
  • feat(client): read a station's own face roster over P2P by @martijnpoppen in #277
  • docs(model): define the provenance tiers once, on PropertySource by @max246 in #266
  • fix(p2p): measure liveness on the selected peer path by @sapireli in #282
  • fix(model)!: describe a capability that binds no surface, and claim the identified-person ids by @martijnpoppen in #276
  • fix(p2p): take a recording's finish frame on channel 0 by @PatrioteQc in #298
  • fix(p2p): name the input a connect's cloud lookup was missing by @lenoxys in #296
  • feat(push): log each received push and what it decoded to by @lenoxys in #297
  • fix(p2p): keep a recording's audio as the ADTS frames the camera sends by @PatrioteQc in #299
  • fix(p2p): rebuild a cached live source after session replacement by @sapireli in #279
  • feat(model): expose camera power tier by @sapireli in #308
  • docs(agents): the SDK's job is the vendor protocol, and an option defaults to today's behaviour by @lenoxys in #275
  • chore(deps): bump ip-address from 10.5.0 to 10.7.2 by @dependabot[bot] in #288
  • chore(deps): bump markdown-it from 14.3.0 to 14.3.2 in /docs by @dependabot[bot] in #309
  • fix(p2p): recover late video datagrams by @sapireli in #318
  • fix(push): complete Security push registration by @danielmigueltejedor in #306
  • fix(camera): correct T8410 HomeBase 3 power handling by @shaarkys in #304
  • fix(p2p): stop an own-session camera's live stream with the direct 1004 by @lenoxys in #315
  • fix(camera): use disable-bit power polarity for T8400 (C120) indoor cam by @Tursko in #319
  • release: 0.4.0 by @lenoxys in #331

New Contributors

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@lenoxys lenoxys released this 26 Sep 12:58
Immutable release. Only release title and notes can be modified.
5249034

A fixes release. P2P streams lose less on a lossy link, pushes carry their device serial, and two races that dropped a working session or MQTT connection are gone.

npm install @mega-yfue/eufy-sdk@0.3.0

P2P

  • The device's punch can land on any of several registered source ports, so a connection that used to miss now comes up.
  • Retransmitted datagrams are reassembled in sequence instead of discarded, which means fewer gaps in live video.

Push

  • Motion, person, package and doorbell pushes now carry their deviceSn. Before, a push whose serial was only in the envelope arrived with deviceSn: undefined.

Session and realtime

  • The session key exchange is single-flight, so concurrent calls no longer race each other into a re-login. The "another client" hint no longer fires on a plain expiry.
  • One connection per SecureMqtt: a second watch() no longer evicts the first.

Devices

  • T84A1 Wall Light Cam S100 is recognised and treated as mains-powered.
  • T8423 floodlight: the light switch works.
  • HomeBase AI detection type (1299) decodes as JSON.

Breaking changes

Change What to do
pushRaw: raw.payload is now the whole push envelope, with its payload entry JSON-parsed in place (#180) For a push that has a payload entry, read detail fields from raw.payload.payload. push / PushEvent consumers are unaffected.

No export removed and no new LiveTrace phase, so an exhaustive phase table compiles unchanged.

Thanks to everyone who contributed to this release: @max246, @sapireli, @rwunsch, @ImSkully and @lenoxys.

What's Changed

  • fix(p2p): register several source ports so the device's punch can land by @sapireli in #211
  • fix(light): map T8423 floodlight switch to the int+string wire by @ImSkully in #252
  • fix(p2p): use the device's retransmissions instead of discarding them by @sapireli in #212
  • fix(http): single-flight the session key exchange and soften the contention hint by @max246 in #251
  • fix(push): keep the whole envelope, so every push carries its device serial by @rwunsch in #180
  • docs(agents): one rules file for every agent, the checks before a pull request, and a template gate by @lenoxys in #263
  • fix(device): decode hbAiDetectType (1299) as JSON by @max246 in #248
  • Ask for the examples' 2FA code and captcha in the same run by @max246 in #247
  • fix(mqtt): one connection per SecureMqtt, so a second watch() cannot evict the first by @max246 in #239
  • fix(camera): treat the T84A1 Wall Light Cam S100 as mains-powered by @max246 in #250
  • release: 0.3.0 by @lenoxys in #265

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

Choose a tag to compare

@max246 max246 released this 23 Sep 16:31
Immutable release. Only release title and notes can be modified.
52e3c5d

The biggest release so far. Anker Solix support arrives, a HomeBase can now stream several cameras at once, and a station that can't be reached or addressed now fails with a typed error and a trace, where it used to be a silent wait.

npm install @mega-yfue/eufy-sdk@0.2.0

Anker Solix

The same eufy account also signs in to Anker's Solix cloud, and devices report live over the AWS-IoT plane. The SDK keeps that stream armed without the app being open.

  • Smart Meter (AE1X0). Per-line voltage, current and power, total power, and import/export energy.
  • Solarbank 4 (AE103).
    • Readings: state of charge, temperature, battery health, battery / AC / grid / home power, the four solar inputs, grid import and export limits, backup reserve and expansion-pack count.
    • Writable: ambient light, display timeout, and charge/discharge limits.
  • Sites. Devices are grouped the way the app shows them ("My Home"), and classified by product family.

Several cameras per HomeBase

A HomeBase serves one camera per session, not per station. A second camera asked for while the station's session is busy now gets a media session of its own instead of StationBusyError. Two attached cameras stream concurrently at full rate.

When a station doesn't answer

  • StationUnreachableError and StationKeyUnavailableError say which station failed and why. The wait now ends on the session's own deadline (15 s) instead of five seconds past it.
  • DeviceChannelUnresolvedError covers a device whose channel on its HomeBase is missing, or shared with another attached device. It's refused instead of addressed on a guessed channel, which could stream a different camera's video under its name.
  • Live traces state what a call was resolved to before anything is sent.

Devices

  • Smart Display has its own device line.
  • Vacuums: run a scene, a room set or a zone set, and choose cleaning type, extent and mop level.
  • Arming: custom1, and every guard mode a station reports.
  • Locks: locked state and battery.
  • Classification: T8200 is typed as a doorbell, T9000 as a station. The HomeBase-as-chime switch now has a setter.
  • Detections: mains-powered cameras no longer report a phantom battery, and detections are described only where the device evidences them.

Fixes

  • gtoken not equal userid. Accounts whose Anker cloud id differs from their eufy user id failed every authenticated read. Fixed.
  • A still gives its station back. A standalone station without a session key can be sent a set-payload.
  • A v2 event thumbnail no longer costs ~45 MB of memory to reconstruct.
  • Bounded token-replacement rate, a pinnable acting account name, and realtime connections identified by install.

Breaking changes

New LiveTrace phases: lookup-channels and station-channel-unresolved. A host that types an exhaustive table over LiveTrace phases (for example a Record keyed by LiveTrace["phase"]) stops compiling on 0.2.0 with TS2741 on the missing key. Add an entry for both phases before it compiles. This is the one break confirmed against a real downstream build.

Also removed or changed since 0.1.2:

Change What to do
StationBusyError removed (#168) Drop the catch. A second camera on a busy station now gets its own session and streams.
autoContrast removed (#195) The v2 thumbnail is no longer re-encoded, so there's nothing to call. Drop the import.
generateMqttUuid removed (#160) Derive a stable id with mqttUuidFrom(seed) instead of generating a random one per run.
getP2pSessions() also lists media sessions, keyed <stationSn>#live:<channel> (#168) Don't assume every key is a station serial.
An attached device with a missing or shared channel is refused with DeviceChannelUnresolvedError (#226) Handle the error. Previously it was sent to channel 0, or lost to list order.

Thanks to everyone who contributed to this release: @martijnpoppen, @lenoxys, @rwunsch, @matt1981m and @holland-built.


All changes

What's Changed

  • fix(mqtt): identify a realtime connection by install, not by certificate by @martijnpoppen in #160
  • feat(arming): allow setting custom1 (mode_type 3) by @holland-built in #158
  • feat(p2p): typed refusals for a station, and traces for the waits before them by @lenoxys in #162
  • fix(p2p): let a still give a station back, and state when a stream re-asserts its channel by @lenoxys in #167
  • feat(vacuum): send a scene, a room set and a zone set by @martijnpoppen in #164
  • feat(display): give the Smart Display its own line, namespace and reads by @martijnpoppen in #165
  • docs(gallery): show the Smart Display, on a line of its own by @martijnpoppen in #171
  • build(docs): typecheck the guides' TypeScript snippets in CI by @martijnpoppen in #166
  • feat(arming): every guard mode the station reports, it also accepts by @martijnpoppen in #172
  • feat(solix): full Anker Solix support (login, telemetry, devices, meter, battery, arming) by @max246 in #153
  • feat(p2p)!: serve several cameras on a station at once, a connection each by @martijnpoppen in #168
  • fix(battery): a mains camera has no cell, so it reports none of one by @martijnpoppen in #170
  • fix(model): a read a device's gate withheld is not published under its name by @lenoxys in #175
  • fix(registry): type the wired T8200 as a doorbell by @rwunsch in #179
  • feat(p2p)!: state what an unreachable station was asked for, and stop waiting past the asking by @lenoxys in #177
  • Stop the v2 thumbnail reconstruction costing 45 MB a picture, and say why one failed by @martijnpoppen in #195
  • fix(session): stop reading a gtoken mismatch as an expired token by @martijnpoppen in #190
  • feat(solix): AE1X0 meter bindings + gate the tag->name table to meter frames (folds #186) by @max246 in #184
  • fix(solix): detect a Solarbank's capabilities (category trailing space + newer models) by @max246 in #185
  • feat(solix): product-family classification + SolixSite system aggregate by @max246 in #187
  • chore(deps-dev): bump @types/node from 26.5.0 to 26.5.1 in the toolchain group by @dependabot[bot] in #188
  • chore(deps-dev): bump vitepress from 2.0.0-alpha.19 to 2.0.0-alpha.20 in /docs in the docs group by @dependabot[bot] in #189
  • Solix Solarbank 4 (AE103): telemetry + ambient light / display timeout / SOC-limit controls by @max246 in #196
  • feat(client): let a caller pin the acting account name by @martijnpoppen in #198
  • fix(p2p): let the session seal a set-payload, so a keyless standalone station can be sent one by @martijnpoppen in #197
  • fix(http): put the token-replacement rate on the rejection, so a host cannot loop past it by @martijnpoppen in #208
  • feat(model): describe a detection only where the device evidences it by @martijnpoppen in #207
  • feat(vacuum): let a caller state the cleaning type, extent and mop level by @martijnpoppen in #210
  • docs(solix): cross-reference field names to Anker's official Modbus registers by @max246 in #206
  • feat(solix): expose Solarbank batteryHealth (SOH) from the a4 BMS blob by @max246 in #209
  • feat(lock): map param 6000 (locked state) and 6001 (battery) by @matt1981m in #202
  • feat(model): classify the T9000 station as the station it is by @lenoxys in #192
  • fix(doorbell): the HomeBase-as-chime switch has a captured wire, so it ships a setter by @lenoxys in #181
  • feat(solix): expose grid power limits + backup reserve (write-readback confirmed) by @max246 in #217
  • feat(solix): expose expansion battery pack count + stack ceiling by @max246 in #218
  • fix(p2p): refuse a device whose station channel is missing or shared by @max246 in #226
  • release: 0.2.0 by @max246 in #230

New Contributors

Full Changelog: v0.1.2...v0.2.0

v0.1.2

Choose a tag to compare

@lenoxys lenoxys released this 11 Sep 21:31
Immutable release. Only release title and notes can be modified.
d37f00a

Nothing for consumers. dist/ is byte-identical to 0.1.1 and 0.1.0 — this release exists because the change
landed on main, and main is what gets released.

What changed

A pull request opened against main from anything other than a beta-X.Y.Z branch is now answered on the
pull request and closed, instead of only failing a status check.

The policy has always been that everything reaches main through a prerelease that was published and
installed first, so the code behind a stable release is never code that shipped for the first time at that
moment. What was missing was telling the author: a red mark in a tab they may never open, and an explanation
written to a step summary nobody reads, left mis-targeted pull requests sitting open while their authors
waited for a review that could not happen.

The comment carries both routes out — reopen after moving the base, which keeps the commits and reviews, or
open a fresh one against the beta branch. It fires on opened and reopened only, so a base corrected by an
edit re-runs the check and passes without a second comment.

Dependabot stays exempt, since it opens against the default branch and cannot follow whichever beta branch is
open that cycle.

If you contribute

Nothing to do differently. Target the current beta-X.Y.Z branch, as CONTRIBUTING.md already says. The
change only affects what happens when that is missed.

v0.1.1

Choose a tag to compare

@lenoxys lenoxys released this 11 Sep 15:34
Immutable release. Only release title and notes can be modified.
3c80a6a

Documentation only. dist/ is byte-identical to 0.1.0 — nothing to do if you already run it.

Why this version exists

npm renders a README from the published tarball, and 0.1.0's still carried the setup banner:

Not usable yet. … the library source lands next. 0.0.1 exists on npm only to prove the release
pipeline works — it is an empty package. Wait for 0.1.0.

Served on the page for 0.1.0. A README cannot be corrected without publishing.

The example did not compile

Verified against @mega-yfue/eufy-sdk@0.1.0 from the registry, --strict --module nodenext:

-await dev.panTilt()?.rotate(PtzDirection.left);   // Property 'panTilt' does not exist on Device
+await dev.ptz?.()?.rotate(PtzDirection.left);

-eufy.on("motion", (e) => console.log(e.device.name));  // PushSemanticEvent carries deviceSn
+eufy.on("motion", (e) => console.log(e.deviceSn));

-const stored = await dev.camera()?.snapshotStored?.();
+const stored = await dev.camera?.()?.snapshotStored?.();

The last one is not style. Accessors and the methods they return are evidence-gated: a device exposes
exactly the features it reported, so the optionality is the type saying one may be absent.

Also

  • Install shows the two commands, the Node floor, and that ffmpeg is optional. Nothing else.
  • The dependency list and the provenance claim are gone — npm renders both on the package page.
  • The architecture section is gone; AGENTS.md owns the layer graph and the decorrelation rule.

v0.1.0

Choose a tag to compare

@lenoxys lenoxys released this 11 Sep 11:05
Immutable release. Only release title and notes can be modified.
ae22268

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-sdk

Published 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/release name 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 Device says 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

  • dist bundled into a single ESM file (#130).
  • mqtt and protobufjs loaded 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

v0.0.5

Choose a tag to compare

@lenoxys lenoxys released this 05 Aug 20:01
Immutable release. Only release title and notes can be modified.
2186538

End-to-end verification of the full release flow: prepare-release bumped the version on a branch, the PR was reviewed and merged, and this tag publishes.

Still an empty package — no library code yet. Wait for 0.1.0.

v0.0.4

Choose a tag to compare

@lenoxys lenoxys released this 05 Aug 19:44
Immutable release. Only release title and notes can be modified.
3f4462d

Pipeline verification — the version now comes from the tag, not from package.json.

package.json is committed at 0.0.3 and this release is tagged v0.0.4, so publishing 0.0.4 is the proof that the tag is the source of truth. Still an empty package; wait for 0.1.0.