I am not able to switch the following SmartPlug via Homeduino and need some advice on how to setup the device.
Using the pocket-sender I get the following values:
ON:
debug [pimatic-homeduino]: switch6: { systemcode: 4, programcode: 0, state: false }
10:23:47debug [pimatic-homeduino]: received: [ 132, 400, 4140 ] 01100110010101100110011001100110011001100110011002
10:23:47debug [pimatic-homeduino]: data: "RF receive 132 400 4140 0 0 0 0 0 01100110010101100110011001100110011001100110011002"
10:23:47debug [pimatic-homeduino]: switch6: { systemcode: 4, programcode: 0, state: false }
10:23:47debug [pimatic-homeduino]: received: [ 104, 136, 396, 4124 ] 12201221121212211221122112211221122112211221122113
10:23:47debug [pimatic-homeduino]: data: "RF receive 136 396 104 4124 0 0 0 0 01120110010101100110011001100110011001100110011003"
OFF:
debug [pimatic-homeduino]: switch6: { systemcode: 4, programcode: 4, state: false }
10:25:00debug [pimatic-homeduino]: received: [ 132, 400, 4136 ] 01100110010101100110011001100101011001100101011002
10:25:00debug [pimatic-homeduino]: data: "RF receive 132 400 4136 0 0 0 0 0 01100110010101100110011001100101011001100101011002"
10:25:00debug [pimatic-homeduino]: switch8: { systemcode: 4, programcode: 'F4', state: false }
10:25:00debug [pimatic-homeduino]: switch6: { systemcode: 4, programcode: 4, state: false }
10:25:00debug [pimatic-homeduino]: received: [ 136, 396, 4120 ] 01100110010101100110011001100101011001100101011002
10:25:00debug [pimatic-homeduino]: data: "RF receive 136 396 4120 0 0 0 0 0 01100110010101100110011001100101011001100101011002"
I tried to set up the following but no joy:
{
"id": "rfSwitch2",
"name": "RF Switch (MBO)",
"class": "HomeduinoRFButtonsDevice",
"buttons": [{
"id": "button1",
"text": "ON",
"protocols": [{
"name": "switch6",
"options": {
"systemcode": 4,
"programcode": 0,
"state": false
}}]
},{
"id": "button2",
"text": "OFF",
"protocols": [{
"name": "switch6",
"options": {
"systemcode": 4,
"programcode": 4,
"state": false
}}]
}
]
}
EDIT: Ideally, I would like to use a Switch device rather than a Buttons device