MQTT AddOn: Birth and Will status

Hi,

Would be nice to have the option to enable:

        topic: "hass/status"
        payload: "online"

        topic: "hass/status"
        payload: "offline"

The Birth and Will status.
The Birth status work when you modify core.config-entities but the will is a problem.
A automation will not work always, because HA is offline earlier then MQTT can receive the publish

to add on to what @poudenes is requesting:

Add an option to the home assistant MQTT client (not the addon-service nor deprecated service integration) that allows the client to send the will message before closing the connection. This would handle most situations where people expect the will message to be sent.

thanks for the info. Im not that good in explanations in english …