Repository navigation
Home Assistant MQTT auto-discovery. The service now publishes ~30 retained HA discovery JSON messages on every (re)connect, so HA's MQTT integration auto-creates a complete IC-905 SEND device with all entities — sensors (band, freq, sub-VFO band/freq, power, status), binary sensors (TX, split, preamp, atten), 6 relay switches with close/open mapped to ic905/cmd/relay/, 6 per-relay '→ Auto' buttons, 6 per-relay mode sensors, and global 'All → Auto / Manual' buttons. All under one device card with mdi icons and matching sw_version. Adding new fields later (e.g. AGC) is a one-line addition; HA picks them up automatically.
New topic ic905/tx_state (on/off) — plain boolean companion to ic905/tx (which keeps its rich 'ON %' form). Lets HA's binary_sensor consume it cleanly. Additive — no breaking change.
New config knobs in /etc/ic905-relay.conf (both default-on): mqtt_ha_discovery and mqtt_ha_discovery_prefix.
Full HA setup walkthrough + sample Lovelace dashboard YAML in the new home-assistant/ folder of the repo.