BroadLink Mark II plugin

[quote=“a-lurker, post:100, topic:198239”]@pCleavage The luup.sleep() function may cause the Luup engine to restart if you use delays greater than about one second. You can use luup.delay() for longer delays but it only has second resolution, rather millisecond resolution. You could try this code in the Lua test code box and see if works for you:

[code]local IRDeviceID = 531

local resetInputSelList = ‘26 00 78 00 00 01 28 91 15 10 15 10 15 10 15 10 15 10 15 10 15 34 15 10 15 35 17 32 16 34 15 35 15 34 15 35 15 10 15 34 15 10 15 10 15 35 15 10 15 10 15 10 15 34 15 10 15 35 15 34 15 10 15 35 15 34 15 35 15 10 15 34 15 00 05 16 00 01 29 47 15 00 0c 44 00 01 28 47 17 00 0c 42 00 01 29 47 16 00 0c 43 00 01 28 47 15 00 0c 44 00 01 2a 45 18 00 0c 42 00 01 2a 45 15 00 0d 05’
local input8ButtonPress = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’

local steps = {

– Turn TV ON and wait 1 second
{delay = 1, code = ‘26 00 50 00 00 01 29 91 15 10 15 10 15 10 15 10 15 10 15 0f 16 34 15 10 15 34 16 34 15 35 15 34 15 35 15 34 16 0f 16 34 15 10 15 34 16 0f 16 0f 16 34 15 10 15 10 15 10 15 34 16 0f 16 34 15 34 16 10 15 34 15 35 15 34 15 00 05 16 00 01 28 47 15 00 0d 05 00 00 00 00 00 00 00 00’},

– Turn ON Xbox One and wait 8 seconds
{delay = 8, code = ‘0000 006D 0000 0024 0151 00A7 0016 0015 0017 0014 0016 0015 0015 0016 0015 0016 0015 0016 0015 0016 0015 003F 0016 0014 0017 0014 0016 0016 0015 003F 0016 003F 0016 0015 0016 003F 0015 0040 0015 0016 0015 0040 0015 0014 0016 003F 0016 0015 0016 003F 0018 0013 0016 0015 0016 003F 0015 0016 0015 0040 0015 0016 0015 003E 0016 0016 0016 003F 0016 003F 0016 066C 0151 0055 0015 0ED8’},

– Change TV to live tv (to reset input selection list to consistent selection) and wait 1 second
{delay = 1, code = resetInputSelList},

– Change TV to live tv (to reset input selection list to consistent selection) and wait 1 second
{delay = 1, code = resetInputSelList},

– Change input selection to HDMI 3 (8 input button press) and wait 1 second
{delay = 1, code = input8ButtonPress},

– Change input selection to HDMI 3 (8 input button press) and wait 1 second
{delay = 1, code = input8ButtonPress},

– Change input selection to HDMI 3 (8 input button press) and wait 1 second
{delay = 1, code = input8ButtonPress},

– Change input selection to HDMI 3 (8 input button press) and wait 1 second
{delay = 1, code = input8ButtonPress},

– Change input selection to HDMI 3 (8 input button press) and wait 7 seconds
{delay = 7, code = input8ButtonPress},

– Press Xbox green button to select default application (Emby) and wait 1 second before exiting
{delay = 1, code = ‘0000 006D 0000 0024 0151 00A9 0016 0015 0015 0016 0015 0016 0015 0016 0016 0015 0016 0015 0016 0014 0017 003E 0017 0014 0017 0014 0016 0015 0016 003F 0017 003E 0017 0014 0016 003F 0015 0040 0015 0016 0015 0040 0014 003F 0017 0014 0017 0014 0016 003F 0016 003F 0016 0015 0016 003F 0015 0016 0015 0016 0015 0040 0015 003F 0016 0015 0016 0015 0015 003F 0015 066D 0150 0055 0015 0ED8’},

}

local stepNumber = 0

