| |
|
|
|
|
|
|
|
|
|
|
|
| |
Added retain flag support to MQTT messages to properly handle device availability in Home Assistant. Both the availability "online" publish and the last will "offline" message now use retain=true, ensuring HA always sees the current device status even when subscribing after the messages were sent.
Changes:
- Added will_retain field to embedded_mqtt::ConnectParams
- Set retain=true for availability publish using publish_with()
- Set will_retain=true in connect params for last will message
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
|