Trigger automation with unavaliable device

Hi.

I have a sonoff outside. At the moment a bit sketchy wifi reception. It can become unavailable for a few seconds now and then. If a automation triggers and has that sonoff as the device to turn on. What will happen if it’s unavailable? The message will be qued on the mqtt server, but will home assistant try to send it if the target is marked as ‘unavailable’?

Thank you.

1 Like

I think if the retain flag is sent to the mqtt server, it will relay the correct message when a device requests it.