function nextCodeToTransmit()
stepNumber = stepNumber+1
luup.log(‘INC STEP NUMBER’,50)
if (not steps[stepNumber]) then luup.log(‘IR FINISHED’,50) return end
luup.log(steps[stepNumber].code,50)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = steps[stepNumber].code}, IRDeviceID)
luup.log(‘CALL DELAY’,50)
luup.call_delay(‘nextCodeToTransmit’, steps[stepNumber].delay)
end

nextCodeToTransmit()

return true
[/code][/quote]
Kind of works except for the Input selection change 8 button press need to be 600ms, is it possible to incorporate luup.sleep (600) with the remainder of your luup delay() code?

I have attempted the following but I get failed to test code:

– Turn TV ON
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 50 00 00 01 29 91 15 10 15 10 15 10 15 10 15 10 15 0f 16 34 15 10 15 34 16 34 15 35 15 34 15 35 15 34 16 0f 16 34 15 10 15 34 16 0f 16 0f 16 34 15 10 15 10 15 10 15 34 16 0f 16 34 15 34 16 10 15 34 15 35 15 34 15 00 05 16 00 01 28 47 15 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (1000)
–Turn ON Xbox One
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘0000 006D 0000 0024 0151 00A7 0016 0015 0017 0014 0016 0015 0015 0016 0015 0016 0015 0016 0015 0016 0015 003F 0016 0014 0017 0014 0016 0016 0015 003F 0016 003F 0016 0015 0016 003F 0015 0040 0015 0016 0015 0040 0015 0014 0016 003F 0016 0015 0016 003F 0018 0013 0016 0015 0016 003F 0015 0016 0015 0040 0015 0016 0015 003E 0016 0016 0016 003F 0016 003F 0016 066C 0151 0055 0015 0ED8’}, 531)
luup.delay (8)
–Wait 8 seconds then change TV to live tv (to reset input selection list to consistent selection)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 78 00 00 01 28 91 15 10 15 10 15 10 15 10 15 10 15 10 15 34 15 10 15 35 17 32 16 34 15 35 15 34 15 35 15 10 15 34 15 10 15 10 15 35 15 10 15 10 15 10 15 34 15 10 15 35 15 34 15 10 15 35 15 34 15 35 15 10 15 34 15 00 05 16 00 01 29 47 15 00 0c 44 00 01 28 47 17 00 0c 42 00 01 29 47 16 00 0c 43 00 01 28 47 15 00 0c 44 00 01 2a 45 18 00 0c 42 00 01 2a 45 15 00 0d 05’}, 531)
luup.sleep (500)
----Change TV to live tv (to reset input selection list to consistent selection)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 78 00 00 01 28 91 15 10 15 10 15 10 15 10 15 10 15 10 15 34 15 10 15 35 17 32 16 34 15 35 15 34 15 35 15 10 15 34 15 10 15 10 15 35 15 10 15 10 15 10 15 34 15 10 15 35 15 34 15 10 15 35 15 34 15 35 15 10 15 34 15 00 05 16 00 01 29 47 15 00 0c 44 00 01 28 47 17 00 0c 42 00 01 29 47 16 00 0c 43 00 01 28 47 15 00 0c 44 00 01 2a 45 18 00 0c 42 00 01 2a 45 15 00 0d 05’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.sleep (600)
–Change input selection to HDMI 3 (8 input button press)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘26 00 b0 00 00 01 29 91 15 10 15 10 15 10 15 10 15 0f 15 10 15 35 15 10 15 34 16 34 15 35 15 34 15 35 15 34 15 10 15 35 15 10 15 10 15 34 15 10 15 35 15 10 15 10 15 10 15 34 15 35 15 10 15 34 15 10 15 35 15 35 15 34 15 00 05 15 00 01 29 47 15 00 0c 45 00 01 29 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 28 47 15 00 0c 46 00 01 29 46 16 00 0d 05 00 00 00 00 00 00 00 00’}, 531)
luup.delay (7)
–Wait 7 seconds then Press Xbox green button to select default application (Emby)
luup.call_action(‘urn:a-lurker-com:serviceId:IrTransmitter1’, ‘SendCode’, {Code = ‘0000 006D 0000 0024 0151 00A9 0016 0015 0015 0016 0015 0016 0015 0016 0016 0015 0016 0015 0016 0014 0017 003E 0017 0014 0017 0014 0016 0015 0016 003F 0017 003E 0017 0014 0016 003F 0015 0040 0015 0016 0015 0040 0014 003F 0017 0014 0017 0014 0016 003F 0016 003F 0016 0015 0016 003F 0015 0016 0015 0016 0015 0040 0015 003F 0016 0015 0016 0015 0015 003F 0015 066D 0150 0055 0015 0ED8’}, 531)

