MySensors multiple gateways & gateway locally attached sensors

Begonnen von fatman, 12 November 2016, 19:28:19

Vorheriges Thema - Nächstes Thema

fatman

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

Sidey

Zitat von: fatman am 12 November 2016, 19:28:19

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, Homematic, Raspberry Pi, Mysensors, MQTT, Alexa, Docker, AlexaFhem

Maintainer von: SIGNALduino, fhem-docker, alexa-fhem-docker, fhempy-docker

fatman

#2
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.