So I have integrated cat feeder and fountain by Xiaomi to my smart home and they both have sensors for checking if the lid is open but the sensors are different type. One is just sensor(0/1) and other is switch(true/false). The main problem i have with this (besides it being just sutpid) is showing on dash board. Now it looks like this:
Depending on how the integration handles the sensor/binary_sensor you may be able to change the device class by clicking on the entity, then clicking on the cog icon at the top of the pop up window, then changing the “Show as” option:
Then your best option would be to raise an issue for the integration to get the sensors fixed. What integration are you using to create the sensors (share a link to the documentation)?
Otherwise you can use manual customisation to change the device class:
Im using Xiaomi Miot (link bellow). I will try the customization. Thanks. Besides this is there a way to change sensor output on dashboard? Using some kind of state_template property?