Cheap Arduino 4-way relay shield

For those that want 4 relays cheaply using a clone of the Seeed studio V2.0 relay board available on AliExpress here, this is how it’s configured in HA. Simply follow the Arduino instructions to load the Firmata firmware on your board then plug the Arduino board into your Raspberry Pi.

arduino:
  port: /dev/ttyACM0
  
switch:
  platform: arduino
  pins:
     4:
      name: Relay 4
     5:
      name: Relay 3
     6:
      name: Relay 2
     7:
      name: Relay 1
     13:
      name: Internal LED

The manual for the relay board is here.

i use relays with arduino also, but i prefer the relay boards only and a arduino nano.

and you forgot to mention that you need an RPI also if you want to do it like that.

i use mysensors and can place the relays anywhere in my house.

Good point. Edited post. I tried MySensors but was not happy with the range as I have a big house.

i have a very big house also.
i have 3 mysensors gateways in the moment and will probably go up to 7 gateways.
i have already extended my WIFI with 3 accespoints and will probably need 2 more to have wifi strong enough everywhere.
but if WIFI is strong enough then you can have mysensors gateways there also.
and nowadays you can have sensors and switches directly at your gateway also.

at least you are a lot more flexible then when you need to connect your arduino directly on your RPI.
now you can only connect the relays on things near your RPI.