jfarmer08 / homebridge-wyze-smart-home

Wyze Smart Home plugin for Homebridge.
MIT License
93 stars 14 forks source link

Error getting devices: Error: ENOENT: #198

Closed daftpac closed 4 months ago

daftpac commented 7 months ago

Describe The Bug: WyzeERRORError getting devices: Error: ENOENT: no such file or directory, open '/var/lib/hoobs/wyzesmarthomebridge/persist/wyze-5f8a0cb2-bd25-59a3-8f4d-b343199f476f.json'.

To Reproduce: issues occurs when saving the config

Expected behavior: for the plugin to pull the devices

Logs:

11/18/2023, 12:43:44 PMWyze Smart Home Bridge starting
11/18/2023, 12:43:55 PMWyze Smart Home BridgeLoaded plugin 'homebridge-wyze-smart-home'
11/18/2023, 12:43:56 PMWyze Smart Home BridgeLoading 1 platforms...
11/18/2023, 12:43:56 PMWyze Smart Home BridgeBridge is running on port 51826.
11/18/2023, 12:43:57 PMWyze Smart Home BridgeWyzeERRORError getting devices: Error: ENOENT: no such file or directory, open '/var/lib/hoobs/wyzesmarthomebridge/persist/wyze-5f8a0cb2-bd25-59a3-8f4d-b343199f476f.json'.

Plugin Config:

{
    "platform": "WyzeSmartHome",
    "name": "Wyze",
    "username": "email",
    "password": "password",
    "refreshInterval": 60000,
    "keyId": "key",
    "apiKey": "key",
    "logging": "debug"
}

Screenshots:

Environment:

github-actions[bot] commented 7 months ago

Message that will be displayed on users' first issue

jfarmer08 commented 7 months ago

You can try and change the location of the stored file. By adding persistPath to the config.

"persistPath":"/filepath"

ronster22 commented 6 months ago

That worked for me!

mdavid6 commented 6 months ago

i had exactly the same issues i have try to change de location like you said but do i keep the /filepath ?? or other

carTloyal123 commented 4 months ago

@daftpac is this resolved with the latest updates to the plugin?

jfarmer08 commented 4 months ago

@mdavid6 change it too something like '/var/lib/hoobs' for testing.

jfarmer08 commented 4 months ago

https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/201

jfarmer08 commented 4 months ago

https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/201