I have configured my device to match the needs of HA for autodiscovery. Seems to work so far. I can see the sensors and even in Grafana I can use them.
Just, my sensors I configured as "device_class" : "None" I do not see them in HA. Monitoring the MQTT topics all seems to be fine.
Configuration topic:
I found the related docs about device classes but it just states: “Generic sensor. This is the default and doesn’t need to be set.” Does this mean I am not allowed to set the value?
What other reason can exist for devices not to appear in HA? How can I troubleshoot?
If there is no device class then you don’t need to specify it. "None" is not a valid device class, so you’re setting it to an invalid type. None is valid, however specifying that in json would be null. Either way, you’re going to run into problems with that if you don’t know what you’re doing in regards to json. So it’s best to just not set it.
It is a valid type, but you added quotes around it making it a string. It does not contain quotes in the docs
Also, keep in mind that the documents are in regards to python & home assistant. Where JSON will be null. So if you’re creating this from your device in it’s UI, you have to follow JSON rules (Or whatever rules are imposed by that UI).