wez / govee2mqtt

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

How to add support for new H60A1 ceiling light #184

Open iranogajec opened 1 month ago

iranogajec commented 1 month ago

Govee Device SKU

H60A1

Govee2MQTT Version

latest

Describe the issue

Govee has released a new ceiling light, how to add support for controling the lights, scenes etc..

https://eu.govee.com/collections/ceiling-light/products/govee-rgbww-rgbic-smart-ceiling-light

I have it already, if I can help to contribute with data and logs please guide me for the next steps.

Thanks, Ilija

Startup Diagnostics

[2024-05-03T16:17:28 INFO govee::service::state] requesting update via Platform API H60A1_9F1C (-MAC removed- H60A1) Some(DeviceState { on: true, light_on: Some(true), online: None, kelvin: 5000, color: DeviceColor { r: 255, g: 76, b: 240 }, brightness: 1, scene: None, source: "AWS IoT API", updated: 2024-05-03T13:39:11.272666674Z }) [2024-05-03T16:18:28 INFO govee::service::state] requesting update via Platform API H60A1_9F1C (-MAC removed- H60A1) Some(DeviceState { on: true, light_on: Some(true), online: None, kelvin: 5000, color: DeviceColor { r: 255, g: 76, b: 240 }, brightness: 1, scene: None, source: "AWS IoT API", updated: 2024-05-03T13:39:11.272666674Z })

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

Timsto commented 1 month ago

+1

Timsto commented 1 month ago

realy weired. after some reinstall of govee2mqtt now the H601A appears with full light control

ThomasHammant commented 1 month ago

I have added one of these lights today couple of things. A. I think the product is H60A1 not H601A - the link you shared even references this. Not sure if this is just a typo or a different device/change. B. I can see the device in govee2mqtt but only with on/off light control rather than full light control.

Are there known issues with this device?

Again happy to provide logs etc. if required.

iranogajec commented 1 month ago

Yep, I fat fingered the model, corrected now!

rossserven commented 1 month ago

realy weired. after some reinstall of govee2mqtt now the H601A appears with full light control

+1, I reinstalled twice and it looks to be working. thanks for the suggestion!

ThomasHammant commented 1 month ago

realy weired. after some reinstall of govee2mqtt now the H601A appears with full light control

+1, I reinstalled twice and it looks to be working. thanks for the suggestion!

I've tried a reinstall 3 times, including deleting govee2mqtt and the light from the MQTT device list after uninstall. I can get the device to be recognised, and control on and off and single colour, but I don't get full light control including segments that I get with other govee devices. Can you please show me what it appears like in your MQTT device list? Mine is like this: image

Any help on the reinstall process you followed to get it working would be good to, are you including both your govee login and api details for example?

Cheers

rossserven commented 1 month ago

Any help on the reinstall process you followed to get it working would be good to, are you including both your govee login and api details for example?

I'm seeing the same, switch and single color control, not segments, so there's still work needed to get a complete integration.

brentw1584 commented 1 month ago

I'm also having an issue with the H60A1 devices. I have tried reinstalling govee2mqtt a few times, reloading the integration a bunch of time, and make sure no other integrations were competing. I'm not able to control the light, effects, and color etc. Also getting bad request, "device does not belong to you".

I can control both lights in my app over Bluetooth or Wi-Fi but not in HA. Also if I try not to use the cloud version of the product in Home Assistant,, both devices won't even show Govee2mqtt version: 2024.04.29-30cf7732

Qty: 2 - Hh60A1

Log:

[2024-05-24T03:03:27 INFO govee::service::state] requesting update via Platform API Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002) None [2024-05-24T03:03:27 ERROR govee::commands::serve] while polling Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002): get_device_state: request https://openapi.api.govee.com/router/api/v1/device/state status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/state response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/state failed with code 400 Bad Request devices not belong you. Full response: {"requestId":"uuid","msg":"devices not belong you","code":400,"payload":{"sku":"H7002","device":"5C:A9:A4:C1:38:8C:7C:5F"}} [2024-05-24T03:04:27 INFO govee::service::state] requesting update via Platform API H60A1_5EBE (17:D3:D0:C9:07:07:5E:BE H60A1) None [2024-05-24T03:04:27 INFO govee::service::state] requesting update via Platform API Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002) None [2024-05-24T03:04:27 ERROR govee::commands::serve] while polling Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002): get_device_state: request https://openapi.api.govee.com/router/api/v1/device/state status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/state response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/state failed with code 400 Bad Request devices not belong you. Full response: {"requestId":"uuid","msg":"devices not belong you","code":400,"payload":{"sku":"H7002","device":"5C:A9:A4:C1:38:8C:7C:5F"}} [2024-05-24T03:05:27 INFO govee::service::state] requesting update via Platform API H60A1_5EBE (17:D3:D0:C9:07:07:5E:BE H60A1) None [2024-05-24T03:05:27 INFO govee::service::state] requesting update via Platform API Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002) None [2024-05-24T03:05:27 ERROR govee::commands::serve] while polling Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002): get_device_state: request https://openapi.api.govee.com/router/api/v1/device/state status 200: OK: parsing https://openapi.api.govee.com/router/api/v1/device/state response: Failed with status 400 Bad Request Bad Request: Request to https://openapi.api.govee.com/router/api/v1/device/state failed with code 400 Bad Request devices not belong you. Full response: {"requestId":"uuid","msg":"devices not belong you","code":400,"payload":{"sku":"H7002","device":"5C:A9:A4:C1:38:8C:7C:5F"}} [2024-05-24T03:06:27 INFO govee::service::state] requesting update via Platform API Patio String Lights (5C:A9:A4:C1:38:8C:7C:5F H7002) None