I have a custom component that I have been working on. I’m able to pull in many different attributes, and they properly display in the HA frontend gui when I click on the sensor. However, the “main” attribute/state for the sensor shows unknown, and it also shows a bar chart of recent history where it shows “unknown”.
How can I specify a certain attribute of the sensor to be the main state of the sensor?