I’ve also got the same problem like in the blog post, that I receive ON signals for two different switches:
Close: 20;88;SelectPlus;ID=004bf1;SWITCH=02;CMD=ON;CHIME=01;
Open: 20;8A;SelectPlus;ID=004bf5;SWITCH=02;CMD=ON;CHIME=01;
I tried the RFLink learning mode (RFFind), but that signal seems unreliable and only triggers ~20% of the time:
20;A7;RFCustom;ID=524643;SWITCH=0;CMD=OFF;
Is also sometimes see an EV1527 signal:
20;A9;EV1527;ID=08fb40;SWITCH=0e;CMD=ON;
Only the SelectPlus signal seems to trigger very reliably though, so ideally I’d use that one.
Is there any other way to combine these two signals into one switch (one door sensor), other than using RFLink learning mode, which doesn’t work here?
Thanks for the suggestion!
I’m still a little bit in the dark how MQTT works with RFLink.
Here’s what I know:
MQTT is a standard, and can be implemented by different software stacks.
There are brokers and HA has one built in.
I’ll probably need to bridge RFLink to MQTT via some gateway (I guess?).
What software would I need to install/use/configure to have my RFLink signals published as MQTT signals?
Can you point me at some documentation?
Minims, which MQTT broker are you using?
Just the built-in one, or a different one?
Do you have a configuration example to merge two ON/ON signals into one ON/OFF?
I use Mosquitto on my RPi3 with raspbian stretch.
It works great. so just apt-get install the package.
Here is the message I have in my MQTT : RF/EV1527-ID=0ab123 {"raw":"20;37;EV1527;ID=0ab123;SWITCH=0e;CMD=ON;\r","SWITCH":"0e","CMD":"ON"} RF/EV1527-ID=0ab123 {"raw":"20;37;EV1527;ID=0ab123;SWITCH=0a;CMD=ON;\r","SWITCH":"0a","CMD":"ON"}
here is an example for a Chinese door sensor with my ESP gateway