markvader / sonic

Sonic water shutoff valve Home Assistant integration by @markvader
MIT License
14 stars 3 forks source link

Water Consumption Panel in HA 2022.11 #16

Open LukaszP2 opened 2 years ago

LukaszP2 commented 2 years ago

Hi,

In HA 2022.11 will be Water Consumption Panel. I got beta but no sensor fo it. Can you add it? https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics

markvader commented 2 years ago

Unfortunately it's not possible currently. The main API that the integration calls doesn't have volume usage information returned (only the Sonic app gets that info currently). I have made the request to Hero Labs to add it to their public API. If and when this happens I will make the code change to allow it to be used by the energy dashboard

I have restarted work on a new version of the integration that communicates directly with the local signal/sonic device. This integration should be able to calculate usage accurately as it will receive data every second when the valve is in use.

LukaszP2 commented 2 years ago

Great news! If you want some beta test to do just let me know.

Ulrar commented 2 years ago

Sorry if it's a bit unrelated to the question at hand but since you mention it, is there a separate repo for that local integration or is it too far from ready ? I'm in the market for a smart valve myself and I'd be tempted to go Sonic if the local API works, or at least if it looks like it'll work in the future.

LukaszP2 commented 1 year ago

how it going? HL add volume usage information?

mcaddy commented 1 year ago

Keen to help where I can to get consumption data into HA. DM if you need anything.

DJBenson commented 1 year ago

I urge anybody wanting local API control of this device to email Hero. This is an expensive device and without local API I cannot use it despite the product itself being perfect for my situation. If/when they introduce local API I'm in, and maybe the more people that tell them the more chance there is of them adding it.

rangerek commented 1 year ago

Would it be possible to have a characteristics that doesnt say liter PER minute but just L As per HA documentation that is possible to use Riemmans Integral sum to have cumulative usage but it cannot use l/min

rangerek commented 1 year ago

https://www.home-assistant.io/docs/energy/water/

nivek1612 commented 9 months ago

@markvader is this still being developed? seems a while since any updates