Sending custom lighting4 commands?

Post Reply
svollebregt
Posts: 4
Joined: Sunday 13 May 2018 22:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

Sending custom lighting4 commands?

Post by svollebregt » Sunday 13 May 2018 22:22

Beside my KaKu devices I have an older wireless LED dimmer which seems to work on the 433 MHz band. Using RFXmngr I figured out that the device is sending out codes which are currently not supported by the RFXcom firmware, but can be emulated using the lighting4 protocol. I used undec to figure our what it is sending, and comfirmed this works in RFXmngr:

An on/off is registered as (same button):
ARC: 284132010183
And can be emulated using the lighting4 with 4 1 3 2 0 1 (0100 0001 0011 0010 0000 0001) as output.

Increasing light registers as:
ARC:284132040579, and works with 4 1 3 2 0 4 in the lighting4.
Decreasing light is as follows:
ARC:284132020578, and again works with lighting 4 1 3 2 0 2

Interestingly the device has a sticker on it with device ID: 0399, which doesn't seem to relate to the above numbers. I opened the remote and it has a 433 MHz crystal and HS1527 (EV1527 compatible) encoder.

My question is, is it possible to make a manual dimmer in Domoticz which would send the same commands over the RFXcom? Or is there any other way to get this working from within Domoticz?

svollebregt
Posts: 4
Joined: Sunday 13 May 2018 22:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Sending custom lighting4 commands?

Post by svollebregt » Monday 14 May 2018 21:20

Perhaps not the most elegant solution, but I've solved it using RFXcmd and calling an external bash script. I can only turn the device on/off, but I typically do not adjust the light intensity once set, so that is fine.

Basically, RFXcmd can be used to fake a lighting4 command which is accepted by the device by using:
python rfxcmd.py -d /dev/ttyUSB0 -s 09130000413201015E70

Although the last four digits don't really matter at all (although 0000 seems to not always work odd enough). This is picked up by the device as an on/off command.

In the future, I will contact RFXcom to see if support for this device is worth adding (or even possible at all). These LED dimmers are sold by a lot of webshops as a cheap dimmer in Holland.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest