Page 1 of 1

Integrate DIY RF solution

Posted: Sunday 04 October 2015 14:46
by rimram31
Hi everybody,

I've work on a DIY RF solution (based on pi and a linx tranceiver). For now my prototype is working well, I'm looking for information, development documentation, on how to integrate this efficiently with domoticz, not simply virtual devices and scripts.

I've read domoticz hardware source code: RFXCom, RFLink and some others ... We can find information on the wiki on how to add a new hardware but not how to interface with domoticz ... As I've understood, this work mainly around two methods: WriteToHardware (domoticz to hardware) and sDecodeRXMessage (hardware to domoticz) with some helpers. But I cannot find any other information.

Alternatively, can we use mqtt interface or some generic solution to build an "external hardware" program ? Having a daemon running in parallel declaring/updating devices to domocitz and domoticz calling back this daemon the hardware to command devices ? Such solution don't require to change and recompile domoticz itself.

Thanks for any help.

Re: Integrate DIY RF solution

Posted: Wednesday 02 December 2015 15:50
by rimram31
Coming back some weeks and some efforts later ...

I've finally wrote what I can call a RFlink tcp hardware and I've seen such a hardware now exist (git repository). On the other side, I've wrote a daemon dedicated to my hardware which talk rflink language throw tcp both side to and from RF radio.

I will use as soon as possible the new dz version with the hardware I was searching for some weeks ago :D but for now as everything seems to work fine, I will wait some time ... not to change everything every day ;)

So problem solved.