MQTT Sensor stubbornly remaining at manually 'set state' even after incoming messages

Do I remember Home Assistant has some bizarre quirk in this regard that if you manually set the state of an MQTT sensor, it gets ‘stuck’ there? Incoming messages on the correct topic are not replacing the manually set state no matter if I choose retain true or false.

(I seem to recall a similar quirk to do with doing a reload of manually configured MQTT entities from the YAML configuration reloading menu)

Never seen that behavior

1 Like

What do you mean by manually setting the state?

have tested this, and if I manually ‘set state’ @Spiro this is what I mean by set state (screenshot above) then until I use the built in MQTT “publish a packet”, the sensor ignores MQTT messages from the script it is set to ingest from. Once the internal “publish a packet” has been used, then the sensor then again ingests and changes state from normal MQTT messages. Super odd behaviour but I do remember reading somewhere about this, perhaps on this forum, but I can’t now find it again.