So I had my Home Assistant setup finished and perfect. I was a happy person… until my SD card died!
So I’ve been trying to recover my setup. I cannot for the life of me work out how I got my Mi Flora sensor to show in HomeKit before the crash.
I have seen that you need to change the “device_class” by selecting the “cog” in the states tab of developer tools, but the cog is not there for this sensor. I’m not sure how to create a custom sensor that draws information from this device and I’m unsure how to manually set the device_class in a yam file (I saw something about a customisation.yaml but I do not have it). When I try to add “device_class”: “humidity” in the developer tools > states page I get the below error.
It is driving me mad because i had this working before the SD card died so If anyone could look at this and tell me how to get the sensor to show in homekit, even if this involves creating a new sensor that draws information from the device, I would be forever grateful;
Thanks mate. I appreciate the help. I wonder how the hell I did it without knowing how to do that before the SD card died. I wish I understood how to make a template sensor to draw on the input from the device.
Thanks for the link, it mentions clicking on this “cog” that isn’t available on this entity so looking at manual, does this look like it would work in my configuration.yaml?
customize:
# Add an entry for each entity that you want to overwrite.
sensor.herbs_moisture:
unit_of_measurement": "%",
"friendly_name": "Herbs Moisture",
"icon": "mdi:water-percent",
"device_class": "humidity"
This is YAML and here you don’t need “” or ‘’ and ,
customize:
# Add an entry for each entity that you want to overwrite.
sensor.herbs_moisture:
unit_of_measurement: "%"
friendly_name: Herbs Moisture
icon: mdi:water-percent
device_class: humidity