Skip to content

Search the documentation

Kit
Firmware

MotionSensor

Smart Home

Notices a person or an animal moving nearby. Warm bodies give off infrared light we can’t see, and the sensor reacts when that light moves.

The MotionSensor class is reached through this attribute of home.

Always there.

All the attributes of home are in its table.

True while the sensor sees something moving.

motion_detected() -> bool

Used in examples: Web dashboard, Smart house