homebridge-rtl icon indicating copy to clipboard operation
homebridge-rtl copied to clipboard

[Request] Add support for Generic remotes?

Open thetrueyoshifan opened this issue 5 years ago • 1 comments

I was wondering if it would be possible for this rtl_433 implementation to support remotes, either as a single-state button or a motion sensor with a threshold. An example of the output from our remotes, via rtl_433:

time : 2020-08-31 19:18:40 model : Generic-Remote House Code: 7771 Command : 8 Tri-State : 0Z1XZZX100X0

For some context, these remotes are designed for an emergency button system. The default wall receivers are seriously limited, and it would be far more useful to integrate into HomeKit, rather than having to mod the wall units they came with.

thetrueyoshifan avatar Sep 01 '20 01:09 thetrueyoshifan

You should be able to easily tweak the section of code around motion detection and switch it to different portion of the RTL_433 Response. The line that detects motion is here

https://github.com/NorthernMan54/homebridge-rtl/blob/f023c43ba2ebdf32aa8099ca8391dd1bec7fb8d6/sensor.js#L160

NorthernMan54 avatar Sep 01 '20 01:09 NorthernMan54