RFLink with EV1527 Door Sensor sends ON/ON signal, not ON/OFF

Hey,

I just got an RFLink and am playing with a EV1527 Door Sensor:
https://www.ebay.de/itm/173375498999
I believe it’s the same one as in this blog post:
https://kris.bogaerts.org/2018/02/21/cheap-door-window-contact-ev1527-with-home-assistant-and-rflink/

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!

Oh, somewhat unrelated, but while we’re at it:
I also cannot seem to remove the RFFind entries anymore:

10;rfshow;
RF Record: 0 ID: 0FB40E S: 0D L: 2C T: 01 - ON
RF Record: 1 ID: 0FB40A S: 0D L: 2C T: 01 - OFF
10;RFFind;0;
10;RFFind;1;
10;rfshow;
RF Record: 0 ID: 0FB40E S: 0D L: 2C T: 01 - ON
RF Record: 1 ID: 0FB40A S: 0D L: 2C T: 01 - OFF

Does that work for everybody else?

I had same the same issue. Finally i have decided to make a rflink to mqtt and now i use mqtt switch to manage all my rf sensors.

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?

Thanks!

On my side, i have decided to use an esp8266 (esp12e in my case) to works as mqtt gateway.
The code i use on my esp is :

But you can make this directly on a Pi with RFlink connected to USB.
Here is 2 projects you my check too :


Thanks for the links!
I’ve got my RFLink connected via USB to a Linux machine. So I guess I could use RFLinkGateway.

It does look more like a few hours of work though to add MQTT.
I was hoping for a configuration trick in HA that can be done in a few minutes :-/

Any other ideas?
Else I guess I’ll have to wait until I have some more time and can switch to MQTT.

Thanks!

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?

Thanks!

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

mqtt.yaml :

broker: 192.168.x.x
port: 1883
client_id: home-assistant
keepalive: 60

binary_sensor.yaml :

- platform: mqtt
  name: "Garage Door"
  device_class: motion
  state_topic: "RF/EV1527-ID=0ab123"
  qos: 0
  payload_on: "ON"
  payload_off: "OFF"
  value_template: '{% if value_json.SWITCH == "0a" and value_json.CMD == "ON" %}
                      ON
                   {% elif value_json.SWITCH == "0e" and value_json.CMD == "ON" %}
                      OFF
                   {% endif %}'