I have devices that send their values to HA via the HA REST API. This works so far, but the entities don’t have a graph. So someone on reddit said that the state is saved/interpreted as string.
Is this a general problem/flaw of the REST API? Or am I missing something?
For better or worse, all states are strings in Home Assistant. I have no idea what the reasoning behind this was, but that’s what we have. It rarely causes issues. You can use | float or | int filters to cast the state as a number when needed in templates.
If you want the state to be graphed on an X-Y plot give it a unit_of_measurement in your restful sensor definition.
FYI, sensor attributes can have other types than just string.