NestGen2.Motion (nest_gen2 v0.6.6)

Copy Markdown View Source

The backplate's passive-infrared motion sensors (near and far).

:motion events fire when the level reaches the threshold or either sensor flags a detection. Someone walking in is seen from about 4 m.

Summary

Functions

Latest motion level, 0 (nothing moving) to about 10.

Level from which movement counts as motion (default 2).

Functions

level()

@spec level() :: non_neg_integer()

Latest motion level, 0 (nothing moving) to about 10.

set_threshold(level)

@spec set_threshold(pos_integer()) :: :ok

Level from which movement counts as motion (default 2).