bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
165 stars 24 forks source link

[Bug]: station.chime responds 'device_not_supported' with S380 Homebase #324

Open GWustenstein opened 2 months ago

GWustenstein commented 2 months ago

Version

driver 3.0.0 server 1.8.0

Node version

19.8.1

Operating System type

Linux

Operating system version

Rasbian Bullseye arm6l

Describe the bug

Regarding the S380 (homebase 3) station.chime does not seem to work. Looking at the app u/i, there seem to be new fields and metadata related to this model in a submenu. On the eufy app, it's under Audio Settings -> Ringtone Settings (different!) and in that screen there's entries for Homebase Alert, Homebase Ringtone Volume, and Homebase Alert Tones (list consisting of Default, Silent, Beacon, Chord, Christmas, Circuit, Clock, Ding, Hillside, and Presto). Assuming these are ints 0-8 or 9, but I wouldn't put it past them to make them named references for future expansion. I don't have the facility to run the app in a simulator to sniff out the new command/fields, otherwise I'd post it here and frankencode a patch to test it out.

'2024-04-17 20:13:34.470 ERROR eufy-security-ws Message error

NotSupportedError This functionality is not implemented or supported, , [object Object], NotSupportedError error stack: • station.ts Station.chimeHomebase /node_modules/eufy-security-client/src/http/station.ts:9393 • message_handler.ts Function.handle /src/lib/station/message_handler.ts:185 • task_queues processTicksAndRejections internal/process/task_queues:95 • server.ts async Client.receiveMessage /src/lib/server.ts:125 '

To reproduce

  1. Go to ts-node src/bin/client.ts
  2. enter station.chime [for an S380 station]
  3. ?
  4. PROFIT!

Screenshots & Logfiles

No response

Additional context

Found this while trying to get the chime function work in the python wrapper to Eufy from HA