hi!!!
i was follow the step by step instructions there is in this threat several times, but I can?t make it work. i have this error:
Fail to load implementation file D_BroadLink_Mk2_1.xml

can anyone help me?

hii ,

Newbie here . i have copied a RF switch via econtrol . As i prettify my JsonIRcode on jsonlint.com . i cant help but notice the length of my RF code is somewhat longer than expected .

[-78, 1, -124, 3, 7, 10, 7, 4, 13, 10, 7, 4, 8, 4, 13, 10, 13, 5, 7, 4, 7, 4, 8, 4, 7, 4, 7, 4, 7, 10, 8, 4, 7, 4, 8, 4, 8, 4, 13, 9, 8, 4, 7, 4, 13, 4, 7, 10, 8, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 7, 4, 13, 10, 13, 5, 7, 4, 7, 4, 7, 4, 8, 4, 7, 4, 7, 10, 7, 4, 8, 4, 7, 4, 8, 4, 13, 10, 7, 4, 8, 4, 13, 4, 7, 10, 7, 4, 8, 4, 13, 9, 13, 4, 7, 10, 8, 4, 7, 5, 23, 5, 7, 9, 8, 4, 13, 10, 7, 4, 7, 4, 13, 10, 13, 4, 7, 5, 7, 4, 7, 4, 7, 5, 7, 4, 7, 10, 7, 4, 8, 4, 7, 4, 7, 4, 13, 10, 7, 4, 8, 4, 13, 5, 7, 10, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 5, 6, 10, 8, 4, 12, 10, 8, 4, 7, 4, 13, 9, 14, 4, 7, 4, 8, 4, 7, 4, 7, 4, 7, 5, 7, 9, 8, 4, 7, 5, 7, 4, 7, 4, 13, 10, 7, 4, 7, 4, 13, 5, 6, 11, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 8, 4, 12, 10, 13, 5, 7, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 10, 8, 4, 7, 4, 8, 4, 8, 4, 13, 9, 8, 4, 7, 4, 13, 4, 7, 10, 8, 4, 7, 4, 13, 10, 12, 5, 7, 9, 8, 4, 7, 5, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 7, 4, 13, 10, 13, 5, 6, 5, 7, 4, 7, 4, 7, 5, 7, 4, 7, 10, 7, 4, 8, 4, 7, 4, 7, 4, 13, 10, 7, 4, 8, 4, 12, 5, 7, 10, 7, 4, 8, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 5, 23, 4, 8, 10, 7, 4, 12, 10, 8, 4, 7, 4, 13, 9, 14, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 5, 7, 9, 8, 4, 7, 4, 8, 4, 7, 4, 13, 10, 7, 4, 7, 4, 13, 4, 8, 10, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 4, 8, 9, 8, 4, 13, 10, 8, 4, 8, 4, 13, 9, 14, 4, 7, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 10, 8, 4, 7, 4, 8, 4, 8, 4, 13, 9, 8, 4, 7, 4, 13, 4, 7, 10, 8, 4, 7, 4, 13, 9, 14, 4, 6, 11, 7, 4, 7, 5, 23, 5, 7, 10, 7, 4, 13, 10, 7, 4, 8, 4, 13, 10, 13, 5, 6, 5, 7, 4, 7, 5, 6, 5, 7, 4, 7, 10, 7, 4, 8, 4, 7, 4, 7, 4, 13, 10, 7, 5, 7, 4, 13, 5, 7, 10, 7, 4, 8, 4, 13, 10, 13, 4, 7, 10, 8, 4, 8, 5, 23, 5, 7, 9, 8, 4, 13, 9, 8, 4, 7, 4, 13, 9, 14, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 4, 8, 9, 8, 4, 7, 4, 8, 4, 7, 4, 13, 10, 7, 4, 7, 4, 13, 4, 7, 11, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 8, 4, 13, 10, 13, 4, 8, 4, 7, 5, 6, 5, 7, 4, 7, 4, 7, 10, 8, 4, 8, 4, 7, 4, 8, 4, 12, 10, 8, 4, 7, 4, 12, 5, 7, 10, 7, 5, 7, 4, 12, 10, 13, 5, 6, 10, 8, 4, 7, 5, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 7, 4, 13, 10, 13, 4, 7, 5, 7, 4, 7, 4, 7, 5, 6, 5, 7, 10, 7, 4, 8, 4, 7, 4, 8, 4, 13, 10, 7, 4, 8, 4, 12, 4, 8, 10, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 5, 23, 5, 6, 10, 7, 5, 12, 10, 7, 5, 7, 4, 13, 9, 14, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 5, 7, 9, 7, 5, 7, 4, 8, 4, 7, 4, 13, 10, 7, 4, 7, 4, 13, 4, 7, 11, 7, 4, 7, 4, 13, 10, 13, 4, 7, 10, 7, 4, 8, 4, 24, 4, 7, 10, 7, 4, 13, 10, 7, 4, 8, 4, 13, 10, 13, 5, 7, 4, 7, 4, 7, 5, 7, 4, 7, 4, 7, 10, 8, 4, 8, 4, 8, 4, 8, 4, 13, 9, 8, 4, 8, 4, 13, 4, 7, 10, 7, 4, 8, 4, 13, 9, 13, 4, 7, 10, 8, 4, 7, 5, 23, 5, 7, 10, 7, 4, 13, 9, 8, 4, 7, 4, 13, 10, 13, 4, 8, 4, 7, 4, 7, 4, 7, 5, 7, 4, 7, 10, 7, 4, 7, 5, 7, 4, 7, 4, 13, 10, 7, 4, 8, 4, 12, 5, 7, 10, 7, 4, 7, 5, 12, 10, 13, 4, 7, 10, 7, 4, 8, 0, 5, -36, 0, 0, 0, 0]

