Class: OpenHAB::DSL::Sitemaps::SwitchBuilder

Inherits:
WidgetBuilder show all
Defined in:
lib/openhab/dsl/sitemaps/builder.rb

Overview

Builds a Switch element

Direct Known Subclasses

SelectionBuilder

Instance Attribute Summary collapse

Attributes inherited from WidgetBuilder

#icon, #icon_colors, #item, #label, #label_colors, #value_colors, #visibilities

Method Summary

Methods inherited from WidgetBuilder

#icon_color, #label_color, #value_color, #visibility

Instance Attribute Details

#mappingsHash, ...

Mappings from command to label

Keys can be any command, values are strings. If an array is given, the same value is used for both command and label.



235
236
237
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 235

def mappings
  @mappings
end