As i now switched over to the great HA i wopuld like to connect the power meter sensor to HA using an ethernet gateway using the components described in https://www.mysensors.org/build/ethernet_gateway
My question:
Does anyone have a complete code to flash on the gateway that makes it work for HA?
On the mysensors poage, this seems incomplete and also in the components page (https://home-assistant.io/components/mysensors/) it tells me to present it to HA.
Thats what is confusing me a bit…
Actually, I was suggesting you install the MySensors gateway on your HA pi to minimize the number of devices. Its the way I would do it if the I/O pins on my Pi weren’t already taken up by something else
I actually use an MQTT gateway on a Wemos D1, so can’t really help with the Ethernet gateway, but it shouldn’t need anything special for HA.
All you do is setup an IP address or use DHCP, then point HA to the gateway’s IP and port.
The example code at https://home-assistant.io/components/mysensors/ is for a sensor node not the gateway.
@gpbenton: Good idea. But on my specific setup, the HA Raspberry pi is in my living room and the power meter is in the basement. No chance to get the signal via mysensors rf up. Thats why i choosed the ethernet gateway.
@firstof thanks for your reply, will try this as soon as possible and give feedback.
after pausing with this, tried again today.
Uploaded sketches from both LAN gateway and power meter sensor to the modules.
Gateway i can see in HA, but no sensor still.
Is there any modification of the sensor code needed? If yes, someone can post the complete code here please?
@xydix: thanks for the link.
I did have the sensor working on my former Domoticz instance without any problems. So i would not say it is a hardware problem.
But i will check if i get it working nevertheless.
Only have few time on this currently…