Can anyone advise if i am doing it correctly ? This is the ON button for a Rf433 switch remote . Have also tested on econtrol after copying the RF to be functioning .

OK after getting the code extracted like you have, you need to then run it through this code to make the correct hex. I should incorporate this into the plugin one day to make life easier:

See conversion code above

That gives you this:

b2 01 84 03 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 08 04 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 07 04 07 04 07 04 08 04 07 04 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05 07 09 08 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0d 05 07 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 05 06 0a 08 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 08 04 07 04 07 04 07 05 07 09 08 04 07 05 07 04 07 04 0d 0a 07 04 07 04 0d 05 06 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0c 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0c 05 07 09 08 04 07 05 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 06 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 07 04 08 05 17 04 08 0a 07 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 08 09 08 04 0d 0a 08 04 08 04 0d 09 0e 04 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 09 0e 04 06 0b 07 04 07 05 17 05 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 06 05 07 04 07 05 06 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 05 07 04 0d 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 08 04 08 05 17 05 07 09 08 04 0d 09 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 04 08 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 04 08 04 07 05 06 05 07 04 07 04 07 0a 08 04 08 04 07 04 08 04 0c 0a 08 04 07 04 0c 05 07 0a 07 05 07 04 0c 0a 0d 05 06 0a 08 04 07 05 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 06 05 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0c 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 05 17 05 06 0a 07 05 0c 0a 07 05 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 07 05 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 08 04 08 04 08 04 0d 09 08 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05 07 0a 07 04 0d 09 08 04 07 04 0d 0a 0d 04 08 04 07 04 07 04 07 05 07 04 07 0a 07 04 07 05 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 07 05 0c 0a 0d 04 07 0a 07 04 08 00 05 dc 00 00 00 00

