How to set status to OFF when device "unavailable"/offlne?

I have a smart outlet… it will be connected to a GFCI plug. If the GFCI trips the smart outlet will lose power. When that happens the device shows as “unavailable” but reports the last known status, which in this case is “On”.

I want to set the status to “Off” is the device is offline or unavailable…

I see no way to do that… I have the Device Health on…
Suggestions?

=Ken