[*] Running Domoticz 2.4350 (beta) on RaspberryPi B 2 connected using wired ethernet
[*] RFXCom trx433 for KlikAanKlikUit and X10 Security sensors
[*] ESP8266 NodeMCU WiFi MySensors gateway (https://www.mysensors.org/build/esp8266_gateway)
[*] MySensors Micro board (https://www.mysensors.org/hardware/micro)
[*] Set everything up with Arduino IDE 1.6.7 and MySensors API 1.5
If I configure the MySensors WiFi gateway in Domoticz there is a connection:
When I turn on the battery pack for the MySensors Micro board sensor, I do not see any sensors appear. Not as unused device, but also no nodes or children in the hardware setup page for the gateway in Domoticz. When I connect to the gateway using nc I see the sensor successfully sending and the gateway receiving data. Nothing in Domoticz though.2016-01-30 13:31:30.001 MySensors: trying to connect to: 10.0.1.235:5003
2016-01-30 13:31:31.002 MySensors: connected to: 10.0.1.235:5003
2016-01-30 13:31:31.002 MySensors: Gateway Ready...
When using MYSController (http://www.mycontroller.org/) I see that the gateway seems to restart as soon as Domoticz connects for the first time. If I disable the gateway in Domoticz, the gateway seems to remain stable. Ohter than that, the MySensors Micro sensor registers normally with the MYSController.pi@domoticz ~ $ nc 10.0.1.235 5003
0;0;3;0;14;Gateway startup complete
1;1;1;0;0;17.7
1;2;1;0;1;1099759683
Based on this page (https://github.com/mysensors/Raspberry), I connected one of my radios directly to the RaspberryPi Domoticz is running on and set it up as a serial (USB) MySensors gateway in Domoticz. For whatever reason this setup works flawlessly:
Connecting:
Sensor reporting:2016-01-30 13:27:32.732 MySensors: Using serial port: /dev/ttyUSB020
2016-01-30 13:27:32.733 RFXCOM: Using serial port: /dev/ttyUSB0
One final note: The version of the gateway (serial or WiFi) is not reliably displayed. Varies from '?' to '1.4' or 'undefined'.2016-01-30 13:33:51.648 (MySensorsGateway Serial) Temp + Humidity (My_TempHum)
Where to start looking for a fix for the misbehaving WiFi gateway? Is it MySensors or Domoticz related?