I’ve got a reflective sensor on an arduino nano (with serial-usb) that gives me a pulse (basically an X) over serial input every time it’s triggered.
This is linked to a sensor as
sensor:
- platform: serial
serial_port: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
baud_rate: 115200
Now, I get the things into HA … but how do i properly count this stuff?