MQTT - Last Will and Testament

Addition of support for Last will and Testament for MQTT.

As a reference for anyone that like me will find this message looking for Last Will support: it is available in MQTT components configuring:

  • availability_topic The MQTT topic subscribed to receive availability (online/offline) updates.
  • payload_available The payload that represents the available state.
  • payload_not_available The payload that represents the unavailable state.

Pay attention that MQTT is case sensitive: “online” (HA default) will not match “Online” (Tasmota default)