dubocr / homebridge-gpio-device

Homebridge GPIO device expose several HomeKit accessories interacting with GPIO
Apache License 2.0
66 stars 20 forks source link

Pin numbering for accessories using BCM pin numbers? #105

Open d0n13 opened 3 years ago

d0n13 commented 3 years ago

The latest version of this plugin (0.4.7) has started using physical PIN numbers?

I was using PIN number 0 before upgrading the plugin on homebridge v1.1.7 but now have to use 17 instead which is the BCM PIN number. Was this intentional?

"accessories": [
        {
            "accessory": "GPIODevice",
            "name": "Light",
            "type": "Lightbulb",
            "pin": 17  <---- Was 0 
        }
    ]
coshy81 commented 3 years ago

Hi there, I can also confirm that the PIN allocations for the GPIO has changed from using the wPI number to the BCM number.

{ "accessory": "GPIODevice", "name": "Gate", "type": "GarageDoorOpener", "pins": [ 27, (was Pin 2..) 22 (was Pin 3..) ], "openingDuration": 15, "closingDuration": 15 }

toshibochan commented 3 years ago

initialstate not working for me. Anyone using initialstate to 1?