Arduino integration

Everything is easily done except the Home Assistant via Ethernet.

If you really want to go this route, search the forums to see if anyone has installed ESPHome on an Arduino board with Ethernet.

Since you started this thread asking about integrating Arduino into Home Assistant, then why don’t you use an Arduino UNO (Ethernet) and sends data/control via MQTT, which Home Assistant is very well suited for.

There’s a few example configurations for a few ESP Ethernet boards.

I’d try one of those.
My impression is that they would not be listed on ESP-Home page unless they worked fine.

1 Like

Depends on how far you want to get into the programming and electronics. It sounds like you want to make and program your own board.

Here’s what I use:
https://aaroncake.net/house/automation/io_control.asp

@phier
Absolutely there is an Arduino interface to HA! MySensors

The easiest way is to plug the Arduino Into the USB port and set the integration of up to be Serial.

On the Arduino side you install the MySensors Library. Start with the example GatewaySerial Add your sensor code and the MySensors messaging.

HA autodiscovers the sensors. The only slightly confusing part is setting up the messaging.

Here’s a link to my most recent Arduino to HA project Interface-board-for-remote-control (As of 5 Apr 25 08h36 PDT I have only posted the description, I’m in the process of uploading the code, schemate, BOM, etc.)

If you add an nRF24 radio to the gateway you can link other Arduinos with radios. I have a water flow meter that is connected this way.

The water flow meter connects to the MySensors MQTT gateway running on an RPi. The RPi also controls my irrigation valves and communicates through the MySensors Gateway. (Front end to the valves is SIP (Sustainable Irrigation Platform)

The radios have a range of about 30m unobstructed, but they can also be repeaters which helps to go around corners and through walls.

I use Arduino Nanos to which I have connected the radio. It’s more convenient to get the RF Nano They use very little power so I use the inexpensive wall warts to power (max current < 700mA) them.

I have yet to fully document my Remote Solar Powered Soil Mosture Sensor. This employs a 1W solar panel, an inexpensive 18650 battery, a TP4056 charger and the radio and Nano. The Arduino is put into low power mode and draws less energy in a day than the solar panel provides, I expect this to run for years without a battery change.

So yes, Arduino through MySensors to HA is pretty awesome!

1 Like

@stevemann HA via Ethernet is easy in a way using esp32 with eth module, isnt it?

I thought i can somehow integrate esp32 with a relay but have no clue how w/ut arduino…

Then why did you ask?

Update
I did some experimenting with the QuinLED ESP32-Ethernet board. It integrated with ESPHome pretty easily. This might fit your requirements.

Here is the configuration I used:

# Basic ESPHome Configuration for QuinLED-ESP32 + Ethernet

esphome:
  name: quinled-esp32-ethernet
  friendly_name: quinled_esp32_ethernet

esp32:
  board: esp32dev

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  power_pin: GPIO5

# Get the Network details
text_sensor:
  - platform: ethernet_info
    ip_address:
      name: ESP IP Address
    dns_address:
      name: ESP DNS Address
    mac_address:
      name: ESP MAC Address

web_server:
  port: 80  

logger:

api:

ota:
  platform: esphome

output:
  - platform: ledc
    pin: GPIO16
    frequency: 20000Hz
    id: LED_gpio_16

# Blink the LED on GPIO2, LED_BUILTIN
switch:
  - platform: gpio
    pin:
      number: GPIO2
      mode: output
    id: builtinLED

interval:
  - interval: 250ms
    then:
      - switch.toggle: builtinLED