Arduino -> HASS: Best method?

The builder of my home installed a wired home security system back in the 90’s or early 2000’s, and all the wires go to a central point. This means I could potentially add sensors for all the exterior doors in the house, as well as many of the windows. So I have a Teensy 3.5 monitoring the voltages on the wires, and want to send them back to Home Assistant as sensors.

The Teensy is connected over USB. So here were some ideas I had:

  • Firmata component: I tried this one. The main issue is that it seems unresponsive and I hear it’s far too slow to be useful.

  • Serial sensor: Use a serial sensor combined with a bunch of template sensors.

  • USB Serial -> MQTT service: The idea here would be to write a service in something like node.js or python that would just sit and read the serial port, parse it out, and publish its components to the MQTT broker, then integrate it like my other MQTT devices. I’m not sure what the speed is on it, honestly it seems like MQTT shouldn’t have to be involved.

Do you guys have experience with these, or any other ideas?

i would look into the mysensors project. it has HA integration.