I just would like to share that I found a "dirty" way to operate these Conrad RSL366R devices using rfxcmd (
https://code.google.com/p/rfxcmd/)
Using rfxcmd Domoticz can operate these devices using OS cli commands. The reason why this is a dirty trick is because rfxcmd hijacks the serial interface of the RFXCOM device causing Domoticz to loose its connection with the RFXCOM transciever.
Domoticz logs the following messages:
2015-04-11 15:11:36.113 Error: Serial Port closed!... Error: End of file
2015-04-11 15:11:37.092 RFXCOM: retrying in 30 seconds...
Fortunately Domoticz automatically reconnects to the RFXCOM device but please be aware that this is causing an interruption in the communication between Domoticz and the RFXCOM device every time you switch a Conrad RSL366R device.
Though it's not perfect it does work without any alternatives available. (As far as I'm aware)
Hopefully the developers of Domoticz will find some time to invest in the implementation of manually adding lightning4 devices so rfxcmd can be skipped.
More information about this topic/request can be found in the following thread:
http://www.domoticz.com/forum/viewtopic ... 449#p24449
This is how it can be done.
1. Install and configure rfxcmd like described in their documentation.
2. Create a switch (E.g. a Dummy or use the autolearn feature to register a remote control)
3. Install a lua script in domoticz/scripts/lua that takes care of executing the correct cli commands.
An example:
script_device_switchConrad.lua:
-- script name : script_device_switchConrad
-- This script will trigger a command every time the Domoticz switch changes status
commandArray = {}
if (devicechanged["Switch1"] == 'On') then
print "Switched Conrad1 On"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354155501A950")
end
if (devicechanged["Switch1"] == 'Off') then
print "Switched Conrad1 Off"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354155401A950")
end
if (devicechanged["Switch2"] == 'On') then
print "Switched Conrad2 On"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354455501A950")
end
if (devicechanged["Switch2"] == 'Off') then
print "Switched Conrad2 Off"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354455401A950")
end
if (devicechanged["Switch3"] == 'On') then
print "Switched Conrad3 On"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354515501A950")
end
if (devicechanged["Switch3"] == 'Off') then
print "Switched Conrad3 Off"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354515401A950")
end
if (devicechanged["Switch4"] == 'On') then
print "Switched Conrad4 On"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354545501A950")
end
if (devicechanged["Switch4"] == 'Off') then
print "Switched Conrad4 Off"
os.execute ("/opt/rfxcmd/rfxcmd.py -s 0913000354545401A950")
end
return commandArray
In this example I am using the configurable channel IV but you can always adapt the codes like described in chapter 14.4 of the rfxcom userguide:
http://www.rfxcom.com/WebRoot/StoreNL2/ ... _Guide.pdf
Just convert the described BIN values to HEX using e.g. a calculator app and replace these values in the used examples: rfxcmd.py -s 09130003
54545401A950
Names like "Switch1" should be replaced by the name of your switch defined in Domoticz.
Testing rfxcmd can be done manually using the cli command directly e.g.: /opt/rfxcmd/rfxcmd.py -s 0913000354455501A950