mp-se / kegmon

DIY scale for beer keg monitoring
MIT License
11 stars 4 forks source link

Now Pouring or Scale Unstable Flag #37

Open wookienow opened 3 weeks ago

wookienow commented 3 weeks ago

I would love to be able to trigger events in Home Assistant when a pour starts vs waiting for the scale to become stable. I love the fact it doesn't consistently send scale readings while it stabilizes but would be good if the was a boolean flag the gets turned on when scales goes outside a range say 25g and then turns off when it goes stable again (basically when the scale weight is sent now)

Ideally this is sent to home assistant when it gets turned on straight away and then again when turned off with the new weight in the same message

Understandably as described in the docs this may not get turned off when multiple pours occur in a row.

Not fussed what it is called. Scale Unstable or Beer Pouring or something else.

My aim for this is to run some LED lights and sounds on my kegerator when pouring and take am image of the person pouring at the time. Won't be perfect due to the double pour but will capture most of the time and lights will still work either way.

Not sure if this helps you or anyone else but thought it may.

mp-se commented 3 weeks ago

Its a good idea but with the HX711 and the load cells I dont think this will be possible. The loadcells are not that accurate and they will fluctuate quite a lot. It takes 8-10 seconds for the scale to detect a possible change in level, so before a new level is established it can take up to 30 seconds or more. Currently I ignore any change less than 100g since that is how much it can fluctuate... You will get spikes that are much higher so in order to detect the level you need to get avearage readings over a long time period..