Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error "DeviceNotFoundError: Device doesn't exists" in AddOn log #265

Closed
dernorberto opened this issue Oct 9, 2023 · 3 comments
Closed
Labels
bug Something isn't working fixed
Milestone

Comments

@dernorberto
Copy link

Version

1.6.4

Node version

16.20.1

Operating System type

Docker

Operating system version

Home Assistant

Describe the bug

Linking possibly related issue: #264

Using Homebase 3 (S380)

  • System Version: 3.3.2.6
  • Subsystem version: 1.4.0.8

There's an error in the Addon log every time it is started:

2023-10-09 09:23:37.483  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2023-10-09 09:23:40.306  INFO  Connected to station T8030P23225100A6 on host 192.168.188.222 and port 12487 
2023-10-09 09:23:42.765  INFO  Push notification connection successfully established 
2023-10-09 09:23:43.537  ERROR onStationDatabaseQueryLatest Error 
{
  error: {
    message: "DeviceNotFoundError: Device doesn't exists",
    stacktrace: "DeviceNotFoundError: Device doesn't exists\n" +
      '    at EufySecurity.getDevice (/usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:372:15)\n' +
      '    at EufySecurity.onStationDatabaseQueryLatest (/usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:2344:26)\n' +
      '    at Station.<anonymous> (/usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:479:97)\n' +
      '    at Station.emit (node:events:525:35)\n' +
      '    at Station.emit (node:domain:489:12)\n' +
      '    at Station.onDatabaseQueryLatest (/usr/src/app/node_modules/eufy-security-client/build/http/station.js:7377:14)\n' +
      '    at P2PClientProtocol.<anonymous> (/usr/src/app/node_modules/eufy-security-client/build/http/station.js:78:80)\n' +
      '    at P2PClientProtocol.emit (node:events:513:28)\n' +
      '    at P2PClientProtocol.emit (node:domain:489:12)\n' +
      '    at P2PClientProtocol.handleDataControl (/usr/src/app/node_modules/eufy-security-client/build/p2p/session.js:1860:42)'
  },
  stationSN: 'T8030P23225100A6',
  returnCode: 0
}
2023-10-09 09:25:39.840  INFO  Client disconnected with ip: 127.0.0.1 port: 49518 code: 1000 reason: Normal Closure 

To reproduce

  1. Go to Settings > Addons > eufy-security-ws
  2. restart
  3. go to logs

Screenshots & Logfiles

No response

Additional context

No response

@dernorberto dernorberto added the bug Something isn't working label Oct 9, 2023
@jesse-kaufman
Copy link

I get this after I've removed a camera from the Eufy app. From then on, I get it shows in the logs. Everything seems to work ok, though.

I have also noticed that the Home Assistant devices aren't always removed for the cameras that were removed from the Eufy app. Not sure if that's related, but it might be.

@PhilippEngler
Copy link

It seems that the result of the StationDatabaseQueryLatest function also contains the removed devices. It has been occurred also in my case after deleting cams from HomeBase 2. We should check if the device is in the account and if not, jump over the entry.

@AFPass
Copy link

AFPass commented Nov 7, 2023

Same here.
The camera deleted from the account is in the error message

@bropat bropat added the fixed in next release Fixed in the code of the next release label Nov 12, 2023
@bropat bropat added this to the 1.8.0 milestone Dec 4, 2023
@bropat bropat added fixed and removed fixed in next release Fixed in the code of the next release labels Mar 3, 2024
@bropat bropat closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

5 participants