wez / govee2mqtt

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

H70C5 Some effects do not work / appear correctly when selected from effects drop down in Home Assistant #312

Open bagobones opened 4 days ago

bagobones commented 4 days ago

Govee Device SKU

H70C5

Govee2MQTT Version

2024.07.21-c9d27764

Describe the issue

Just setup the lights and most things are working GREAT!..

However I have noticed that some effects when selected in the Home Assistant Effects drop down don't work.. Like Candy Cane will work but Candy Cane B will not.. This happens on a few different effects but not all.

Example of logs given with Candy Cane B which appears all blue instead of the red and white twirl if selected in the govee app

Startup Diagnostics

[2024-11-25T20:45:12 INFO govee::commands::serve] Starting service. version 2024.07.21-c9d27764

[2024-11-25T20:45:12 INFO govee::commands::serve] Querying platform API for device list

[2024-11-25T20:45:13 INFO govee::commands::serve] Querying undocumented API for device + room list

[2024-11-25T20:45:14 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.

[2024-11-25T20:45:14 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.

[2024-11-25T20:45:14 INFO govee::commands::serve] Starting LAN discovery

[2024-11-25T20:45:14 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery

[2024-11-25T20:45:24 INFO govee::commands::serve] Devices returned from Govee's APIs

[2024-11-25T20:45:24 INFO govee::commands::serve] Christmas Tree (2B:42:C6:75:66:0E:B3:3E H70C5)

[2024-11-25T20:45:24 INFO govee::commands::serve] LAN API: ip=192.168.1.132

[2024-11-25T20:45:24 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true

[2024-11-25T20:45:24 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=Some(0..10)

[2024-11-25T20:45:24 INFO govee::commands::serve] Undoc: room=Some("Living Room") supports_iot=true ble_only=false

[2024-11-25T20:45:24 INFO govee::commands::serve] Quirk { sku: "H70C5", icon: "mdi:light-bulb", supports_rgb: true, supports_brightness: true, color_temp_range: Some((2000, 9000)), avoid_platform_api: false, ble_only: false, lan_api_capable: true, device_type: Light, platform_temperature_sensor_units: None, platform_humidity_sensor_units: None, iot_api_supported: true, show_as_preset_buttons: None }

[2024-11-25T20:45:24 INFO govee::commands::serve]

[2024-11-25T20:45:24 INFO govee::service::http] http server addr is 0.0.0.0:8056

[2024-11-25T20:45:46 INFO govee::service::hass] Wait 180ms for hass to settle on 18 entity configs

[2024-11-25T20:45:46 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

[2024-11-25T20:47:34 INFO govee::service::hass] Command for Christmas Tree (2B:42:C6:75:66:0E:B3:3E H70C5): {"state":"ON","effect":"Candy Cane"}

[2024-11-25T20:47:34 INFO govee::service::state] Using Platform API to set Christmas Tree (2B:42:C6:75:66:0E:B3:3E H70C5) to scene Candy Cane

[2024-11-25T20:47:35 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: DynamicScene, instance: "lightScene", value: Object {"id": Number(14105), "paramId": Number(22752)}, state: Object {"status": String("success")} } }

[2024-11-25T20:47:42 INFO govee::service::hass] Command for Christmas Tree (2B:42:C6:75:66:0E:B3:3E H70C5): {"state":"ON","effect":"Candy Cane B"}

[2024-11-25T20:47:42 INFO govee::service::state] Using Platform API to set Christmas Tree (2B:42:C6:75:66:0E:B3:3E H70C5) to scene Candy Cane B

[2024-11-25T20:47:43 INFO govee::platform_api] control_device result: ControlDeviceResponse { request_id: "uuid", code: 200, message: "success", capability: ControlDeviceResponseCapability { kind: DynamicScene, instance: "lightScene", value: Object {"id": Number(13994), "paramId": Number(22641)}, state: Object {"status": String("success")} } }

Home Assistant Logs

No response

Anything else?

No response

miketunes commented 4 days ago

I'm having a similar issue, I think a workaround would be using tap-to-run or snapshots instead. However neither of those are showing in HA for me - opening a new issue for that.

thibaud-sanchez commented 1 day ago

For tap to run that won't appear Try removing all existing tap to run and add a new simple one, it solves the issue on my side

thibaud-sanchez commented 1 day ago

@bagobones I have a H70C5 too but can't see any effects.. Is there something you've done to have effects ?

bagobones commented 22 hours ago

@bagobones I have a H70C5 too but can't see any effects.. Is there something you've done to have effects ?

Other than read the documentation and set it up no?

  1. The LAN protocol only works in the same network, and if you have enabled it on the device.. If you have VLANS you might have to jump through some hoops like have UDP forwarding (not getting into that), or have the govee2mqtt server it self running in the same VLAN as the lights.
  2. I have my govee credentials set so it can query their services.

that is about it.

thibaud-sanchez commented 11 hours ago

I finally found effects ! They are not visible on the mqtt dashboard but only when you click on the entity... I have the same issue , all effects linked to shape mapping are not working :( Most of them are named with a B

bagobones commented 11 hours ago

I finally found effects ! They are not visible on the mqtt dashboard but only when you click on the entity... I have the same issue , all effects linked to shape mapping are not working :( Most of them are named with a B

Is that what the B indicates? That explains a lot.