ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Moderator: leecollings

Post Reply
jeroenvanpelt
Posts: 20
Joined: Saturday 30 January 2016 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

ESP8266 NodeMCU WiFi Gateway does not register sensors in Domoticz

Post 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?
--
Domoticz latest stable - RaspberryPi 2 B - MySensors - Controlicz - Google Home - RFLink (w/MiLight)
tkald
Posts: 8
Joined: Friday 01 January 2016 12:38
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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
Last edited by tkald on Saturday 09 April 2016 17:29, edited 1 time in total.
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

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

Post 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 ?
Quality outlives Quantity!
SystemLord
Posts: 16
Joined: Sunday 28 June 2015 17:19
Target OS: NAS (Synology & others)
Domoticz version: Stable
Contact:

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

Post 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.
BarnaM7
Posts: 2
Joined: Wednesday 06 July 2016 19:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by BarnaM7 »

Hi jeroenvanpelt,

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

Barna
insippo
Posts: 41
Joined: Sunday 26 June 2016 20:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by insippo »

i have too same question
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest