Skip to content

[SENSOR] Build occupancy sensor with drift simulation #8

Closed
ezehf2 opened this issue Mar 5, 2026 · 0 comments
Closed

[SENSOR] Build occupancy sensor with drift simulation #8

ezehf2 opened this issue Mar 5, 2026 · 0 comments
Assignees

Comments

@ezehf2
Copy link
Owner

ezehf2 commented Mar 5, 2026

Create occupancy_sensor.py extending the sensor base class. Occupancy values should be whole numbers between 0 and the room's maximum capacity. Simulate gradual change — people arriving and leaving in small numbers rather than jumping between extremes. The room capacity should be passed in as a parameter when the sensor is created so it works for different room sizes. Include a short manual test printing five consecutive readings.

Sign in to join this conversation on GitHub.
Labels
None yet
Development

No branches or pull requests

2 participants