This page is part of archived documentation for openHAB 3.4. Go to the current stable version

# oh-toggle - Toggle

Toggle control, allows to switch on or off

# Configuration

# General

# item Item TEXT item

Item to control

# color Color TEXT

Color of the control (supported values: red, green, blue, pink, yellow, orange, purple, deeppurple, lightblue, teal, lime, deeporange, gray, white, black)

# variable Variable TEXT

Name of the variable to set on input change

# variableKey Variable Key TEXT

Consider the variable value is an object and set the corresponding deep property within that object using a key syntax. Examples: user.name, user[0].address[1].street, [0], [0].label. The inner property and its parent hierarchy will be created if missing.