homebridge-gpio-device
homebridge-gpio-device copied to clipboard
Automation for Sensor does not work
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).