You should be able to send the code and have the device do what it’s meant to do:

local deviceID = device_id_of_the_RF_sender_goes_here

local myCode = 'b2 01 84 03 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 08 04 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 07 04 07 04 07 04 08 04 07 04 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05 07 09 08 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0d 05 07 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 05 06 0a 08 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 08 04 07 04 07 04 07 05 07 09 08 04 07 05 07 04 07 04 0d 0a 07 04 07 04 0d 05 06 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0c 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0c 05 07 09 08 04 07 05 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 06 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 07 04 08 05 17 04 08 0a 07 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 08 09 08 04 0d 0a 08 04 08 04 0d 09 0e 04 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 09 0e 04 06 0b 07 04 07 05 17 05 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 06 05 07 04 07 05 06 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 05 07 04 0d 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 08 04 08 05 17 05 07 09 08 04 0d 09 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 04 08 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 04 08 04 07 05 06 05 07 04 07 04 07 0a 08 04 08 04 07 04 08 04 0c 0a 08 04 07 04 0c 05 07 0a 07 05 07 04 0c 0a 0d 05 06 0a 08 04 07 05 18 04 07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 06 05 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0c 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 05 17 05 06 0a 07 05 0c 0a 07 05 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 07 05 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04 07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 08 04 08 04 08 04 0d 09 08 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05 07 0a 07 04 0d 09 08 04 07 04 0d 0a 0d 04 08 04 07 04 07 04 07 05 07 04 07 0a 07 04 07 05 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 07 05 0c 0a 0d 04 07 0a 07 04 08 00 05 dc 00 00 00 00'
 
luup.call_action('urn:a-lurker-com:serviceId:IrTransmitter1', 'SendCode', {Code = myCode}, deviceID)

return true

Looking at the code we can break it up into sections, where the preamble:
b2 01 84 03 =

b2 = a 433 MHz code
01 = repeat once all the stuff once, which already contains repeats of the code
84 = lsb length
03 = msb length

So the number of bytes to send, excluding the trailing 00’s and the preamble = 0384h = 900d bytes long

In the below we have 15 rows, each containing the same RF code, each being 30 bytes long = 900d bytes total

Note that each code ends in either the mark/space pair ‘18 04’ or ‘17 05’. Same thing with a bit of timing jitter.
The last one ends in ‘05 dc’

b2 01 84 03 
07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 08 04 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04
07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 07 04 07 04 07 04 08 04 07 04 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05
07 09 08 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0d 05 07 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 05
06 0a 08 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 08 04 07 04 07 04 07 05 07 09 08 04 07 05 07 04 07 04 0d 0a 07 04 07 04 0d 05 06 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04
07 0a 07 04 0d 0a 07 04 08 04 0c 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 0a 0c 05 07 09 08 04 07 05 18 04
07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 05 06 05 07 04 07 04 07 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 07 04 08 05 17 04
08 0a 07 04 0c 0a 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04
08 09 08 04 0d 0a 08 04 08 04 0d 09 0e 04 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 07 04 08 04 08 04 0d 09 08 04 07 04 0d 04 07 0a 08 04 07 04 0d 09 0e 04 06 0b 07 04 07 05 17 05
07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 06 05 07 04 07 05 06 05 07 04 07 0a 07 04 08 04 07 04 07 04 0d 0a 07 05 07 04 0d 05 07 0a 07 04 08 04 0d 0a 0d 04 07 0a 08 04 08 05 17 05
07 09 08 04 0d 09 08 04 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 04 08 09 08 04 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04
07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 04 08 04 07 05 06 05 07 04 07 04 07 0a 08 04 08 04 07 04 08 04 0c 0a 08 04 07 04 0c 05 07 0a 07 05 07 04 0c 0a 0d 05 06 0a 08 04 07 05 18 04
07 0a 07 04 0d 0a 07 04 07 04 0d 0a 0d 04 07 05 07 04 07 04 07 05 06 05 07 0a 07 04 08 04 07 04 08 04 0d 0a 07 04 08 04 0c 04 08 0a 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 05 17 05
06 0a 07 05 0c 0a 07 05 07 04 0d 09 0e 04 07 04 07 05 07 04 07 04 07 05 07 09 07 05 07 04 08 04 07 04 0d 0a 07 04 07 04 0d 04 07 0b 07 04 07 04 0d 0a 0d 04 07 0a 07 04 08 04 18 04
07 0a 07 04 0d 0a 07 04 08 04 0d 0a 0d 05 07 04 07 04 07 05 07 04 07 04 07 0a 08 04 08 04 08 04 08 04 0d 09 08 04 08 04 0d 04 07 0a 07 04 08 04 0d 09 0d 04 07 0a 08 04 07 05 17 05
07 0a 07 04 0d 09 08 04 07 04 0d 0a 0d 04 08 04 07 04 07 04 07 05 07 04 07 0a 07 04 07 05 07 04 07 04 0d 0a 07 04 08 04 0c 05 07 0a 07 04 07 05 0c 0a 0d 04 07 0a 07 04 08 00 05 dc
00 00 00 00

