Hi there,
I’ve setup an accessory in HA with MQTT, for this accessory I’ve added the availability_topic for LWT. So when I disconnect the accessory from the power the LWT sets the device in HA as Unavailable (as it should). But because I’m also using the HomeKit plugin, so I would like HA to also set the Accessory availability in HomeKit.
Is this possible? Do I need to add something to my config to enable it?
My config:
switch:
- platform: mqtt
name: Iron
icon: "mdi:power-plug"
state_topic: "stat/IronSwitch/POWER"
command_topic: "cmnd/IronSwitch/POWER"
availability_topic: "tele/IronSwitch/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: false
homekit:
include_domains:
- switch
entity_config:
switch.Iron:
type: switch