Home assistant + Arduino mega?

Hi,
I am new to home assistant. I have an Arduino mega that has multiple lights (relays) and PIR sensors connected to it. (A bit of a central hub) How can I best control this in home assistant?

I would prefer a wired connection (Ethernet).
Or with serial communication via USB with a Rapsberry PI? (no idea if this is possible)

Thanks,
Isaak

Firmata (used by the Arduino integration linked above) is a strange and pretty obscure protocol. I suggest using MQTT instead, which is a very well established industry standard and is well supported by HA. It’s very easy to include support for MQTT in your Arduino sketches by using the PubSubClient library. It typically runs over Ethernet. I have several Arduino nodes running this. It’s very reliable.

1 Like