Creating a Sensor

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.

Can anyone help me? Thanks for all the replies!

Is there anything in this thread?

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:

Yep, and it is working great! Done multiple restarts, no issues, and when the inverter goes offline each day, no issues.

Thank you, it works GREAT for me!! :sweat_smile: :joy: :+1:

Sorry, it’s partially working. When I start it up now, the sensor isn’t updated. How do I fix this?

Thanks for your response.