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, #static_icon, #value_colors, #visibilities

Method Summary

Methods inherited from WidgetBuilder

#icon_color, #label_color, #value_color, #visibility

Methods included from Core::EntityLookup

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenHAB::Core::EntityLookup

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.

[View source]

288
289
290
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 288

def mappings
  @mappings
end