Device shows IS ONLINE = false

I think it’s better to use just one topic for this. I’ve created this topic and I’ve posted my workarounds (in progress) there.