wez / govee2mqtt

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

H5054 bluetooth water sensors #61

Open apU823 opened 6 months ago

apU823 commented 6 months ago

Govee Device SKU

H5054

Govee2MQTT Version

2024.01.12-ff6087e2

Describe the issue

I have three water Govee water sensors connected with a gateway. Gateway model is H5040_E0E8

It appears based on the logs, the service is identifying them but its not getting added to HA due to "Unknown device type."

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_MQTT_HOST=core-mosquitto GOVEE_EMAIL=REDACTED GOVEE_PASSWORD=REDACTED GOVEE_MQTT_PASSWORD=REDACTED GOVEE_MQTT_USER=addons GOVEE_LAN_NO_MULTICAST=false GOVEE_MQTT_PORT=1883 ++ cd /app ++ exec /app/govee serve [2024-01-12T23:23:56 INFO govee::commands::serve] Starting service. version 2024.01.12-ff6087e2 [2024-01-12T23:23:56 INFO govee::commands::serve] Querying platform API for device list [2024-01-12T23:23:57 INFO govee::commands::serve] Querying undocumented API for device + room list [2024-01-12T23:23:57 INFO govee::service::iot] Connected to IoT: CONNACK code 0: Connection Accepted. [2024-01-12T23:23:57 INFO govee::service::iot] IoT (re)connected with status CONNACK code 0: Connection Accepted. [2024-01-12T23:23:57 INFO govee::commands::serve] Devices returned from Govee's APIs [2024-01-12T23:23:57 INFO govee::commands::serve] H5054_9569 (0A3A8DD7E0E8009569 H5054) [2024-01-12T23:23:57 INFO govee::commands::serve] Undoc: room=Some("Basement") supports_iot=false ble_only=true [2024-01-12T23:23:57 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant. [2024-01-12T23:23:57 INFO govee::commands::serve] [2024-01-12T23:23:57 INFO govee::commands::serve] H5054_93CB (0A3A8DD7E0E80093CB H5054) [2024-01-12T23:23:57 INFO govee::commands::serve] Undoc: room=Some("bathroom down") supports_iot=false ble_only=true [2024-01-12T23:23:57 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant. [2024-01-12T23:23:57 INFO govee::commands::serve] [2024-01-12T23:23:57 INFO govee::commands::serve] H5054_0186 (0A3A8DD7E0E8000186 H5054) [2024-01-12T23:23:57 INFO govee::commands::serve] Undoc: room=Some("Basement") supports_iot=false ble_only=true [2024-01-12T23:23:57 WARN govee::commands::serve] Unknown device type. Cannot map to Home Assistant. [2024-01-12T23:23:57 INFO govee::commands::serve] [2024-01-12T23:23:57 INFO govee::service::http] http server addr is 0.0.0.0:8056 [2024-01-12T23:24:02 INFO govee::service::hass] Wait 100ms for hass to settle on 2 entity configs [2024-01-12T23:24:02 INFO govee::service::hass] MQTT connected with status=CONNACK code 0: Connection Accepted.

Additional Logs

No response

Home Assistant Logs

No response

Anything else?

No response

wez commented 6 months ago

Those particular devices operate only via BLE, and there is no BLE support in Govee2MQTT at this time. In the meantime, you might find that the built-in home assistant improve-ble is able to automatically detect and do something useful with those devices.

apU823 commented 6 months ago

hmmm I was hopeful it would pull in via the API (as it does on Homebridge for me)

wez commented 6 months ago

This device doesn't show up in the Govee Platform API, which is why it shows as unknown.

apU823 commented 6 months ago

Not that I would be technically capable of answering, how might it work with homrbridge (as I read govee2mqtt leverages the homebridge govee plugin)

connecting via Bluetooth to the Apple TV on homebridge?

wez commented 6 months ago

Perhaps you have enabled bluetooth in homebridge and it is using that?

apU823 commented 6 months ago

Interesting. homebridge is running via docker on a laptop that has Bluetooth but currently running HA OS on a VM on Mac Mini M2 (couldn’t wait for my raspberry pi 4 4gb to arrive. Will eventually migrate to dedicated pi once it arrives)