RFXCom - Door/Window Sensors

I have a RFXCom and i use it for my LightwaveRF Lights/Switches/Plugs in Home Assistant which works really well.

So i decided to get some door/window sensors from Gearbest.

https://uk.gearbest.com/access-control/pp_593451.html

They work fine on the RFXCom manager software, The manager software shows the status instantly and the ID is the same all the time even if I take out the battery and put it in again.
RFXcom_state door

But when i add them to HA the story is different. The sensor takes 25 seconds to respond and the ID changes every time i restart HA.

First use…

Second use after restart…

My RFXCom is up to date and i am running HA 0.53.1.

RFXCom Set

Any help on this please.

Have you added your sensor to the config file as described in the documentation?

Hi Daniel

Yes i just did it, And its ok on the ID but the time it takes to change the status is still about 25 seconds.

sensor.front_door_sensor_status Motion

Is there a way to speed this up?

HA is updating the state immediately after the sensor sends an update. Some sensors only sends data with given time interval.

But the status on the RFXCom Manager is instant. So it should give the status straight away

The sensor has a blue LED on it and that sends out straight away to.

I have but Debug on and the logs are:

I opened one sensor.

2017-09-16 14:11:49 DEBUG (Thread-15) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: 3b900032 Class: RFXtrxDevice Sub: 0, Pkt_id: 082000023b90000260)
2017-09-16 14:12:14 DEBUG (Thread-15) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: 0a01 Class: RFXtrxDevice Sub: 1, Pkt_id: 085001030a01008f49)

So it took 25 seconds to come in from the RFXcom. Is this right?

Hi Cameron

I’m on release 0.53.1 and have the same experience as you. On my system it takes about 10-15 seonds to have an action performed (Marmitek DS90 433MHz, X10 security).

I’ve seen some improvement over time the new releases of HA where made avaialble and now sometimes the response of HA is instant. But out of 10 times 3 triggers are still compeltely missed by HA.

Strange thing is that other RFXTRX/433 MHZ devices (like 433MHz remote or wall switches) are working instantly; it seems only the sensor component has this problem.

How is your set-up working today?

Regards
OWK

Yes same here I have just open the patio doors to let the dog out and HA did not show it open so I spent about 10 minuets trying it and it’s still slow and about 7 out of 10 times it works. My light switches are instant on RFXcom.

I think is a bug in the RFXTR Sensor.

Glad it’s not just me hope someone can sort it out soon as I have ordered some more door sensors.

Hi

I also bay the same sensor from ebay:
LINK

Ha won’t recognize it?

@cameron did you solve the problem? How you set up RFXCom? Witch firmware do you use?

I sorted it with Node Red and it’s a lot better and faster.

Please explain. What is Node Red?

Have a look at this https://nodered.org/

And this https://flows.nodered.org/node/node-red-contrib-home-assistant

With this https://flows.nodered.org/node/node-red-contrib-rfxcom

1 Like

Thanks I wil look that. :slight_smile:

Can you show me how you setup rfxcom in rfxcom manager?

Mine rfxcom setup:
nastavitve_rfxcom

My rfxcom won’t recognize door sensor.

@cameron Can you share your node red flow?

I tray to make flow in nodered for one motion sensor and rfxcom but not working:

rfx says connecting?

@lpt2007

Have you set up your RFXcom properly.

The door/motion sensors use RF Detector Node not the RF Lights mode.

Use a RF Detector to Debug to find the codes of the door sensors.

Node%20Red%20Flow%202

Then you can enter the right code.
Node%20red%202

The Server is the IP address of the MQTT Broker.
Node%20red%20MQTT%201

If you have set a user password…
Node%20red%20MQTT%202

The in Home Assistant use.

binary_sensor:
  - platform: mqtt
    name: "Hall Motion Sensor"
    state_topic: "hall/motion/state"
    payload_on: "1"
    payload_off: "0"
    qos: 1
    retain: true

You can import this to Node Red.

[{"id":"5dd7b124.4d7a3","type":"mqtt out","z":"283193a4.21818c","name":"Publish Motion","topic":"sensor/hall/state","qos":"0","retain":"false","broker":"54a8926b.02f55c","x":940,"y":1600,"wires":[]},{"id":"89dec637.8c3688","type":"switch","z":"283193a4.21818c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Motion","vt":"str"},{"t":"eq","v":"Alarm","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1600,"wires":[["be5c2772.c56428"],["4137a067.085c6"]]},{"id":"eb420734.f856a8","type":"rfx-detector-in","z":"283193a4.21818c","name":"Kitchen Top Window","port":"a5149ee1.e9d96","topicSource":"single","topic":"X10_DOOR/0x39AC00","x":330,"y":1600,"wires":[["89dec637.8c3688"]]},{"id":"be5c2772.c56428","type":"change","z":"283193a4.21818c","name":"Change Motion","rules":[{"t":"change","p":"payload","pt":"msg","from":"Motion","fromt":"str","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1560,"wires":[["5dd7b124.4d7a3","602bd7c.05c1028"]]},{"id":"4137a067.085c6","type":"change","z":"283193a4.21818c","name":"Change Alarm","rules":[{"t":"change","p":"payload","pt":"msg","from":"Alarm","fromt":"str","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1620,"wires":[["5dd7b124.4d7a3","602bd7c.05c1028"]]},{"id":"602bd7c.05c1028","type":"debug","z":"283193a4.21818c","name":"Debug MQTT Publish","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":980,"y":1660,"wires":[]},{"id":"a9a9cd48.07eac","type":"inject","z":"283193a4.21818c","name":"","topic":"","payload":"Motion","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1520,"wires":[["89dec637.8c3688"]]},{"id":"2758216c.89522e","type":"inject","z":"283193a4.21818c","name":"","topic":"","payload":"Alarm","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1560,"wires":[["89dec637.8c3688"]]},{"id":"2c5ca297.9534fe","type":"mqtt in","z":"283193a4.21818c","name":"","topic":"sensor/hall/state","qos":"2","broker":"54a8926b.02f55c","x":380,"y":1740,"wires":[["44c0ba85.828b74"]]},{"id":"44c0ba85.828b74","type":"debug","z":"283193a4.21818c","name":"Debug MQTT FeedBack","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":650,"y":1740,"wires":[]},{"id":"c73a92e6.e10b1","type":"comment","z":"283193a4.21818c","name":"Testers","info":"","x":170,"y":1540,"wires":[]},{"id":"b89a26bc.6e7c18","type":"comment","z":"283193a4.21818c","name":"Test Feedback","info":"","x":520,"y":1700,"wires":[]},{"id":"54a8926b.02f55c","type":"mqtt-broker","z":"","name":"MQTT Broker","broker":"192.168.85.5","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"a5149ee1.e9d96","type":"rfxtrx-port","z":"","port":"/dev/ttyUSB0","rfyVenetianMode":"EU"}]

Hope this helps…

1 Like

Thanks @cameron. This helped me a lot.

1 Like

Hi @cameron

Can you please tell me witch firmware version and type you use on your rfxcom?

Thanks in Advance

Yes its RFXtrx433E Ext2 Firmware 1025.

@cameron do you have a similar problem with node-red. After I upgrade node-red to version 0.1.12

I get now following errors:
Flows stopped due to missing node types.

rfxtrx-port
PT2262-device-list
rfx-PT2262-in
rfx-lights-in
rfx-lights-out