wez / govee2mqtt

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

Manual MQTT Config For A Light #177

Closed AlexKusnezov closed 2 months ago

AlexKusnezov commented 2 months ago

Govee Device SKU

H60058

Govee2MQTT Version

2024.02.05-4c4fa0db

Describe the issue

Hey Guys, I don't have auto-discovery on in the MQTT integration. Does somebody have a manual configuration of a light, would you please share it with me?

Startup Diagnostics

[2024-04-25T08:49:55 INFO govee::commands::serve] Starting service. version 2024.02.05-4c4fa0db [2024-04-25T08:49:55 INFO govee::commands::serve] Querying platform API for device list [2024-04-25T08:49:56 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-04-25T08:49:58 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-04-25T08:49:58 INFO govee::commands::serve] Starting LAN discovery [2024-04-25T08:49:58 INFO govee::commands::serve] Waiting 10 seconds for LAN API discovery [2024-04-25T08:49:58 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-04-25T08:50:08 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-04-25T08:50:08 INFO govee::commands::serve] Janaleuchte (redacted H6058) [2024-04-25T08:50:08 INFO govee::commands::serve] Platform API: devices.types.light. supports_rgb=true supports_brightness=true [2024-04-25T08:50:08 INFO govee::commands::serve] color_temp=Some((2000, 9000)) segment_rgb=None [2024-04-25T08:50:08 INFO govee::commands::serve] Undoc: room=None supports_iot=true ble_only=false [2024-04-25T08:50:08 INFO govee::commands::serve] [2024-04-25T08:50:08 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-04-25T08:50:16 INFO govee::service::hass] Wait 300ms for hass to settle on 6 entity configs [2024-04-25T08:50:17 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted. [2024-04-25T08:50:28 INFO govee::service::state] requesting update via Platform API Janaleuchte (redacted H6058) None

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

wez commented 2 months ago

If you manually subscribe to the auto-discovery topics, you can try to reverse engineer it, but as we make more changes like 98282e2a1a66b4abfbd8249ef10587de2dc258f5 you will be fighting a losing battle.

I don't and won't support manual registration; I think the effort is too high and it has zero benefit for me personally to put that effort in.

AlexKusnezov commented 2 months ago

If you manually subscribe to the auto-discovery topics, you can try to reverse engineer it, but as we make more changes like 98282e2 you will be fighting a losing battle.

I don't and won't support manual registration; I think the effort is too high and it has zero benefit for me personally to put that effort in.

thanks, since I have only one govee product, which is the light I mentioned above, I think it's pretty manageable. I only managed to get it to work just as normal rgb light example

- schema: json
  name: "Janaleuchte MQTT"
  unique_id: janaleuchte_mqtt
  command_topic: "gv2mqtt/light/300ACB3130305E8C/command"
  state_topic: "gv2mqtt/light/300ACB3130305E8C/state"
  qos: 0
  supported_color_modes: ["color_temp", "rgb"]
  brightness: true
  brightness_scale: 100