Class: OpenHAB::DSL::Sitemaps::SliderBuilder

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

Overview

Builds a ‘Slider` element

See Also:

Instance Attribute Summary collapse

Attributes inherited from SetpointBuilder

#range, #step

Attributes inherited from WidgetBuilder

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

Instance Method Summary collapse

Methods inherited from WidgetBuilder

#icon_color, #label_color, #value_color, #visibility

Methods included from Core::EntityLookup

#items, #method_missing, #things

Dynamic Method Handling

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

Instance Attribute Details

#frequencyNumeric?

How often to send requests (in seconds)

Returns:



435
436
437
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 435

def frequency
  @frequency
end

#release_only=(value) ⇒ true, ... (writeonly)

Only send the command when the slider is released

Returns:

  • (true, false, nil)


442
443
444
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 442

def release_only=(value)
  @release_only = value
end

#switch=(value) ⇒ true, ... (writeonly)

Note:

This parameter only works on Android

A short press on the item toggles the item on or off

Returns:

  • (true, false, nil)


439
440
441
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 439

def switch=(value)
  @switch = value
end

Instance Method Details

#release_only?true, ...

Only send the command when the slider is released

Returns:

  • (true, false, nil)


467
468
469
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 467

def release_only?
  @release_only
end

#switch?true, ...

Note:

This parameter only works on Android

A short press on the item toggles the item on or off

Returns:

  • (true, false, nil)


462
463
464
# File 'lib/openhab/dsl/sitemaps/builder.rb', line 462

def switch?
  @switch
end