Page 1 of 1

ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Saturday 30 January 2016 13:52
by jeroenvanpelt
Background:
[*] 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:
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 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.
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
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.

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:
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
Sensor reporting:
2016-01-30 13:33:51.648 (MySensorsGateway Serial) Temp + Humidity (My_TempHum)
One final note: The version of the gateway (serial or WiFi) is not reliably displayed. Varies from '?' to '1.4' or 'undefined'.

Where to start looking for a fix for the misbehaving WiFi gateway? Is it MySensors or Domoticz related?

Re: ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Saturday 09 April 2016 10:14
by tkald
I have exactly the same problem. Maybe is problem on both sides. When domoticz connect to wifi gw, then wifi gw reboot.
If I connect to wifi gateway by telnet (ip:5003) i can see all data ok. But, when domoticz connect to wifi gw, then wifi gw got error and reboot itself.

Background:
[*] Running Domoticz 3.5051 (beta) on RaspberryPi connected using wired ethernet
[*] ESP8266 NodeMCU WiFi MySensors gateway (https://www.mysensors.org/build/esp8266_gateway) esp8266 driver 2.0.0
[*] Set everything up with Arduino IDE 1.6.8 and MySensors API 1.5

Re: ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Saturday 09 April 2016 11:21
by gizmocuz
Try searching for the wiki/forum about 'persistent devices'
Also you talk about the USB gateway ? Or the ethernet gateway ? I dont know a Wifi gateway ?

Re: ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Friday 03 June 2016 10:28
by SystemLord
Seems that when you commenting out: server.setNoDelay(true); in Esp8266Gateway.ino solves this issue.
Just google "server.setNoDelay esp8266" and see lots of other issues.

Seems that in the development branch (mysensors) this setting is gone.

Re: ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Wednesday 06 July 2016 19:22
by BarnaM7
Hi jeroenvanpelt,

I have met same issue, what was you solution?
thanks

Barna

Re: ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Posted: Saturday 17 September 2016 12:05
by insippo
i have too same question