Why the heck is it not possible to select is history should be bar or line graph

When adding entities through MQTT or that I create with AppDaemon it seems like random chance if the associated graph will be a bar chart or proper trend if I send it a number. Surely there should be a way to set this in customisation or something?

There is. If you want a line graph the entity must have a unit of measurement.

This is a bit opaque and I’ve had to search to find it multiple times.
What if I want a line graph without a unit of measurement? E.g. I have a Python script that gets a light brightness from an LDR connected to my Pi. I wrote it myself and roughly configured it so 100 is bright and 0 is dark… but there’s no proper unit of measurement.
In order to get a line graph, I have to say this is “lux” or something… but it’s not.
I’d rather a customisation.

I have used these units to overcome that situation in the past:

"int"

" "

You mean, like… anything? As long as it has a value?
(Again, still seems opaque, but at least its nonsensical vs disinformation/misleading.)

Yes, anything at all.

2 Likes