get device

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

get device v15.0.0

Returns one device: its name, room, capabilities and current state.

In pins 1 + flow
  • flow v15.0.0
    flow
  • device v15.0.0
    value

    Device id, native address, or exact device name. Leave empty to use the device picked on the block.

Out pins 4 + flow
  • flow v15.0.0
    flow
  • found v15.0.0
    condition
  • device v15.0.0
    object
  • state v15.0.0
    object

    Current value per capability, e.g. {occupancy: true, battery: 87}.

  • available v15.0.0
    condition

Looks a device up by id, native address or exact name. `found` is false rather than erroring when there is no match, so a flow can handle a missing device without an error branch.

zigbee
zwave
matter
thread
hue
smart home

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

Studio canvas example for the get device block: typical wiring for get device.

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