get active sensors

This block is part of the globals group and was last modified in core v15.0.0.

get active sensors v15.0.0

Returns every sensor that is currently triggered: motion present, doors open, leaks found.

In pins 2 + flow
  • flow v15.0.0
    flow
  • sensor type v15.0.0
    value

    Leave empty for any kind of sensor. • Suggestions: occupancy contact water_leak smoke gas vibration

  • room v15.0.0
    value
Out pins 2 + flow
  • flow v15.0.0
    flow
  • devices v15.0.0
    array
  • count v15.0.0
    number

Reads the registry for adopted devices of type sensor whose current state has any sensor capability reading true. A sensor the node has never heard from is EXCLUDED rather than assumed inactive : after a restart this list is empty until devices report, which is honest rather than falsely reassuring.

zigbee
zwave
matter
thread
hue
smart home

A typical wiring for get active sensors: a function trigger starts the flow; the flow out pin feeds debug.

Studio canvas example for the get active sensors block: typical wiring for get active sensors.

Used in these guides

These documentation pages use or explain this block:

Version history

Introduced in v15.0.0.


Back to globals Return to the main group to view all sub-groups Back to home Return to the group to view all blocks within this group