I try to avoid discussing codes as there are so many variables. But to try reducing the code length you could keep removing the repeated code (ie each row above), one by one, till it stops working. The length in the preamble needs to be reduced by 30 mark/space pairs = 60 dec, each time a row is removed but expressed in hex. eg

0384hex = 900dec - (30*2)dec = 840dec = 348hex

Don’t remove the last code, as it is a little different, in that it ends with ‘05 dc’

Also you could try setting the repeat count from ‘01’ to ‘00’, as the “macro” repeat may no be needed.

Generally ‘Learnt’ codes nearly always contain a lot of repeats. Sort of depends how long you hold the remote button down. Whether you can be bothered trying to pare back the code to shorter lengths or not - your call.

The above also assumes I’ve sliced & diced the codes up correctly. Hope this makes sense and good luck as I can’t test any of the above.

a-lurker ,

i owe you a drink it really works !!!
Your a genius .

[quote=“a-lurker”]@PrincessCleavage. Note this approach is only required if the discovery process doesn’t work. If I get some time I might try and make this process a little easier. Please follow the instructions as outlined here:

http://forum.micasaverde.com/index.php/topic,53871.msg375134.html#msg375134

Your final edit can be validated here:

Try to validate your own version in your post above. And noting the values you have for blInternalId & blKey are not as I described. Just change the mac address and the ip address - nothing else - in the json code below:

{ "3d:8e:43:43:ea:3d": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 1" }, "3d:8e:43:43:ea:3e": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 2" } }[/quote]
Hi again a-lurker
I now have a third RM mini that I would like to add to Vera,
Would you please be able to help with the correct code to manually add three RM mini ?

Mmmm - I really should make this easier one day :slight_smile:

Just change the mac address and the ip address - nothing else - in the json code below - for each of the three devices for the variable ‘BroadLinkDevices’, then restart the Luup engine:

{ "3d:8e:43:43:ea:3d": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 1" }, "3d:8e:43:43:ea:3e": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 2" }, "3d:8e:43:43:ea:3f": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 3" } }

Let us know what you have going with the plugin.

[quote author=a-lurker link=topic=53871.msg1#msg1 date=1529496907]
Mmmm - I really should make this easier one day :blush:

Just change the mac address and the ip address - nothing else - in the json code below - for each of the three devices for the variable ‘BroadLinkDevices’, then restart the Luup engine:

{ "3d:8e:43:43:ea:3d": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 1" }, "3d:8e:43:43:ea:3e": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 2" }, "3d:8e:43:43:ea:3f": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10039, "blIp": "192.168.1.95", "blDesc": "RM Mini 3" } }

