samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

[Bug]: Error - this.driver.refreshData is not a function #258

Closed coryforman closed 2 years ago

coryforman commented 2 years ago

What happened?

I am unable to configure this plugin after reinstalling - anytime I enter my email/password on the configuration screen, I get a red box popup at the lower right hand corder saying:

Error

this.driver.refreshData is not a function

Device Type

other (UnSupported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v14 (Supported)

Operating System

Raspbian

Relevant log output

No response

github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

coryforman commented 2 years ago

Did you check this Common Issues pages ?

Yes, nothing related there.

lenoxys commented 2 years ago

Are you sure you're using the latest version ? 1.0.1 or latest beta ?

coryforman commented 2 years ago

Are you sure you're using the latest version ? 1.0.1 or latest beta ?

The latest stable version installing is 1.0.0 on Homebridge. I’ve tried 1.1.1 beta 2 but same results.

ppodevlabs commented 2 years ago

i can confirm this is happening with 1.0.0

 [EufySecurity] Error refreshing data from Eufy:  TypeError: client.refreshData is not a function
    at EufySecurityPlatform.refreshData (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:418:22)
    at Timeout._onTimeout (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:424:16)
    at listOnTimeout (internal/timers.js:555:17)
    at processTimers (internal/timers.js:498:7)

1.0.1 still not available on homebridge

coryforman commented 2 years ago

i can confirm this is happening with 1.0.0

 [EufySecurity] Error refreshing data from Eufy:  TypeError: client.refreshData is not a function
    at EufySecurityPlatform.refreshData (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:418:22)
    at Timeout._onTimeout (/homebridge/node_modules/homebridge-eufy-security/src/platform.ts:424:16)
    at listOnTimeout (internal/timers.js:555:17)
    at processTimers (internal/timers.js:498:7)

1.0.1 still not available on homebridge

FYI I just logged in and see an update available for 1.0.2 with a fix for this. Can confirm after updating that the fix resolved it.