Serial Sensor

The serial sensor platform is using the data provided by a device connected to the serial port of the system where Home Assistant is running. With ser2net and socat would it also work for sensors connected to a remote system.

To check what kind of data is arriving at your serial port, use a command-line tool like minicom or picocom on Linux, on a macOS you can use screen or on Windows putty.

$ sudo minicom -D /dev/ttyACM0

To setup a serial sensor to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
  - platform: serial
    serial_port: /dev/ttyACM0

Configuration Variables


(string)(Required)Local serial port where the sensor is connected and access is granted.


(string)(Optional)Friendly name to use for the frontend. Default to “Serial sensor”.

value_template for Template sensor


"{{ (((states('sensor.serial_sensor') | float * 5 / 1024 ) - 0.5) * 100) | round(1) }}"