MQTT Quality of Service for default state topic

I know it is possible to set the Quality of Service (QoS) if the device publishes a message. But can ESPHome also set QoS for the default state topic? It’s set to 0, but I’d like it to be 1 or 2.

I guess you mean that you can’t? Or am I missing something in the docs?

QOS is mentioned 7 times on that page.

Yes, but only in relation to publishing custom mqtt messages. If you enable the mqtt component in ESPHome, states are reported by default as well. But it seems you can’t set QOS for those reports.

I see what you want - no I am not sure that you can.

I’ve opened a feature request here: Set QoS for MQTT default state topic · Issue #1355 · esphome/feature-requests · GitHub.

1 Like