The type field is not required in the discovery payload JSON. The entity type is determined by the discovery topic itself: - homeassistant/sensor/.../config indicates a sensor - homeassistant/switch/.../config indicates a switch This aligns with the official Home Assistant MQTT discovery documentation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>