Entity via longelived token not available at restart, set default state at HA start?

Hi

I have some entities sources by an external PI, via a long-lived token. When I restart HA they are not availeble which is true. How can I create this sensors with a default state after a restart?

Sensor X : default state “not used yet”

Many thanks