In your first post when you used the word “sensor”, did you actually mean a sensor in HA or did you mean some random device? I had assumed you meant an HA sensor. But now you wrote this:
Obviously this is a device, not an HA sensor. HA has no control over how often some random device in your house transmits updates btw. If you have a problem with how frequently it updates you should take it up with the device manufacturer, the software its running or get a new device. No amount of machine learning in HA can affect this.
So either this is an entirely unrelated issue or you were actually talking about an issue you have with some device in your house in the first post as well. In that case please share the details of the device. But also feature requests for a piece of hardware should probably be submitted to the device’s manufacturer.
Side note, if you are looking for suggestions on how to make a battery operated bed presence detector, try this one:
Or if you don’t have slats and your bed has a firm bottom then this one may work:
Although beds are a lot thicker then chairs so YMMV. I think some folks tried it in that thread though.