var msglist = [];
switch (msg.payload)
{
case '595D12' : //Bench 3 pack 1 btn 1
var commandstorun = {
0:{topic:"cmnd/sonoff03/Power",payload:"toggle", desc:"Bench Lights"},
};
break;
case '595D18' : //Bench 3 pack 1 btn 2
var commandstorun = {
0:{topic:"cmnd/sonoff02/Power",payload:"toggle", desc:"Desk Fan"},
};
break;
case '595D14' : //Bench 3 pack 1 btn 3
var commandstorun = {
0:{topic:"cmnd/sonoff01/Power",payload:"toggle", desc:"Basement Fan"},
};
break;
case 'D0C062' : //Bench 3 pack 2 btn 1
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"off", desc:"Basement Kiosk Off"},
};
break;
case 'D0C068' : //Bench 3 pack 2 btn 2
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"hassiomonitor", desc:"Basement Kiosk Hassio"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'D0C064' : //Bench 3 pack 2 btn 3
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueiris", desc:"Basement Kiosk Blue Iris"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D448' : //Bench Kiosk Blueiris All - From Desk RF remote btn 1
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueiris", desc:"Basement Kiosk Blueiris All"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D44C' : //Bench Kiosk BlueIris Courtyard - From Desk RF remote btn 2
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueiriscourtyard", desc:"Basement Kiosk Blue Iris Courtyard"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D444' : //Bench Kiosk Blueiris Livingspace - From Desk RF remote btn 3
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueirislivingspace", desc:"Basement Kiosk Blueiris Livingspace"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D449' : //Bench Kiosk BlueIris Inside - From Desk RF remote btn 4
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueirisinside", desc:"Basement Kiosk Blue Iris Inside"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D442' : //Bench Kiosk BlueIris Outside- From Desk RF remote btn 5
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueirisoutside", desc:"Basement Kiosk Blue Iris Outside"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D445' : //Bench Kiosk BlueIris Garage - From Desk RF remote btn 6
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueirisgarage", desc:"Basement Kiosk Blue Iris Garage"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D441' : //Bench Kiosk BlueIris Parking - From Desk RF remote btn 7
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"blueirisparking", desc:"Basement Kiosk BlueIris Parking"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case 'B2D443' : //Bench Kiosk Off - From Desk RF remote btn 8
var commandstorun = {
0:{topic:"/kiosk/bench/commands",payload:"hassiomonitor", desc:"Basement Kiosk Hassiomonitor"},
1:{topic:"/piezo/basement",payload:"beeponce"},
};
break;
case '666558' : //Bedroom Kiosk Blueiris All - From Bedroom RF remote btn 1
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueiris", desc:"Bedroom Kiosk Blueiris All"}
};
break;
case '66655C' : //Bedroom Kiosk Blueiris Livingspace - From Bedroom RF remote btn 2
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueirislivingspace", desc:"Bedroom Kiosk Blueiris Livingspace"}
};
break;
case '666554' : //Bedroom Kiosk Blueiris Courtyard - From Bedroom RF remote btn 3
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueiriscourtyard", desc:"Bedroom Kiosk Blueiris Courtyard"},
};
break;
case '666559' : //Bedroom Kiosk Blueiris Parkingl - From Bedroom RF remote btn 4
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueirisparking", desc:"Bedroom Kiosk Blueiris Parking"}
};
break;
case '666552' : //Bedroom Kiosk Garage - From Bedroom RF remote btn 5
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueirisgarage", desc:"Bedroom Kiosk Garage"},
};
break;
case '666555' : //Bedroom Kiosk Blueiris Inside - From Bedroom RF remote btn 6
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueirisinside", desc:"Bedroom Kiosk Blueiris Inside"}
};
break;
case '666551' : //Bedroom Kiosk Outside - From Bedroom RF remote btn 7
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"blueirisoutside", desc:"Bedroom Kiosk Outside"},
};
break;
case '666553' : //Bedroom Kiosk Off - From Bedroom RF remote btn 8
var commandstorun = {
0:{topic:"/kiosk/bedroom/commands",payload:"off", desc:"Bedroom Kiosk Off"},
};
break;
default:
var commandstorun = {
0:{topic:"/unknown/rfsignal",payload:"Unknown Device", desc:"Unknown RF Device"},
};
break;
}
for (var i in commandstorun) {
msglist.push(commandstorun[i]);
}
return [msglist];