dawidchyrzynski / arduino-home-assistant

ArduinoHA allows to integrate an Arduino/ESP based device with Home Assistant using MQTT.
https://dawidchyrzynski.github.io/arduino-home-assistant/
GNU Affero General Public License v3.0
463 stars 112 forks source link

Adding option to add entity category to certain sensors #238

Open pkscout opened 4 months ago

pkscout commented 4 months ago

This adds another option to certain sensors called setEntityCategory. There is no checking on the char values, as Home Assistant will just ignore them if you set them to anything other than config or diagnostic. I ended up only doing a handful of sensors because most of the rest of the sensors don't make any sense as configs or diagnostics. So this option only exists for the following sensors:

Here's what it looks like in HA when you setup some diagnostic sensors:

Screenshot 2024-03-02 at 7 09 11 AM