Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taylorfinnell/hai-homeassistant
https://github.com/taylorfinnell/hai-homeassistant
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/taylorfinnell/hai-homeassistant
- Owner: taylorfinnell
- Created: 2024-02-14T22:21:52.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-18T17:19:33.000Z (10 months ago)
- Last Synced: 2024-10-25T02:04:37.785Z (about 2 months ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hai Smart Shower Head
This custom component for [Home Assistant](https://www.home-assistant.io) is supporting active monitoring of the [Hai](https://gethai.com) [shower head](https://gethai.com/products/hai-showerhead) via BLE.
![preview](https://snaps.screensnapr.io/7d42c764d1e16af2d3475c9f6b9a66)
## PoC
The PoC script is [here](https://gist.github.com/taylorfinnell/87c79939a63ec2cb607ed2ebe28db5ce). It will connect and display information.
## Whats Missing
- Flow sensors
- Technically the whole Hai app can be replaced with home assistant. You can write the LED configurations, water thresholds, etc
## Additional InfoThe integration should work out of the box. In order to discover the Hai device, you should activate it with running water until the integration is fully recognized by the config flow.
It works most of the times.You will see the Average and Current Temperature of the water, the current and total volume of the consumed water (across all showers) and the duration of the shower.
The device is disconnecting by design, so the value of the sensors will be valid during a running shower, after the entities will become unavailable. You should persist the value of the sensors using input_numbers and automation to set the values (excluding unavailable states).
I tested the integration with multiple shower heads and it seems to work fine. You must make sure you pair once with the official app to get the latest firmware. The firmware shipped with the device
has different BLE characteristics that this integration does not support.The integration is very experimental so use it in a test environment and only when you feel confident move it to your prod environment.
## Thanks
Huge thanks to [@adizanni](https://github.com/adizanni/hydrao/tree/main) for his Integration for Hydrao. This is basically a copy and paste with small
updates to handle the encoding of the Hai packets.