I’ve added some mqtt sensors which pick up my water meter readings. The sensor is correctly picking up the value, however, when I try to set the device_class to water, I get the “value is not accepted.”
mqtt:
sensor:
- name: "Water Meter Total"
state_topic: "tele/wasser/verbrauch"
unit_of_measurement: "m³"
device_class: "water"
state_class: total_increasing
value_template: "{{ value_json['total_m3']|default(0.000)}}"
icon: mdi:counter