bropat / eufy-security-client

This shared library allows to control Eufy security devices by connecting to the Eufy cloud servers and local/remote stations over p2p.
MIT License
482 stars 69 forks source link

[Question]: What is a correct way to get events? #508

Closed BezzubovEgor closed 18 hours ago

BezzubovEgor commented 4 months ago

Ask your question

First of all, thank you for this great lib, it is really useful.

I have a question about getting the history (events). Could you tell me what the correct way of getting an events list currently? I am specifically interested in getting a list of events for HB3 and S330 cameras.

I have tried to use databaseQueryLocal but it in the end returns the following:

[p2p] [P2PClientProtocol.handleDataControl] Handle DATA CONTROL - Not implemented - CMD_DATABASE message [{
  "stationSN":"XXXXXXXXXXXXX",
  "commandIdName":"CMD_DATABASE",
  "commandId":1306,
  "channel":255,
  "databaseResponse":{"mIntRet":-6006,"msg":"ERROR_NO_SUPPORT","version":"1.2.0.1"}
}]

At the same time databaseQueryLatestInfo and databaseCountByDate return results.

PhilippEngler commented 3 months ago

I have been faced this error, too. The databaseQueryLocal is not working with the HB3, but works fine with the HB2 and other standalone devices. At the moment, you can only the last event for the HB3 (with databaseQueryLatestInfo).