OK, got the RF-link to work and all button presses from the two remotes are recorded and they are now nicely added in the Devices section.
Can I use a custom message to perform an action to switch ON/OFF with the socket?
Which code and where to place?
Am I on the rigth track?
If I make a .lua script for the switching which code do I have to use so the RF-link transmits them?
Will the
Code: Select all
-- script to check a temperature and swicth on/off a 433 switch
commandArray = {}
if (devicechanged['CV aanvoer_Temperature']) then
temp = tonumber(devicechanged['CV aanvoer_Temperature'])
if (temp >= 25.0) then
commandArray['000FBE63, 0']='on'
commandArray['CV aan/uit']='on'
print ('vloerpomp aan')
end
if (temp <= 23.0 ) then
commandArray['000FBE63, 0']='off'
commandArray['CV aan/uit']='off'
print ('vloerpomp uit')
end
end
return commandArray
Paco