Page 1 of 1

Lighting4 manual Add Switch patch.

Posted: Saturday 14 February 2015 9:40
by poursinet
Hi,

just finished to patch V2.2258 (will merge with latest beta ASAP) for one can manually add a Lighting4 switch in Domoticz (provided he can find the command 24 bits and pulse somehow). Works nicely for something like http://www.aliexpress.com/snapshot/6473215080.html .

In addition to minor changes in frontend and backend, I had to change the LIGHTING4 struct in RFXtrx.h to add a command byte in order for Domoticz to show both on and off switches states, so I'm not sure this will be accepted as-is, but still: reading the forums I'm clearly not alone in needing something like that (with such a 12 channels relay boards, I'll be able to drive all the watering valves in the garden for example).

Now, I don't know how to proceed to submit this more-than-one-liner patch, so if someone is interested, please tell me.

Re: Lighting4 manual Add Switch patch.

Posted: Saturday 14 February 2015 11:12
by gizmocuz
You can email me your patch.
The file rfxtrx.h needs to be untouched, so this is not going to work.

Re: Lighting4 manual Add Switch patch.

Posted: Saturday 14 February 2015 13:36
by poursinet
Sent patch to [email protected]. BTW, Domoticz doesn't compile anymore on Raspian from rev. 2263 (bad usage of std::stringstream() for GCC AFAIK).

Re: Lighting4 manual Add Switch patch.

Posted: Wednesday 17 February 2016 10:58
by skogl
Was this patch ever added?

I can't see it in the latest release...

/ Linus

Re: Lighting4 manual Add Switch patch.

Posted: Saturday 20 February 2016 12:12
by gizmocuz
I did not get the patch
you can or post your patch here, or make a github pull request (preferred)

Re: Lighting4 manual Add Switch patch.

Posted: Sunday 21 February 2016 22:30
by skogl
Ok, it wasn't me who changed/wrote the lighting4 code. I just stubled across this post since I need to add lighting4 devices manually.

Re: Lighting4 manual Add Switch patch.

Posted: Tuesday 02 May 2017 8:52
by timsteeman
People,

I'm dealing with the same problem!
Need to add Lighting4 devices with a specific pulse Timing of 230usec.

I have an old set of Ranex RX 2582 switches (433,92MHz) and a remote.
Already discovered the below codes and Pulse timing. (230usec)
Via the "learn" mode the remote commands are not recognized.

I need to manually add these switches according to the below codes and a Pulse timing of 230usec.
How can I add a switch according to the specific settings?

Example:
1 OFF = 3F 00 00 - 0011 1111 0000 0000
1 ON = 3F 00 C0 - 0011 1111 1100 0000