wez / govee2mqtt

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

States not Updating for H7143 #134

Open jorgegarciaavila opened 9 months ago

jorgegarciaavila commented 9 months ago

Govee Device SKU

H7143

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

It seems there might be an API issue, but I've noticed a few problems when adjusting settings through the app:

I can manage how things are for now, but I wanted to mention these issues in case they still need to be reported. Please let me know if you need any data or logs to help you further.

Startup Diagnostics

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_LAN_BROADCAST_GLOBAL=true GOVEE_MQTT_HOST=core-mosquitto GOVEE_TEMPERATURE_SCALE=F GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_LAN_BROADCAST_ALL=true GOVEE_MQTT_USER=addons GOVEE_LAN_NO_MULTICAST=false GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-02-11T13:02:11 INFO govee::commands::serve] Starting service. version 2024.01.24-ea3cd430 [2024-02-11T13:02:11 INFO govee::commands::serve] Querying platform API for device list [2024-02-11T13:02:11 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-02-11T13:02:12 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-02-11T13:02:12 INFO govee::commands::serve] Starting LAN discovery [2024-02-11T13:02:12 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-02-11T13:02:12 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-02-11T13:02:22 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-02-11T13:02:22 INFO govee::commands::serve] Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) [2024-02-11T13:02:22 INFO govee::commands::serve] Platform API: devices.types.humidifier. supports_rgb=true supports_brightness=true [2024-02-11T13:02:22 INFO govee::commands::serve] color_temp=None segment_rgb=None [2024-02-11T13:02:22 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-02-11T13:02:22 INFO govee::commands::serve] [2024-02-11T13:02:22 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-02-11T13:02:27 INFO govee::service::hass] Wait 650ms for hass to settle on 13 entity configs [2024-02-11T13:02:27 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted. [2024-02-11T13:05:48 INFO govee::service::hass] powerSwitch for 20416074F46B6F6C: OFF [2024-02-11T13:05:48 INFO govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) power state [2024-02-11T13:05:48 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: OnOff, instance: "powerSwitch", value: Number(0), state: Object {"status": String("success")} } } [2024-02-11T13:05:51 INFO govee::service::hass] powerSwitch for 20416074F46B6F6C: ON [2024-02-11T13:05:51 INFO govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) power state [2024-02-11T13:05:51 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: OnOff, instance: "powerSwitch", value: Number(1), state: Object {"status": String("success")} } } [2024-02-11T13:05:53 INFO govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control [2024-02-11T13:05:53 INFO govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: true, light_on: None, online: None, kelvin: 0, color: DeviceColor { r: 0, g: 0, b: 0 }, brightness: 0, scene: None, source: "AWS IoT API", updated: 2024-02-11T19:05:25.982369420Z }) [2024-02-11T13:05:56 INFO govee::hass_mqtt::humidifier] mqtt_humidifier_set_target: 20416074F46B6F6C: 60 [2024-02-11T13:05:56 INFO govee::service::state] Using Platform API to send Number(60) control to Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) [2024-02-11T13:05:56 INFO govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control [2024-02-11T13:05:56 INFO govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: false, light_on: None, online: None, kelvin: 0, color: DeviceColor { r: 0, g: 0, b: 0 }, brightness: 0, scene: None, source: "AWS IoT API", updated: 2024-02-11T19:05:49.671687845Z }) [2024-02-11T13:05:56 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: Range, instance: "humidity", value: Number(60), state: Object {"status": String("success")} } } [2024-02-11T13:06:00 INFO govee::service::hass] Command for Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143): {"state":"OFF"} [2024-02-11T13:06:00 INFO govee::service::state] Using Platform API to set Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) brightness [2024-02-11T13:06:01 INFO govee::service::state] Polling Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) to get latest state after control [2024-02-11T13:06:01 INFO govee::service::state] requesting update via Platform API Smart Humidifier (20:41:60:74:F4:6B:6F:6C H7143) Some(DeviceState { on: true, light_on: Some(true), online: Some(true), kelvin: 0, color: DeviceColor { r: 255, g: 141, b: 11 }, brightness: 5, scene: None, source: "PLATFORM API", updated: 2024-02-11T19:05:53.799235488Z }) [2024-02-11T13:06:02 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: Range, instance: "brightness", value: Number(1), state: Object {"status": String("success")} } }

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

Nyctobello commented 9 months ago

Same issue here. I tried reloading the add-on in HACS to no avail, and also to restart local control on each Govee device. Same behaviour. I know there is now a Govee "local control" add-on too but that couldn't find any of my lights either.