Alright I got this figured out, atleast my version of it. I wanted to document it here incase anyone else runs into Similar.
I’m using ethernet gateway also(ESP8266) so my first thought was there was something wrong with that, even though it had just been working with Domitcz and OpenHAB days before.
I connected to the gateway to view the serial output which returned following when being reset:
dhcp client start...
...ip:192.168.1.172,mask:255.255.255.0,gw:192.168.1.1
.IP: 192.168.1.172
0;255;3;0;9;Init complete, id=0, parent=0, distance=0
I was able to ping, so it appeared to be connecting to my network fine.
I then restarted HomeAssistant and received:
0;255;3;0;9;Client 0 connected
and when restarting again
0;255;3;0;9;Client 0 disconnected
So after that It seemed as though my configuration.yaml was correct and HA actually was connecting despite nothing showing up on the GUI.
I turned my attention to my “Sensor”(window Opener) Node. The sketch I had used had worked just fine for Domoticz and OpenHAB, and I had assumed the gateway would appear in HA like it had in other controllers I’d used.
Fixed/added a few things from the Sketch and WHALA problems solved.
Things I fixed/Added using example sketch here as [https://home-assistant.io/components/mysensors/reference](link url):
-
I noticed in void presentation function I was presenting as S_STATUS rather than S_BINARY
present(CHILD_ID, S_BINARY); -
Added Following lines to in void loop function send Initial Status to controller
if (!initialValueSent) { //initialValueSent is Global Variable Defined Above
Serial.println("Sending initial value");
send(msg.set(<function to get current state>);
Serial.println("Requesting initial value from controller");
request(CHILD_ID, V_STATUS);
wait(2000, C_SET, V_STATUS);
}
- added corresponding lines in void receive to change initialValueSent to false. This wasn’t really part of the fix just wanted to note another change I made
if (!initialValueSent) {
Serial.println("Receiving initial value from controller");
initialValueSent = true;
}
So to sum it up, I believe the main issue was presenting as wrong type, and not sending initial status in my nodes sketch. It wasn’t straight forward to track down since I my gateway/node worked fine in Domoticz and OpenHAB. I also assumed the HA log would show gateway as connected. In the end, I should have just followed/verified the rest of the HA mysensors Instructions ([https://home-assistant.io/components/mysensors/reference](link url)).
Hopefully this helps anyone else out with same issue. @tubby after reading over your problem again, It looks like you did the presentation and initial send correctly. I wonder if your Gateway is not actually connecting to your network correctly. It seems as though its connected to your sensor.
Are you able to ping your EthernetGateway?