dubocr / homebridge-gpio-device

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

how to set active_low to 1? #110

Open toshibochan opened 3 years ago

toshibochan commented 3 years ago

I want to set active_low to 1 but I don't know how. manually change to 1 in /sys/class/gpio/active_low to 1 but always back to 0. please help.

toshibochan commented 3 years ago

this is my config:

        "accessory": "GPIODevice",
        "name": "Kitchen Speaker",
        "type": "Outlet",
        "inverted": "false",
        "initState": "1",
        "pin": 20

but when reboot and Homebridge start the relay turn on. I want relay off when raspberry pi boots. please help

toshibochan commented 3 years ago

active_low showing 0 direction showing out edge showing none value showing 0

FKDW commented 3 years ago

this is my config:

        "accessory": "GPIODevice",
        "name": "Kitchen Speaker",
        "type": "Outlet",
        "inverted": "false",
        "initState": "1",
        "pin": 20

but when reboot and Homebridge start the relay turn on. I want relay off when raspberry pi boots. please help

I need help with this too