Let us know what you have going with the plugin.
[/
Seems I have lost functionality too two units, may have to remove the from device and reads all three.
I have one unit controlling Roomba vacuum, one unit in the bedroom that turns on Xbox one,tv and changed to hdmi port 3 then starts ?Emby? application on Xbox one and can also turn off Xbox one and tv and the third unit is 100,000mAh solar powered battery with USB outputs that sits buried in the front garden, it has an rm mini and a ?moon? replica ball shaped led light that sits on top of thin clear perspex plastic (gives the impression of floating moon) that turns on when car enters the drive way or motion passes by ( motion sensor ) all connected to Vera.
Edit: after removing the units and re-adding them using the supplied code I now have 3 working RM mini 3 devices.

Thanks!

Thanks a-lurker, handy little plugin. A couple hours of stuffing around last night and I had my blinds being controlled by scenes. Only took so long because the RM Pro instructions had me using the IHC app not e-control.

Seem to be having an odd issue with authentication (i think).

For the last two nights, my blinds haven’t been opening in the morning, looking at the configuration of this plugin it reverts back to:

{ "34:ea:34:8e:f8:4f": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10119, "blIp": "10.0.0.128", "blDesc": "RM2 Pro Plus 2" } }

After a combination of loop.reloads() it seems to bring it back up again:

{ "34:ea:34:8e:f8:4f": { "blInternalId": "00000002", "blKey": "7075576770755767dd5b444614cfba35", "blDeviceType": 10119, "blIp": "10.0.0.128", "blDesc": "RM2 Pro Plus 2" } }

Not sure what’s causing it to happen, it worked OK for the first few days. I’ve moved the location of the RM Pro as i thought maybe it was dropping connection but it made no difference.

I can’t see anything in today’s log file so it must have occurred last night before the logs rotated out, the only thing i can see in today’s log is the successful update when it did authenticate.

Mmmm - yep, bit of a mystery. I have had my RM Pro lose connection, which required a Luup engine restart. The RM Pro is however, on the edge of my WiFi range.

Have you got a Static or Reserved IP set up for the RM PRo? It looks like you have. And noting that “blKey”: “097628343fe99e23765c1513accf8b02” is the default value used before Authentication, so yes it looks like it’s not always authenticating. Really need the logs but clearly the exact moment is hard to catch. There is a Debug variable that can be set to 1 for more logging detail. The temperature variable fails to update if the WiFi connection is lost. Best to set the Debug variable to back to 0 when finished.

I’ve set the debug variable to 1 and I’ll keep an eye on it, it hasn’t dropped out again tonight (11PM now). Yes, reserved an IP in DHCP for it.

The last few nights I have been writing quite a lot of code myself till quite late so honestly it could be me stuffing it up. I have been doing a lot of luup.reload()'s for the last two nights until around 2.30AM.

Just looking at the last half hour of logs and i can see it struggled to get the temperature:

07/31/18 22:35:10.100 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: device is not a sensor or if a sensor; is not coded for <0x749b9520> 50 07/31/18 22:35:10.101 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: veraId: 55, blId: 34:ea:34:8e:f8:4f, altId: 34:ea:34:8e:f8:4f_ir <0x749b9520> 50 07/31/18 22:35:10.101 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: urn:schemas-micasaverde-com:device:IrTransmitter:1 <0x749b9520> 50 07/31/18 22:35:10.103 luup_log:54: BroadLink_Mk2 debug: Header to be sent follows (ex checksum): 50 07/31/18 22:35:10.104 luup_log:54: BroadLink_Mk2 debug: Payload to be sent follows (unencrypted): 50 07/31/18 22:35:10.131 luup_log:54: BroadLink_Mk2 debug: Sending: Get temperature: txMsg length = 72 <0x749b9520> 50 07/31/18 22:35:11.132 luup_log:54: BroadLink_Mk2 debug: RX of Get temperature msg response from 10.0.0.128 failed: timeout <0x749b9520> 50 07/31/18 22:35:11.132 luup_log:54: BroadLink_Mk2 debug: Lounge Room: failed to get temperature. Is the device offline? <0x749b9520> 50 07/31/18 22:40:11.081 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: device is not a sensor or if a sensor; is not coded for <0x749b9520> 50 07/31/18 22:40:11.082 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: veraId: 55, blId: 34:ea:34:8e:f8:4f, altId: 34:ea:34:8e:f8:4f_ir <0x749b9520> 50 07/31/18 22:40:11.082 luup_log:54: BroadLink_Mk2 debug: RM2 Pro Plus 2 - IR 1: urn:schemas-micasaverde-com:device:IrTransmitter:1 <0x749b9520> 50 07/31/18 22:40:11.084 luup_log:54: BroadLink_Mk2 debug: Header to be sent follows (ex checksum): 50 07/31/18 22:40:11.085 luup_log:54: BroadLink_Mk2 debug: Payload to be sent follows (unencrypted): 50 07/31/18 22:40:11.113 luup_log:54: BroadLink_Mk2 debug: Sending: Get temperature: txMsg length = 72 <0x749b9520> 50 07/31/18 22:40:11.151 luup_log:54: BroadLink_Mk2 debug: Broadlink device: 2787 replied with: 03ee <0x749b9520> 50 07/31/18 22:40:11.184 luup_log:54: BroadLink_Mk2 debug: Received: Get temperature: rxMsg length = 392 decrypted msg follows: 50 07/31/18 22:40:11.194 luup_log:54: BroadLink_Mk2 debug: Rx'ed payload follows: 50 07/31/18 22:40:11.195 luup_log:54: BroadLink_Mk2 debug: 21.5 --> CurrentTemperature <0x749b9520>

