Ethernet receiver
Hi,
First of all, great project! I am planning on using some sensors in a greenhouse where there is no power available. ESP Now seems a great solution for a first setup as I want to use it with ESP32s that are battery powered. I am not a coder, and therefore have a preference for ESPhome as configuration happens with Yaml code.
I was able to succesfully use your code to make a receiver ESP32 microcontroller and a transmitter ESP32 with a SHT31 temp/hum sensor. So, great stuff.
This message is not really an issue. But I thought I let you know some things I came across during the process of trial and error to get it working.
I was aiming to use a Olimex-POE ethernet ESP32 device as a receiver, so that I can use ethernet for the receiver. However when trying to do this I had to add an Ethernet section in the yaml in ESPHome. And ESPHome doesn't allow wifi and ethernet both added in the yaml. And without the wifi section the proxy_receiver:
code isn't accepted.
This makes an Ethernet ESP32 device currently not supported, at least not the ethernet function.
Also I noticed that I was able to add things like device_class
and accuracy_decimals
below proxy_id
.
proxy_receiver:
espnow_channel: 11
transmitters:
- mac_address: "9C:9C:1F:C9:55:CC"
name: now-transmitter
proxied_sensors:
- proxy_id: "sht_temperature"
name: "Temperatuur"
device_class: temperature
unit_of_measurement: "°C"
accuracy_decimals: 3
- proxy_id: "sht_humidity"
name: "Luchtvochtigheid"
device_class: humidity
accuracy_decimals: 3
unit_of_measurement: "%"
It seemed it was necessary to add the accuracy_decimals
to let show decimals within Home Assistant. But I am not sure, it could also be a result of me using a copy of your code first and when I made a new sensors, the decimals were displayed.
Also it seemed that it is neccessary to ad a wifi SSID and password to the yaml config. At first I didn't do this and I didn't get it working. I am not sure about this, because with trial and error sometimes I don't know if a change actually caused the outcome to change.
I also had to learn that when the tranmitter fails to send its information, it goes into safe mode. So it only works continously if the messages are able to arrive at the receiver. Maybe that's something that can emphasized in the Readme.
However, I am glad I found your repo and hope it will be added to the ESPHome core an official option in the future.
Johan