homebridge-gpio-device icon indicating copy to clipboard operation
homebridge-gpio-device copied to clipboard

Pin numbering for accessories using BCM pin numbers?

Open d0n13 opened this issue 4 years ago • 2 comments

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 
        }
    ]

d0n13 avatar Jan 11 '21 22:01 d0n13

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 }

coshy81 avatar Jan 28 '21 10:01 coshy81

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

toshibochan avatar Feb 11 '21 19:02 toshibochan