Autor Thema: MySensors multiple gateways & gateway locally attached sensors  (Gelesen 2244 mal)

fatman

  • Gast
Dear FHEM MySensors developers,
I have two wishfulness regarding MySensors in FHEM:

1. Is it possible to connect multiple gateways? This is well supported by MySensors itself (see e.g. Multiple gateway support row https://www.mysensors.org/controller). Let me remind that node ID's are unique within a single gateway (thus FHEM MYSENSORS_DEVICE definition must keep node ID AND gateway device).

2. Are gateway's locally-attached sensors supported? (in MySensors, Node ID of such sensors is 0)

Thanks a lot
« Letzte Änderung: 12 November 2016, 21:50:41 von fatman »

Offline Sidey

  • Developer
  • Hero Member
  • ****
  • Beiträge: 2437
Antw:MySensors multiple gateways & gateway locally attached sensors
« Antwort #1 am: 13 November 2016, 00:57:38 »

2. Are gateway's locally-attached sensors supported? (in MySensors, Node ID of such sensors is 0)

I`m using a local sensors on my ethernet gateway. This works well, but i hink this will not work with two gateways which have local sensors attatched, because of of the node id 0.

Signalduino, HMLan, Raspberry Pi, Mysensors, ESPEasy, HABridge für Echo

fatman

  • Gast
Antw:MySensors multiple gateways & gateway locally attached sensors
« Antwort #2 am: 23 Januar 2017, 23:53:24 »
Locally attached sensors on gateway are ok.

But: If multiple gateways used (which is possible and useful, see bellow),  sensor's ID's are no more unique (same sensor ID may be conflict for several gateways).

The reason for using multiple gateways (and local sensors) is the following simple trick allowing to use simple ESP8266 device as WiFi attached sensor:

One may configure ESP8266 device as a MySensors gateway https://www.mysensors.org/build/esp8266_gateway without NRF radio (nor radio attached nodes), local sensors only. Since this gateway is connected over WiFi, it may be used as WiFi-attached node. Everything works fine except the ambiguity of sensor ID's if several such gateways used.
« Letzte Änderung: 23 Januar 2017, 23:58:05 von fatman »