wez / govee2mqtt

Govee2MQTT: Connect Govee lights and devices to Home Assistant
MIT License
467 stars 30 forks source link

Add-On stops working with 2024.10.2 #295

Closed FRANKWHITE1 closed 6 days ago

FRANKWHITE1 commented 1 week ago

Govee Device SKU

...

Govee2MQTT Version

2024.07.13-82ddc6e9

Describe the issue

Since updating Core to 2024.10.2 and Home Assistant Operating System to Version: 13.2 the add-on inmediately shuts down after starting

Startup Diagnostics

13: main s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started GOVEE_API_KEY=REDACTED GOVEE_MQTT_HOST=core-mosquitto GOVEE_TEMPERATURE_SCALE=C GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_MQTT_USER=addons GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-10-17T19:13:09 INFO govee::commands::serve] Starting service. version 2024.07.13-82ddc6e9 [2024-10-17T19:13:09 INFO govee::commands::serve] Querying platform API for device list Error: request https://openapi.api.govee.com/router/api/v1/user/devices status 401: Unauthorized. Response body:

Stack backtrace: 0: anyhow::error::::msg 1: anyhow::private::format_err 2: govee::cache::CacheResult::into_result 3: govee::platform_api::GoveeApiClient::get_devices::{{closure}} 4: govee::commands::serve::ServeCommand::run::{{closure}} 5: govee::Args::run::{{closure}} 6: tokio::runtime::park::CachedParkThread::block_on 7: tokio::runtime::context::runtime::enter_runtime 8: tokio::runtime::runtime::Runtime::block_on 9: govee::main 10: std::sys_common::backtrace::rust_begin_short_backtrace 11: std::rt::lang_start::{{closure}} 12: std::rt::lang_start_internal 13: main s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started GOVEE_API_KEY=REDACTED GOVEE_MQTT_HOST=core-mosquitto GOVEE_TEMPERATURE_SCALE=C GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_MQTT_USER=addons GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-10-17T19:33:42 INFO govee::commands::serve] Starting service. version 2024.07.13-82ddc6e9 [2024-10-17T19:33:42 INFO govee::commands::serve] Querying platform API for device list [2024-10-17T19:33:42 WARN govee::cache] request https://openapi.api.govee.com/router/api/v1/user/devices status 401: Unauthorized. Response body: , will use prior results Error: request https://openapi.api.govee.com/router/api/v1/user/devices status 401: Unauthorized. Response body:

Stack backtrace: 0: anyhow::error::::msg 1: anyhow::private::format_err 2: govee::cache::CacheResult::into_result 3: govee::platform_api::GoveeApiClient::get_devices::{{closure}} 4: govee::commands::serve::ServeCommand::run::{{closure}} 5: govee::Args::run::{{closure}} 6: tokio::runtime::park::CachedParkThread::block_on 7: tokio::runtime::context::runtime::enter_runtime 8: tokio::runtime::runtime::Runtime::block_on 9: govee::main 10: std::sys_common::backtrace::rust_begin_short_backtrace 11: std::rt::lang_start::{{closure}} 12: std::rt::lang_start_internal 13: main s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

Additional Logs

No response

Home Assistant Logs

Logger: homeassistant.components.hassio Quelle: components/hassio/websocket_api.py:135 Integration: Home Assistant Supervisor (Dokumentation, Probleme) Erstmals aufgetreten: 18:22:48 (4 Vorkommnisse) Zuletzt protokolliert: 19:10:14

Failed to to call /addons/b9845f46_govee2mqtt/start - Another job is running for job group addon_b9845f46_govee2mqtt Failed to to call /addons/b9845f46_govee2mqtt/stats - Container addon_b9845f46_govee2mqtt is not running

Anything else?

No response

wez commented 6 days ago

The 401 error is coming from govee. Their service may just be having a bad time, or there may be an issue with your credentials. This sort of error usually fixes itself when govee makes a change on their end, so I'd suggest just waiting a day or two and see if that's what happens.

If your devices are all LAN api capable, then you may just want to clear the govee user/password that you have configured to allow the addon to start and find your LAN api devices.

FRANKWHITE1 commented 6 days ago

Thanks for your reply wez. I reinstalled the add-on in HomeAssistant and setup it up again. Now it seems to work. Still have no clue why it suddenly stopped working despite no changes in my login credentials

wez commented 6 days ago

It may have just been a weird blip on govee's side. Their service is not very reliable.