I use an sensor entity coming from external website and sometimes I got back the “Not available” value. There is no way to solve this issue with the support of this external service.
So what I’m looking for it’s a way to configure the entity in this way: If “not available” occurs keep the previous value. Any idea? Maybe a template sensor?
This will retain the prior value for a potentially-unlimited amount of time if your source sensor goes down, so it might be worth setting up an automation to alert you if it’s unknown for too long.