slsys / Gateway

Web site
https://slsys.github.io/Gateway/
245 stars 103 forks source link

Wrong device class for DIYRuZ_Flower's soil moisture sensor sents to MQTT topic #89

Closed litichevskiydv closed 3 years ago

litichevskiydv commented 3 years ago

Gateway sents to topic homeassistant/sensor/<sensor_address>/soil_moisture/config message with device class moisture

{
  "device_class": "moisture",
  "unit_of_measurement": "%",
  "value_template": "{{ value_json.soil_moisture }}",
  ....
}.

But according to documentation such device class is not supported for sensors, so Home Assistant can not automatically create entity for sensor.

Avenitos commented 3 years ago

Thanks! I fixed this