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.0Breaking
- 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,offandsetare optional, absent where the spotlight switch wire is unconfirmed. Calllight.on?.()(#613).- The
cocapability is removed:dev.co(),CO_MEMBERS,CoActions(#640). - The
smartDropcapability is removed. A SmartDrop's lid isdev.lock().unlock()(#641). rssiandlastSeenmove from contact, lock, keypad, smoke and leak todev.link().getProperty("rssi")andgetProperty("lastSeen")read as before (#630).EntryAlarmToneandEntryAlarmToneValueare no longer exported. Pass the tone value (0-4) (#631).StationFacesOptionsis nowStationReadOptions(#525).setPropertyrejects withCommandResultErrorwhen the device refuses or does not answer, and can wait up to 30 s (#655).NightVisiongainsInfraredOn(3). An exhaustive switch overNightVisionValueneeds the case (#627).LiveTracelevel2-unavailablegains thegateway-refusedreason (#579).- A non-US
countryoption with nocountryCodethrows aTypeErrornamingcountryCode(#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
linkcapability 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 onptz(#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
openReadablestream (#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
-rto 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).
motionDetectionallows 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
batteryproperty (#472).
Devices and model
- PTZ
rotate360, the room-scan sweep (#514). VacuumrequestMapover 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 wall-light wire by @jaysi1001 in #528
- fix(p2p): accept the archive's recording name in the HomeBase 2 path by @Jopie64 in #527
- chore(deps-dev): bump vitepress from 2.0.0-alpha.20 to 2.0.0-alpha.21 in /docs in the docs group by @dependabot[bot] in #553
- fix(p2p): give every live pull on a HomeBase 3 a connection of its own by @sapireli in #518
- fix(http): send each station's own category in the DSK lookup by @Shafty199 in #521
- feat(rtc): read a T9000's tables and stored images over the control channel by @danymexi in #525
- fix(p2p): close a media connection that never got its level-2 key, so the camera's next open dials a fresh one by @sapireli in #536
- fix(p2p): negotiate the reply to a level-2 re-prompt after a keyless settle by @sapireli in #538
- fix(client): report a failed push-store save instead of throwing from the socket by @sapireli in #539
- fix(store): write the session and FCM files atomically and owner-only by @sapireli in #540
- fix(client): re-resolve a held device once per poll pass by @sapireli in #541
- fix(p2p): drop a datagram too short for its header instead of throwing by @sapireli in #542
- fix(camera): clear a stored snapshot's session failure when login succeeds again by @sapireli in #545
- fix(p2p): clear the warm-up re-issue ticker before rewarm arms another by @sapireli in #547
- fix(p2p): re-emit the battery budget notice on an openReadable stream by @sapireli in #550
- fix(p2p): coalesce simultaneous live source builds for one camera by @sapireli in #546
- fix(p2p): settle connect when the session closes while its socket binds by @sapireli in #543
- fix(client): bring secure MQTT up to the roster on every poll pass by @sapireli in #548
- fix(rtc): close the peer when the signalling socket closes by @danymexi in #561
- feat(p2p): offer an attached camera the app's P-256 media key, with RSA as the fallback by @sapireli in #520
- fix(p2p): join a split unit's frames stamped a little later than its first by @Bielecki-UK in #535
- fix(p2p): emit nothing for an audio frame with no bytes past its header by @sapireli in #544
- feat(vacuum): requestMap, the vendor app's map ask over DP 153 by @martijnpoppen in #567
- fix(light): don't infer a spotlight on the Indoor Cam S350 (T8416) by @martijnpoppen in #559
- fix(mqtt): read each map-stream channel as the message a robot's frames carry by @martijnpoppen in #552
- docs(gallery): add photos for the eight tiles that only had an icon by @martijnpoppen in #532
- fix(client): keep a wired station's session open and count its heartbeat as liveness by @martijnpoppen in #522
- fix(p2p): land a station's camera-info table on each channel's camera by @danymexi in #571
- fix(camera): offer the T8530 live view as a Readable by @davidjortizrivera in #573
- chore(deps): bump node-datachannel from 0.33.4 to 0.33.6 by @dependabot[bot] in #578
- chore(deps-dev): bump @types/node from 26.6.5 to 26.6.6 in the toolchain group by @dependabot[bot] in #576
- feat(ptz): rotate360, the room-scan sweep by @martijnpoppen in #514
- fix(diagnostics): name the kind of an untagged thumbnail failure by @martijnpoppen in #580
- fix(arming): send a T8410 its guard mode as the direct 1224 frame, and let both direct-frame models write every mode by @martijnpoppen in #554
- fix(model): read an enum member's value outside its published options as undefined by @martijnpoppen in #581
- fix(model): give a lock sole ownership of the battery property by @max246 in #472
- fix(client): reject the misnamed
countryoption by @max246 in #428 - fix(client): never dial P2P to a HomeBase S1 Pro (T9000) by @martijnpoppen in #593
- fix(p2p): answer no rows when a database reply's data is an empty string by @gcrft123 in #600
- feat(p2p): download recordings from cameras on a HomeBase 3 by @gcrft123 in #599
- fix(rtc): sign on the portal WEB identity region by @fubo08 in #598
- fix(model): give the Video Doorbell C30/C31 (T8224/T8223) the doorbell capability by @lenoxys in #589
- fix(camera): offer the T8530 a recording download behind a HomeBase 3 by @gcrft123 in #602
- fix(p2p): reject a recording a HomeBase 3 does not hold at once by @gcrft123 in #603
- feat(p2p): name a downloaded recording's video codec by @gcrft123 in #601
- feat(media): select Full-HD NVR output per live pull by @fubo08 in #591
- fix(rtc): fail a T9000 bring-up at the step it fails, and name that step on a timeout by @martijnpoppen in #592
- fix(p2p): count a recording's frames across a change of frame size by @gcrft123 in #604
- fix(model): withhold the battery surface on the sensor codec by @max246 in #616
- docs(media): mux a downloaded recording with -r so it keeps the measured fps by @gcrft123 in #617
- fix(p2p): send ff09 lock commands in the clear when the station refuses level-2 by @phgravel in #579
- fix(p2p): count a bit-0-clear unit with an IDR as a keyframe by @max246 in #449
- fix(docs): keep BATTERY_MEMBERS unpublished and name a private constant by @kayjay-madman in #626
- fix(push): announce one detection once when FCM delivers it twice by @martijnpoppen in #608
- fix(motion): read and write a T8410's motion switch on 6040, the param the app moves by @gcrft123 in #625
- fix(rtc): don't advertise a setter whose command kind the portal can't carry by @max246 in #610
- feat(model): read each product's thing description, resolved per device, as the source of per-product options by @lenoxys in #628
- feat(model): evaluate the thing conditions the catalogue uses, drop the ones it doesn't by @lenoxys in #629
- fix(light)!: install no spotlight switch on a model whose wire is unconfirmed by @martijnpoppen in #613
- fix(model): claim the sound detections on the product's thing description by @martijnpoppen in #623
- feat(model): one link capability for the check-in and signal params every device reports by @lenoxys in #630
- fix(camera): pick the night-vision wire from what the device reports, and offer the modes its thing description lists by @lenoxys in #627
- feat(p2p): ask a station for its parameter table once its session is keyed by @lenoxys in #633
- feat(contact): expose what an entry sensor reports and the app sets, on the product's description by @lenoxys in #631
- fix(leak): read a water sensor on the params the app reads, and detect it from its description by @lenoxys in #632
- fix(client): announce the state a valueless event's re-read lands by @danymexi in #635
- fix(p2p): read an RSA cipher key the cloud answers as PEM by @danymexi in #646
- fix(smoke): read a smoke alarm on the param the app reads, and detect it from its description by @lenoxys in #638
- fix(light): detect the spotlight from the product's thing description by @lenoxys in #634
- fix(p2p): start live in the clear on a keyless cipher-65433 own-session camera by @lenoxys in #606
- fix(siren): offer the volume, duration and tone a product's description lists by @lenoxys in #647
- fix(camera): offer the notification styles and live-view tiers the description lists by @lenoxys in #649
- fix(motion): read and write the motion switch the app moves, and stop detecting it from a name by @lenoxys in #642
- fix(ptz): detect pan-tilt and zoom from the product's thing description by @lenoxys in #636
- fix(doorbell): detect a doorbell from its description, never the owner's name by @lenoxys in #637
- fix(lock): detect a lock from the product's thing description, not its name by @lenoxys in #639
- fix(co)!: remove the co capability, no eufy product reads a CO state by @lenoxys in #640
- test(p2p): run the router's replay gaps on fake time by @lenoxys in #644
- fix(p2p): pick the level-2 cipher key by the gateway info's header version by @lenoxys in #650
- fix(motion): let the thing description pick the family before the codec by @lenoxys in #656
- fix(lock)!: offer the SmartDrop lid as the lock it is described as by @lenoxys in #641
- fix(battery): offer powerSource where the product's description lists power_charge_mode by @lenoxys in #648
- fix(audio): offer and write audio settings as the product's description and bundle say by @lenoxys in #658
- fix(camera): offer and write each setting as the product's description and bundle say by @lenoxys in #657
- fix(p2p): hand readDatabase the opened text of a session-key-sealed database reply by @gergelyurbancsik in #654
- feat(ptz): offer motion tracking where the description lists motion_track_status by @lenoxys in #659
- fix(mqtt): send lock frames over the region's security broker cluster by @kayjay-madman in #621
- fix(p2p): skip a peer port Node cannot send to instead of crashing by @kayjay-madman in #622
- fix(p2p): settle a setting write on the device's answer by @lenoxys in #655
- fix(light): switch a HomeBase-attached E340/C45 doorbell spotlight on the int+string wire by @martijnpoppen in #661
- fix(p2p): ask a station's cloud lookup on its app_conn servers, as the app does by @lenoxys in #667
- fix(rtc): name the sign shard and both estimates when an RTC sign is refused by @lenoxys in #651
- fix(mqtt): address a lock's ff09 topics by its product number by @kayjay-madman in #668
- fix(mqtt): derive a lock's ff09 topic from its serial when it has no product number by @lenoxys in #670
- fix(model): classify SmartTrack trackers as their own codec, not camera by @max246 in #614
- fix(push): detect a half-open MCS socket and reconnect by @max246 in #471
- docs(gallery): add the Wall Light Cam S4 (T86C1) photo by @lenoxys in #673
- chore(deps-dev): bump prettier from 3.9.10 to 3.10.1 in the toolchain group by @dependabot[bot] in #674
- fix(p2p): name the gateway info's header version on level2-negotiating by @lenoxys in #678
- fix(camera): read camera power where the product's bundle reads it by @lenoxys in #677
- chore(deps): bump node-datachannel, @types/node, vitest and prettier by @lenoxys in #679
- fix(p2p): negotiate each gateway-info version on its own by @lenoxys in #680
- fix(p2p): answer unsolicited device keepalive pings by @smitty078 in #664
- fix(lock): send a standalone video lock's ff09 frames over secure MQTT by @kayjay-madman in #669
- fix(lock): actuate the Bluetooth lock through the station's door-lock... by @delphiactual in #689
- fix(motion): allow session-level auto fallback for motionDetection (param 1011) by @Supremumguru in #697
- fix(rtsp): send the publish switch unread by @martijnpoppen in #698
- fix(ci): route fork pull requests to the open beta by @lenoxys in #695
- fix(arming): send a T8442 its guard mode as the direct 1224 frame on channel 255 by @Cooluck in #702
- fix(battery): treat the T8416 Indoor Cam S350 as mains-powered by @martijnpoppen in #700
New Contributors
- @jaysi1001 made their first contribution in #516
- @Shafty199 made their first contribution in #521
- @Jopie64 made their first contribution in #527
- @gcrft123 made their first contribution in #600
- @phgravel made their first contribution in #579
- @kayjay-madman made their first contribution in #626
- @gergelyurbancsik made their first contribution in #654
- @smitty078 made their first contribution in #664
- @delphiactual made their first contribution in #689
- @Supremumguru made their first contribution in #697
- @Cooluck made their first contribution in #702
Full Changelog: v0.5.0...v0.6.0