Closed quantenschaum closed 9 years ago
Use switch2 - which is the inversion of switch3
Thanks, it works.
For anyone migrating from pilight, the 5 bit house and unit codes in pilight are bitwise inverted. This means pilight
"sw1": {
"name": "Switch A",
"protocol": [ "elro_hc" ],
"id": [{
"systemcode": 10,
"unitcode": 15
}],
"state": "off"
},
becomes pimatic-homeduino
{
"id": "pilight-living-sw1",
"name": "Switch A",
"class": "HomeduinoRFSwitch",
"protocols": [
{
"name": "switch2",
"options": {
"houseCode": 21,
"unitCode": 16
}
}
]
}
The 10 = 0b01010
becomes 0b10101 = 21
and 15 = 0b01111
becomes 0b10000 = 16
.
Oh, interesting. I think we should put a side note into the README. I'll take an action on this.
I just switched from pilight to homeduino using the gpio driver. My pimatic config contains
It works well, but on and off state of the switch is inverted.
Great plugin, thank you.