Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation for Sensor does not work #125

Open
pc-bastler opened this issue Jan 25, 2022 · 0 comments
Open

Automation for Sensor does not work #125

pc-bastler opened this issue Jan 25, 2022 · 0 comments

Comments

@pc-bastler
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant