Solar battery percentage sensor sometimes gets "non-numeric", how to show latest numeric value recorded?

Search the forum for a template that will just not report if it’s unavailable. This is a commonly asked question.
Tips on Searching for Answers & Duplicate Topics in the Forum.