2016-08-27 10:42:59.281 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:ecc6de52 message: Raw data = 0913005FA9A9C901A170, Packet type = LIGHTING4, Seq number = 95, Sub type = PT2262, Device Id = 11118860, Command = UNKNOWN, Pulse = 417
2016-08-27 10:43:21.785 [DEBUG] [g.rfxcom.handler.RFXComBridgeHandler] - Message received: Raw data = 09130060A9A9C901A170, Packet type = LIGHTING4, Seq number = 96, Sub type = PT2262, Device Id = 11118860, Command = UNKNOWN, Pulse = 417
I’m using openhab2 beta 3.
Is there any way to make rfxcom binding to work with this pir sensor?
For me It would be just fine if I could catch this message in the rules file
2016-08-27 11:45:46.872 [DEBUG] [binding.rfxcom.handler.RFXComHandler] - Received message from bridge: rfxcom:bridge:ecc6de52 message: Raw data = 091300021D155C01E960, Packet type = LIGHTING4, Seq number = 2, Sub type = PT2262, Device Id = 1905925, Command = UNKNOWN, Pulse = 489
2016-08-27 11:45:46.872 [ERROR] [binding.rfxcom.handler.RFXComHandler] - Error occured during message receiving:
Lightning4 message seems to be manufacture specific. Code (S1-S24) can probably be anything (at least RFXCOM spec does not specifies it). Currently RFXCOM binding parse first 5 nibbles from the code as a device id and last nibble as command. Your device send code where last nibble is 0xC and this is not recognised by the 2.0 binding.
2.0 binding seems to have also bug in the device id parsing.
RFXCOM 1.0 binding have wider support nowadays for the command nibble. So most probably that should solve your problem (device id bug should also be fixed).
I had a similar issue. Since a lot of Lighting4 433mhz only send a single command I use the following items: note I changed the device id for your situation
@pauli_anttila, sorry just bit confused here. So should I use 1.0 or 2.0 binding? Or are you saying that openhab2 beta 3 has some bugs that will be fixed at some point?
BTW do you know any cheap PIR sensors that I can order that works in openhab2 and rfxcom binding.
is there any possibility to make these items work in openhab2?
You could try OH1 binding and see if it works better with Lightning4 messages. Anyway, RFXCOM v2.0 binding’s Lightning4 message support should be fixed (device id problem) and extended to support more commands. Pull request are always welcome (Lightning4 message handling differences between OH1 and OH2 bindings could be easily find and fixed from files which I linked my early post.
BTW do you know any cheap PIR sensors that I can order that works in openhab2 and rfxcom binding.
Your name sound Finnish? E.g. all Nexa devices should work very well with rfxcom binding and they are sold e.g. by the Clas Ohlson. All nexa devices are using Lightning2 messages.
I’ve bought the same PIR Sensors and they work very good and last long.
The solution to your problem is very simple. You need to set the Data Jumpers inside your PIR accordingly, so that they do not send a command which is UNKNOWN to rfxcom, but to ON. This will switch a Switch item to ON. (I believe, it would also CLOSE a contact, if used, but I only use switches).
Switch D1 to LOW: Remove all the jumpers from D0-D3 and place one Jumper to the left and middle row, in the D1 column. Just have a look at my picture and it will be clear.
This will cause to set the Switch to ON in OpenHAB. The good thing is: You can make yourself a rule to start a Timer to switch it off again after a few minutes. Presence-detection done.
If you need sophisticated examples using OpenHABs Timer Implementation, I’d be happy to provide them to you (all), if wanted.
I allready installed the development environment, but setting all up was bit to much for time I have available now. Maybe some future weekend I will do this.
I am indeed from Finland so went to Clas Ohlson to buy this. It works and and fullfills my needs. Thanks for the tip.
It looks like you have the ev1527 learning code type. (simple comparison)
I never used those, it’s way harder because you can’t just configure them, but you have way more different codes to “choose” ( or better “learn”) from.
Have a search for ev1527 and openhab or rfxcom. I’m sure that some people use them as well. Good luck!
I installed development environment and copied the behaviour from rfxcom RFXComLighting4Message 1.0 to 2.0. Now PIR and Smoke detector sensor works in my dev machine.
@pauli_anttila so basically I just coped the encodeMessage and decodeMessage from 1.0 to 2.0. Is this feasible solution?
If this was a feasible solution, just wondering what should should be my next steps.
sorry been busy with other stuff, but today I managed to do the testing.
I had those 2 devices and both of them worked so, that they created 2 items over time. I sent the signal with different distances. Maybe that was having the impact?
@Ari_Hagman, thanks for the testing. I just copied idea from the OH1 binding, where pulse is part of the unit id. If pulse can be changed, then this broach doesn’t work on OH2 as it generate a new thing for every individual device id (it doesn’t work on OH1 either). I don’t have any clue, what is the purpose of this pulse is lighting4 messages and how it should be used.
So this have impact to the pulse, but what do you mean by distance?