I have a digital hand shower, from which I via a BLE proxy can intercept information about water usage.
I have created an automation, that is triggered if the consumption goes above 40L.
Unfortunately, it seems like the shower does not always start a 0 when started again (the device is powered by water flow, so it is not always available).
Can I add some sort of condition, that will check if an entity from the shower has been in a non-unavailable state for at least e.g. 30 seconds ?
Here it goes from unavailable to 54.29 - then down to 0 and starts counting up.
But it is not always, that it starts on the “old” value…
So what I want to achieve is to make sure, that I don’t get these “false positives”…
For HA, you can add the HACS integration “Amphiro Digital Hand Shower”
The Oras/Amphiro are more or less the same - just differentiated by a small bit in the BLE announcement packages - but as far as I remember, the Amphiro integration supports both.
And then of course an ESPHome BLE proxy to intercept the BLE announcements from the shower head (when it is active)
I did the one on GitHub (oras-shower) - but have not done more work to it, as the plugin in HACS doesn’t require a device specifically programmed towards the shower… That was before I was pointed towards the other plugin.
I also added a unit of measurement so that it will plot as a graph instead of states. And I changed the name so that it will result in the entity id you are wanting. The “sensor” domain will be added to the entity id no matter what you name it.
I can confirm the Hansa Activejet Bluetooth (aka Hasactivejet) is compatible and recognized, as a working well using an ESP bluetooth proxy.
I did notice the water usage and time are registered as state class total by the integration, while they reset to 0 for each new cycle. So they should be state class total_increasing and I used customize.yaml to change it. That will allow to put a utility meter on it to sum total usage.