I wanted to add a new device with switch8
as desired protocol. I am getting an error saying that the programcode should be a number. But the programcode is C3
and not a number
This is from lib-controller.coffee
{
protocol: 'switch8'
pulseLengths: [ 173, 563, 5740],
pulses: [
'01010101010101010110011001100110101001011010010102'
'01010101010101010110011001101010010101010101101002'
],
values: [
{ systemcode: 30, programcode: 'B1', state: false }
{ systemcode: 30, programcode: 'C3', state: true }
]
},
But switch8.coffee
says
return protocolInfo = {
name: 'switch8'
type: 'switch'
values:
systemcode:
type: "number"
programcode:
type: "number"
state:
type: "boolean"