rxseger / homebridge-gpio-cmd

Raspberry Pi GPIO plugin for Homebridge, using /usr/bin/gpio
10 stars 1 forks source link

Swop on and off. #2

Open sparkescreative opened 7 years ago

sparkescreative commented 7 years ago

Hi

I have 4 relay's all sync up with homebridge. Everything is great. I can see it all in Apple's HomeKit on my iPhone.

However - The relays are turned on when I turn them off in HomeKit and they go off when I turn them on in home kit.

Somewhere I need to swop something. Please can somebody help - its driving me nuts!!!

rxseger commented 7 years ago

@sparkescreative I suppose I could add an option for active-low outputs. Can you try this branch: https://github.com/rxseger/homebridge-gpio-cmd/tree/invert (then add "invert": true, to your config)?

kiondi commented 7 years ago

I try to put in the .json file "invert": true for avtive-low outputs but nothings happens, the code: "accessory": "GPIO", "name": "luce", "pin":7, "duration": 400, "invert": true Can you suggest a solution? Regards

ahyattdev commented 5 years ago

Hi @rxseger,

I tested the invert branch and it solves this issue for me. I would love to see it merged in!