ESP8266: ZgatewayPilight doesn't publish anything when ZgatewayRF enabled

#1

I’ve just received some Digoo R8S sensors that are supported by OMG and tried them out.
I downloaded, compiled and uploaded the master code to my Wemos D1 mini with only ZgatewayPilight enabled and it does work:

17:36:39: (0) home/OMG_2nd_floor/PilighttoMQTT {“message”:"{“id”:51,“temperature”:19.80,“humidity”:51.00,“battery”:1,“channel”:1}",“protocol”:“tfa”,“length”:“51”,“repeats”:2,“status”:2}

17:36:39: (0) home/OMG_2nd_floor/PilighttoMQTT {“message”:"{“id”:147.0,“temperature”:1.2,“humidity”:49.0,“battery”:0.0}",“protocol”:“teknihall”,“length”:“147”,“repeats”:2,“status”:2}

17:37:00: (0) home/OMG_2nd_floor/SYStoMQTT {“uptime”:120,“freeMem”:30936,“rssi”:-47,“SSID”:“Level2”,“modules”:“Plight”}

However, If I enable ZgatewayRF as well, OMG stops publishing PilighttoMQTT messages, only this:

17:42:59: (0) home/OMG_2nd_floor/SYStoMQTT {“uptime”:120,“freeMem”:30232,“rssi”:-45,“SSID”:“Level2”,“modules”:“RFPilight”}

And there is no incoming signals in Serial Monitor, just ordinary “subscribed to all topics”.

I use RF_RECEIVER_PIN 0 in config_RF.h

Is it possible at all to receive both 433toMQTT and PilighttoMQTT messages?

#2

It is not possible.
As ZgatewayPilight covers more protocol I advise you to go for it as the only one. But you have maybe some devices that doesnt work with ZgatewayPilight ?

#3

I have ordinary 433MHz PIRs, door opening detectors and wall RF switches I currently control via OMG RF, but I hoped to add some DIGOO R8S sensors as well and be able to get their readings rather than use a separate RFLink gateway.
The trouble is if I enable only Pilight, I don’t get signals from any of my RF devices, hence my original question.

#4

Interesting, could you give me links please to these different hardwares ?
With Pilight my plugs are working and also some other sensors. I should test them exhaustively to have a better understanding for everybody, on what each library does and does not.
What we haven’t tested yet is to put 2 receivers and to attach each gateway to one receiver. The code currently doesnt enable it.

#5

Sonoff PIR2, Kerui 026 and GS-WDS07 door sensors…

I’m pretty sure there is something in OMG configuration I need to change for it to work as it’s strange that everything works when RF is enabled, but all RF goes away when Pilight is.

What do you mean? 2 OMGs, one with RF enabled and one with Plight?

#6

I mean to put 2 receivers on one OMG board.

#7

I will do some tests with this one.

#8

Well, but what’s the point? It’s only about different protocols, right? And still the same OMG should do all that work of deciphering protocols… Or am I missing anything?

That would be great, thanks.

#9

A gateway in OMG view is corresponding to one library (for one board) ; rcswitch, irremote, espilight…
Each library has its proper encoding/decoding methods.

This is the target, and by adding ZgatewayPilight we support more protocols , now we need to see how the protocols covered by ZgatewayRF could be all included in ZgatewayPilight

#10

I can confirm that my gateway is able to receive open/close/tamper states of a Kerui D026 door sensors.
Have no idea what does “low battery” message look like though…

GS-WDS07 is definitely not detected…

#11

I can confirm it to, The list of compatible devices has been updated when the device is not detected by Pilight or not yet tested.
Now I need to check how we can add the missing devices to Pilight…

#12

yeah, that would be great to have Pilight instead of RF as they declare wide range of protocols etc, but so far many pretty standard 433MHz devices are not recognised… :frowning:

#13

For the GS-WDS07 it was already done in a fork, I’ve made a PR so as to incorporate it in Pilight next release:

Please note that I have tested this fork on my local OMG and I confirm that GS WDS07 will work with this add

#14

That’s great news indeed.
I get it you’ll need to release a new version when they update pilight library?
By the way, what it takes to add support for a new device?
I might do my bit and try to add Sonoff PIR2 support as I have one.

#15

This should be the proper way, but if you don’t want to wait here is it

Doesn’t seems too hard if you take a look to the PR