Skip to content

Button Widget

Igor Gladkov edited this page Jul 11, 2016 · 3 revisions

Configuration

Type
button
Items
Type Element Item Required
default Switch Any Yes
pin (info) Text String No
Default size
1x1
Additional sizes
None

Examples

ON command, no icon
Frame label="All Lights {widget:button}" {
  Switch item=Lights_Ambient mappings=[
    ON="Prepare for movies"
  ]
}

OFF command, no icon
Frame label="All Lights {widget:button}" {
  Switch item=Lights mappings=[
    OFF="Turn off"
  ]
}

ON command, icon
Frame label="TV {widget:button,icon:tv}" {
  Switch item=TV mappings=[
    ON="Turn on"
  ]
}

Custom command, icon
Frame label="TV {widget:button,icon:tv}" {
  Switch item=TV_Channel mappings=[
    56="CNN"
  ]
}

PIN secured
Frame label="All Lights {widget:button}" {
  Switch item=Lights mappings=[
    OFF="Turn off"
  ]
  Text label="{item:pin} [A6xnQhbz4Vx2HuGl4lXwZ5U2I8iziLRFnhP5eNfIRvQ]"
}

Clone this wiki locally