I’ve installed Mosquito (hass.io, 0.90.2), I’m trying to set up an MQTT sensor which I will publish to using my own attributes, in this case for testing purposes the only attribute is x (if this works i’d like multiple, though unsure of how the syntax for value_template for multiple attributes)
holy crap that actually worked… I wasted hours on that crap haha…
but doesnt that mean my value is a string now and not an integer? not ideal but I can probably live with that.
I tried updating that attribute a few times, hass does not seem to keep the history of these values, is that a limitation of the mqtt sensor? the history is critical for me, if not I will need to find another way then
The original issue was you weren’t using plain double-quotes (") but fancy double-quotes (“). JSON requires plain double, or single, quotes for delimiting strings.
It records a history of an entity’s states, not attributes.