I see the code in the logs per setup above, however on HA restart, the codes keep changing
Extract from log after restart
2018-09-06 22:30:49 WARNING (MainThread) [homeassistant.components.switch] Setup of platform hadockermon is taking over 10 seconds.
2018-09-06 22:31:06 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-09-06 22:31:22 INFO (Thread-3) [homeassistant.components.binary_sensor.rfxtrx] Added binary sensor 09130005b941ee013260 (Device ID: b941ee Class: LightingDevice Sub: 0)
2018-09-06 22:31:24 INFO (Thread-3) [homeassistant.components.rfxtrx] rfxtrx: found possible device b941e7 for b941ee with the following configuration:
data_bits=4
command_on=0xe
command_off=0x7
Yes, have them working reliably. As far as i recall, watch the logs carefully and only do one thing at a time, i.e. open close and tamper. Copy code out for each item.
Any news here?
I have a similar problem. My Kerui sensor is detected as a Security1 sensor like yours @sypeer.
And I’m only able to get it working as an rfxtrx.sensor. With all the states open/close/tamper status.
The downside is, that the sensors are only updated every 30 seconds… so there is no way to use that to immediately do something if the door is opened.
That’s where I need to get it working as a binary sensor.
So, like I said at the beginning, any news?
Well, my IDs I get look like this: “0820000786bee08269”
So as you might see its recognized as a Security1 (20) type device. The only “working” configs use a 0913… So they are of the type “lighting4” (13).
I guess that there might be a problem … But I’m just guessing at the moment.
RfxMngr also shows it as a Security1 type, btw.
And another info I’m using a RfxComXL … which also could be an issue.
I also struggled with the Kerui D026 device. Now working perfectly. What helped for me was the following:
In RFXcom (RFXtrx433E) I disbled the X10 protocol. Now the doorsensor is detected as described in the home-assistant documentation of the RFXtrx binary sensor documentation.
In RFXmanager you can check if your Kerui is detected correctly. If you trigger your sensor. In the debug window of RFXmanager you see that it is detected as a lightning4 device.
Update. I have disabled X10 and saw on the RFXcom lighting 4 wasn’t enabled also. I enabled it. After went back to Home Assistant.
set the automatic on true and triggered the sensor.
Outcome was 3 codes. I tried all 3 codes in the below setup, and the 2nd was working. Now my sensors work all. i have 4 of them working fine. Thanks all for the support! HA is awesome