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

Automation for Sensor does not work

Open pc-bastler opened this issue 3 years ago • 0 comments

Hi,

I have the following issue:

I created a contact sensor in HomeBridge using GPIODevice. It shows up correctly on the Home app, it also changes the state from closed to open and vice versa when I pull up/down the configured pin. Also notifications work fine.

But if I configure any automation using this Sensor, the automation is not triggered.

I want to switch a plug (native HomeKit, Merross) on opening the sensor, and turn it off on closing the sensor. When I test the automation via the button in the Home app, it works as desired.

The config for the sensor is as followed:

                    "accessory": "GPIODevice",
                    "name": "OctoPrint PSU Control",
                    "type": "ContactSensor",
                    "pin": 21,
                    "inverted": true

The trigger signal comes from another Raspberry PI GPIO out (of course both PIs connected to the same PSU) with a direct connection to its GPIO-Out-Pin (I know this is not optimal, but it's working for now and a better solution is planned).

pc-bastler avatar Jan 25 '22 20:01 pc-bastler