My 2 year old recently transitioned to a bed, that means she sometimes “slides” out of the bed (it’s only 10 inches off the ground). I’m going to use ESPhome with an HX711 and load cells to determine when she is out of her bed. I want the update interval to be a few seconds so we know right away, but I don’t need ESPhome to publish the load every few seconds to HA. Instead, can I have this act like a binary sensor where ESPhome Turns “on” the binary sensor when it detects a set load and “off” when it detects a different load?
This takes a trigger level in from home assistant and sets the binary sensor state if a strain gauge reading is above or below that. You should be able to adapt it:
You can replace the home assistant trigger level with a number if you don’t need to change it often (due to drift of the load cell).
Thanks! I’ll give that a shot.