@gald33 wrote:
Hi everyone, I want to hack a scale and use esp8266 and hx711 to automatically pass measurements to home assistant, where I would display it as a sensor.
I know esphome has a HX711 component but I don’t want to update home assistant every time interval. Instead, I want to make sure that a few conditions are met before updating:
- The wight was close to zero in the previous measurement.
- The weight is above some minimum value.
- The weight is somewhat stable: I want to take measurements every 100-250ms and filter out a result if it is too far from the last 2-5 measurements. This is to make sure the object is stabilized.
Are there a built-in methods that achieve something similar, so I can use the hx711 component, or do I need to write the code myself?
Also, if the answer is to use lambdas, then how can I access past results, and how to publish manually to home assistant?
Bonus question, this should run on battaries, so if you think incorporating a switch or use some other technique saves energy, I’d like to know.Thanks in advance
Posts: 1
Participants: 1