Class: PlusMinusControl


new PlusMinusControl(home, id, options)

Construct a new Plus/Minus control.
Name Type Description
home Home the home that this control belongs to.
id String the id of this control. Updates will be POSTed to home.control_endpoint/id
options Object options for this control:
  • name - String, required - friendly name for this control
  • min_value - float, required - minimum value.
  • max_value - float, required - maximum value.
  • step - float, required - amount to add / subtract when clicking the + / - buttons.
  • current - float, required - initial value.