It is the first posting for me on this forum. My apolagies if I make some mistake by posting my question right here
My configuration:
- Domoticz on Raspberry3
- RFXCOM RFXtrx433 USB 433.92MHz
- Faro Barcelona fan/light with UC7076R receiver and UC7080T remote (433MHz)
- Chacon switches
The fan remote is working on 433MHz. By looking on the web, I found out that the receiver reference was also used by Lucci fans (https://www.beaconlightingtradeclub.com ... -2013_.pdf), so I was hoping that Lucci Air protocol would work. Initially, it was not. I contacted RFXCOM and they provided me right away with a new firmware (Version: Pro1/1016) and now I am able to manually control my fan after configuring a new switch as described below:
viewtopic.php?t=15499
I had then a new switch ('Ventilateur Chambre') that I can control on the Domoticz interface:
So it was quite a good progress, but the whole point of integrating the fan in Domoticz was to allow a Chacon switch to control the light.
I tried using a blocky scheme or a lua script but was not able to make it work.
Here below the script I tried:
Code: Select all
commandArray = {}
if (devicechanged['Plafonnier Chambre Switch'] == 'On') then
print ("Device based event fired on 'Plafonnier Chambre Switch', value '"..tostring(devicechanged['Plafonnier Chambre Switch']).."'");
commandArray['Ventilateur Chambre']='Light'
print(commandArray['Ventilateur Chambre'])
elseif (devicechanged['Plafonnier Chambre Switch'] == 'Off') then
print ("Device based event fired on 'Plafonnier Chambre Switch', value '"..tostring(devicechanged['Plafonnier Chambre Switch']).."'");
commandArray['Ventilateur Chambre']='Light'
print(commandArray['Ventilateur Chambre'])
end
return commandArray
Code: Select all
2018-07-21 19:21:59.262 (RFXtrx433) Lighting 2 (Plafonnier Chambre Switch)
2018-07-21 19:21:59.291 (RFXtrx433) Fan (Ventilateur Chambre)
2018-07-21 19:21:59.268 Status: LUA: Device based event fired on 'Plafonnier Chambre Switch', value 'On'
2018-07-21 19:21:59.268 Status: LUA: Light
2018-07-21 19:21:59.274 Status: EventSystem: Script event triggered: Chambre Toggle
Maybe I am missing something.
Thanks you very much for your help.
Regards.