Hi
I have an Oras digital shower head, which can give some information about the consumption of water and energy - but I have some challenges on figuring out how to create the sensors and build some of the logic…
Data is fetched upon a BLE connect and a service/characteristic notification…
The notification comes several times per second when water is flowing through the showerhead…
I can get data like:
[20:37:07][D][sensor:127]: 'dsh_lastBathTemp': Sending state 31.00000 C with 1 decimals of accuracy
[20:37:51][D][sensor:127]: 'dsh_totShowers': Sending state 45.00000 # with 1 decimals of accuracy
[20:37:54][D][sensor:127]: 'dsh_lastBathkWh': Sending state 2.29000 kWh with 1 decimals of accuracy
[20:37:56][D][sensor:127]: 'dsh_lastBathLiter': Sending state 58.00000 L with 1 decimals of accuracy
Where some values are updated multiple times per second… Very handy, if you want to create a graph per shower,
I am more interested in just getting the last data - meaning the last numbers recorded …
The catch is, that the BLE connection can be disconnected if water stops flowing through the shower head (if you stop the water to apply soap/shampoo), and then starts the shower again (typically within 2 minutes).
Also, it will be nice to have statistics about the length/duration of the shower (approx time), which I cannot grab via BLE (I have not found the information yet) - so it will be something about staging/comparing timestamps…
Any hints on to solve this ?
Let me know if the yaml file for the ESP32 device is needed …
Regards
Brian