I also happen to leave it pinging the device for the last 12 or so hours.

Ping statistics for 10.0.0.128:
    Packets: Sent = 35532, Received = 35097, Lost = 435 (1% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 1033ms, Average = 30ms

Not a lot of packet loss, but some.

I didn’t do anything with the VERA last night and the blinds opened this morning and closed this afternoon, i even adjusted a blind from my phone a little later in the evening but i just tried then and it’s dropped again.

{ "34:ea:34:8e:f8:4f": { "blInternalId": "????", "blKey": "097628343fe99e23765c1513accf8b02", "blDeviceType": 10119, "blIp": "10.0.0.128", "blDesc": "RM2 Pro Plus 2" } }

Can’t see anything in the logs because I’m only seeing about 30 minutes of logs in LuaUPnP.log and unfortunately it was before that. Did a few luup.relaods() and it wouldn’t come back up on its own so I’ve moved the BroadLink closer to my Wifi AP (about 3ft away) will see if it lasts longer than 24 hours this time around.

Hi. How can I capture IR codes? I’m a non-technical person, it took me a few hours to install the plug-in. I had a SQ Blaster plus that broke down. There it was simple, I had a software to capture IR codes.

@a-lurker
I don’t suppose you could make a video on this?

I am able to add the Broadlink, however I cannot get the temp return a value, so not entirely sure the device is correct in the code for the one I have. I have a Broadlink RM3 Pro in the UK with 433mhz.

After some tinkering I managed to get this to work - awesome stuff @a-lurker
Will make a video of this and share at some point over the next couple of weeks. Happy to help if anyone is stuck.

Hello

I succeed after some errement :slight_smile:
I can see my rm mini in the list of device

But (unfortunately), i can’t see it in the list of device during the creation of a scene

Any idea?

thank you

Hi all, hi a-lurker,
I Just tryed to ad my brand new Broadlink Pro+, but logo say:

50 12/26/18 0:45:09.349 luup_log:13: BroadLink_Mk2 debug: The BroadLink device at IP address 192.168.xxx.yy and of type 0x27a9 is not known to this plugin <0x77494520>

Anything I can do by myself?

Meantime I wish you a Merry Xmas

Device type 0x27a9 (10153dec) appears to be an updated version of the RMPRO Plus (type “blDeviceType”: 10119dec = 0x2787)

So in the L_BroadLink_MK2_1.lua file try replacing the text “0x2787” with your new code “0x27a9”. The replacement needs to be done only in two places in the file. Upload the file and restart all and see if it works.

In the long term I will need to add the new device to the code in github.

It’s been a year since I did this plugin so I’m a bit rusty on it. Hope this helps.

Thx mate, I’ll give it a try.
Your plugin still rocks.

Regards