Hello,
I like to add my water meter to the energy dashboard. Only I don’t get the HA configuration right for it.
I got this sensor working in my config:
sensor:
- platform: serial
name: Water Meter
serial_port: /dev/serial/by-id/usb-1a86_USB2.0-Ser_-if00-port0
baudrate: 9600
value_template: "{{ value.split(':')[1][:-1] }}"
I didn’t find any usefull information how to configure the sensor for this. So what do I have to add to the config so Ha knows this is a water sensor?
Thanks
You’re going to need more than just device_class to get a sensor included in energy statistics. You will also need state_class and unit_of_measurement.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.