MQTT device, number showing as text

I made a device on an Arduino, and the temperature is sent back just as a text number, no JSON or anything. In Home Assistant, this shows great, except when I click on it for history. Other temperature devices will show a graph, but with my Arduino MQTT device I’m getting a little bar chart type thing with different colors for each temperature sent, so a lot of tiny slices of color, rather than a graph.

Is there a way to make this show up more correctly? Would it help if I sent JSON instead, such as “{ temp: 78.3}”?

Wow. This post is almost two years old, yet I find myself with the same problem.

I’m trying to read the air pressure of my Sleep Number bed, but the history is showing the bar chart with the same tiny slices as the OP mentioned. I’d like to get a line graph displayed, because I’m trying to determine how fast my bed is leaking air.

1 Like