I have a TP-Link mesh network at home. It allows me to see who’s in which room. Apparently, there are frequent outages, and the devices in that room become unavailable. So, I’d like a sensor that only adjusts when the device is available. I’ve been trying this for days now, but I can’t figure it out.
Another example of a sensor that hides unavailability by keeping the last known value came up here very recently. The same pattern using a trigger based template sensor can be used for all kinds of sensors: