wez / govee2mqtt

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

[New Device] H7180 - GoveeLife Smart Rice Cooker Pro #173

Open tmeuze opened 5 months ago

tmeuze commented 5 months ago

Govee Device SKU

H7180

Govee2MQTT Version

2024.01.24-ea3cd430

Describe the issue

Hello, I would like to see if it's possible to add support for the GoveeLife Smart Rice Cooker Pro. I am not sure of the contribution guidelines - so if you could advise me on how to capture debug logs for device, I am happy to provide.

Thank you for the awesome work!

Startup Diagnostics

GOVEE_API_KEY=REDACTED
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_MQTT_PORT=1883
++ cd /app
++ exec /app/govee serve
[2024-04-17T12:25:37 INFO  govee::commands::serve] Starting service. version 2024.01.24-ea3cd430
[2024-04-17T12:25:37 INFO  govee::commands::serve] Querying platform API for device list
[2024-04-17T12:25:37 INFO  govee::commands::serve] Querying undocumented API for device + room list
[2024-04-17T12:25:38 INFO  govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted.
[2024-04-17T12:25:38 INFO  govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted.
[2024-04-17T12:25:38 INFO  govee::commands::serve] Starting LAN discovery
[2024-04-17T12:25:38 INFO  govee::commands::serve] Waiting 10 seconds for LAN API discovery
[2024-04-17T12:25:48 INFO  govee::commands::serve] Devices returned from Govee's APIs
[2024-04-17T12:25:48 INFO  govee::commands::serve] H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180)
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-04-17T12:25:48 WARN  govee::commands::serve]   Unknown device type. Cannot map to Home Assistant.
[2024-04-17T12:25:48 INFO  govee::commands::serve] 
[2024-04-17T12:25:48 INFO  govee::commands::serve] Floor Lamp (F1:4E:CC:34:38:39:42:95 H6072)
[2024-04-17T12:25:48 INFO  govee::commands::serve]   LAN API: ip=10.0.50.125
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Platform API: devices.types.light. supports_rgb=true supports_brightness=true
[2024-04-17T12:25:48 INFO  govee::commands::serve]                 color_temp=Some((2000, 9000)) segment_rgb=Some(0..8)
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Quirk { sku: "H6072", icon: "mdi:floor-lamp", 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-04-17T12:25:48 INFO  govee::commands::serve] 
[2024-04-17T12:25:48 INFO  govee::commands::serve] Smart Kettle (16:EB:60:74:F4:86:09:5A H7173)
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Platform API: devices.types.kettle. supports_rgb=false supports_brightness=false
[2024-04-17T12:25:48 INFO  govee::commands::serve]                 color_temp=None segment_rgb=None
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Undoc: room=None supports_iot=true ble_only=false
[2024-04-17T12:25:48 INFO  govee::commands::serve]   Quirk { sku: "H7173", icon: "mdi:kettle", supports_rgb: false, supports_brightness: false, color_temp_range: None, avoid_platform_api: false, ble_only: false, lan_api_capable: false, device_type: Kettle, platform_temperature_sensor_units: Some(Farenheit), platform_humidity_sensor_units: None, iot_api_supported: false, show_as_preset_buttons: Some(["Tea", "Coffee", "DIY"]) }
[2024-04-17T12:25:48 INFO  govee::commands::serve] 
[2024-04-17T12:25:49 INFO  govee::service::http] http server addr is 0.0.0.0:8056
[2024-04-17T12:25:54 INFO  govee::service::hass] Wait 1.4s for hass to settle on 28 entity configs
[2024-04-17T12:25:56 INFO  govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.
[2024-04-17T12:26:08 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:26:08 INFO  govee::service::state] requesting update via Platform API Smart Kettle (16:EB:60:74:F4:86:09:5A H7173) None
[2024-04-17T12:27:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:28:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:29:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:30:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:31:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None
[2024-04-17T12:32:09 INFO  govee::service::state] requesting update via Platform API H7180_2B2E (14:F8:60:74:F4:76:2B:2E H7180) None

Additional Logs

H7180_2B2E Status (sensor.h7180_2b2e_status)

MQTT discovery data:

Topic: homeassistant/sensor/sensor-14F86074F4762B2E-gv2mqtt-status/config

availability_topic: gv2mqtt/availability
name: Status
origin:
  name: gv2mqtt
  sw_version: 2024.01.24-ea3cd430
  support_url: https://github.com/wez/govee2mqtt
device:
  name: H7180_2B2E
  manufacturer: Govee
  model: H7180
  via_device: gv2mqtt
  identifiers:
    - gv2mqtt-14F86074F4762B2E
unique_id: sensor-14F86074F4762B2E-gv2mqtt-status
entity_category: diagnostic
state_topic: gv2mqtt/sensor/sensor-14F86074F4762B2E-gv2mqtt-status/state
json_attributes_topic: gv2mqtt/sensor/sensor-14F86074F4762B2E-gv2mqtt-status/attributes
platform: mqtt

H7180_2B2E Request Platform API State (button.h7180_2b2e_request_platform_api_state)

MQTT discovery data:

Topic: homeassistant/button/gv2mqtt-14F86074F4762B2E-request-platform-data/config

availability_topic: gv2mqtt/availability
name: Request Platform API State
origin:
  name: gv2mqtt
  sw_version: 2024.01.24-ea3cd430
  support_url: https://github.com/wez/govee2mqtt
device:
  name: H7180_2B2E
  manufacturer: Govee
  model: H7180
  via_device: gv2mqtt
  identifiers:
    - gv2mqtt-14F86074F4762B2E
unique_id: gv2mqtt-14F86074F4762B2E-request-platform-data
entity_category: diagnostic
command_topic: gv2mqtt/14F86074F4762B2E/request-platform-data
platform: mqtt

Home Assistant Logs

...
2024-04-17 12:25:54.942 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: sensor sensor-14F86074F4762B2E-gv2mqtt-status from external application gv2mqtt, version: 2024.01.24-ea3cd430, support URL: https://github.com/wez/govee2mqtt
2024-04-17 12:25:54.982 INFO (MainThread) [homeassistant.components.mqtt.discovery] Found new component: button gv2mqtt-14F86074F4762B2E-request-platform-data from external application gv2mqtt, version: 2024.01.24-ea3cd430, support URL: https://github.com/wez/govee2mqtt
...

Anything else?

CleanShot 2024-04-17 at 12 38 26