Skip to content

Add support for a motion sensor#1

Open
CWood1 wants to merge 1 commit intohackhitchin:mainfrom
CWood1:patch-1
Open

Add support for a motion sensor#1
CWood1 wants to merge 1 commit intohackhitchin:mainfrom
CWood1:patch-1

Conversation

@CWood1
Copy link
Copy Markdown

@CWood1 CWood1 commented Feb 25, 2026

Adds support for a PIR motion sensor, arbitrarily on GPIO 15.

If the PIR detects motion (active high), the countdown timer to turn the AC off is reset. This continues to happen while the PIR continues to detect motion, as a level triggered interrupt.

This means the logic is now: after not detecting motion for an hour, turn the AC off. The net effect is that while people are in the space and actively using it, the likelihood of turning the AC off while someone needs it is substantially reduced, while still realising the benefits of automatically turning the AC off.

Adds support for a PIR motion sensor, arbitrarily on GPIO 15.

If the PIR detects motion (active high), the countdown timer to turn the AC off is reset. This continues to happen while the PIR continues to detect motion, as a level triggered interrupt.

This means the logic is now: after not detecting motion for an hour, turn the AC off. The net effect is that while people are in the space and actively using it, the likelihood of turning the AC off while someone needs it is substantially reduced, while still realising the benefits of automatically turning the AC off.
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

Successfully merging this pull request may close these issues.

1 participant