Documentation

Button Control

The button control reads digital input and continues to fire events while the state is active.

Overview

The button control is very similar to the switch because it only reads digital on or off. However, the advantage of the button is it will continue to fire events while the state is true.

Configuration

Set the type to button in your control configuration:

JSON
{
  "controls": [
    {
      "pin": 11,
      "type": "button",
      "name": "Manual Override"
    }
  ]
}

Settings

Property Value Description
type button Control type identifier

Returns

Boolean — The button returns a digital true or false value.

Note

Unlike the switch control, the button will continuously fire events as long as the state remains active rather than only on state change.