Gateways
-
I've been experimenting with gateways. I've been using an MQTT gateway running on an RPI zero. I like this because of the fast (relatively) processor with a lot of I/O (I'm running a 25 zone irrigation system).
I am developing a low cost energy meter and to test it out on my developments system I tried to use a Serial gateway. no joy, see Serial Gateway woes
Then I tried the TCP gateway running on an ESP8266 (NodeMCU 1.0). To get that working I had to reload the ESP8266 library and the MySensors library. It works great! ... but the example is limited to 2 devices connected to it. Has anyone tried more devices? My experience with an ESP8266 access point (which is limited to 4 clients and pathetically slow) tells me that not many nodes can connected to it.
I use Home Assistant as a controller. I did discover that the MySensors integration can run the MQTT gateway and the TCP gateway. I wonder if it is possible to have multiple TCP gateways?
OSD
-
@OldSurferDude well, the ESP8266 is limited to 4 TCP clients in arduino IDE. This can't be really increased. I did som experiments and you can set it up to 15, but after the 5th client on my web server, I got a freeze.
Maybe you got something wrong.
#define MY_GATEWAY_MAX_CLIENTS 2
defines how many controllers (eg Home Assistant) can connect to the gateway, not how many sensors/MySensors devices.And yes, you can have multiple TCP gateways in HomeAssistant. I got an NRF24, an RFM95 long range and a RFM95 short range gateway (all based on ESP32) on the same Home Assistant.
Regards, Edi
Suggested Topics
-
Vera Lite U17 - Serial Can't Detect Device
Vera • 27 May 2015, 16:19 • gbfromhb 18 Mar 2017, 03:06 -
Home Assistant v 0.12
Home Assistant • 30 Jan 2016, 13:57 • martinhjelmare 30 Jan 2016, 15:05 -
How to check if serial gateway is operational ?
Development • 7 Jun 2015, 13:07 • joshmosh 8 Jun 2015, 18:31 -
Cross compile mysensors gateway
General Discussion • 30 Aug 2020, 10:42 • Jasper van Zuijlen 8 Sept 2020, 07:11 -
PiGatewaySerial using interrupts
Development • 11 Nov 2015, 18:42 • Bens 9 Dec 2015, 11:05 -
How to make sense of Struct data received from Arduino in RPi via NRF24?
General Discussion • 16 Jun 2022, 00:47 • nrf24_is_hard 31 Jul 2022, 04:41 -
Help with communication and debug output
Troubleshooting • 30 Dec 2014, 06:53 • alexeinz 30 Dec 2014, 06:53 -
💬 Dollhouse
Announcements • 24 Sept 2017, 08:40 • hek 25 Oct 2017, 07:50