Module: OpenHAB::Core
- Defined in:
- lib/openhab/core.rb,
lib/openhab/core/dto.rb,
lib/openhab/core/items.rb,
lib/openhab/core/proxy.rb,
lib/openhab/core/rules.rb,
lib/openhab/core/timer.rb,
lib/openhab/core/types.rb,
lib/openhab/core/events.rb,
lib/openhab/core/things.rb,
lib/openhab/core/actions.rb,
lib/openhab/core/provider.rb,
lib/openhab/core/registry.rb,
lib/openhab/core/dto/thing.rb,
lib/openhab/core/items/item.rb,
lib/openhab/core/lazy_array.rb,
lib/openhab/core/rules/rule.rb,
lib/openhab/core/things/uid.rb,
lib/openhab/core/types/type.rb,
lib/openhab/core/items/proxy.rb,
lib/openhab/core/value_cache.rb,
lib/openhab/core/abstract_uid.rb,
lib/openhab/core/actions/exec.rb,
lib/openhab/core/actions/http.rb,
lib/openhab/core/actions/ping.rb,
lib/openhab/core/emulate_hash.rb,
lib/openhab/core/rules/module.rb,
lib/openhab/core/things/proxy.rb,
lib/openhab/core/things/thing.rb,
lib/openhab/core/actions/audio.rb,
lib/openhab/core/actions/voice.rb,
lib/openhab/core/configuration.rb,
lib/openhab/core/entity_lookup.rb,
lib/openhab/core/items/metadata.rb,
lib/openhab/core/items/provider.rb,
lib/openhab/core/items/registry.rb,
lib/openhab/core/rules/provider.rb,
lib/openhab/core/rules/registry.rb,
lib/openhab/core/things/channel.rb,
lib/openhab/core/types/hsb_type.rb,
lib/openhab/core/types/raw_type.rb,
lib/openhab/core/items/call_item.rb,
lib/openhab/core/items/semantics.rb,
lib/openhab/core/profile_factory.rb,
lib/openhab/core/script_handling.rb,
lib/openhab/core/things/provider.rb,
lib/openhab/core/things/registry.rb,
lib/openhab/core/items/color_item.rb,
lib/openhab/core/items/group_item.rb,
lib/openhab/core/items/image_item.rb,
lib/openhab/core/things/thing_uid.rb,
lib/openhab/core/types/point_type.rb,
lib/openhab/core/actions/ephemeris.rb,
lib/openhab/core/events/item_event.rb,
lib/openhab/core/items/dimmer_item.rb,
lib/openhab/core/items/number_item.rb,
lib/openhab/core/items/persistence.rb,
lib/openhab/core/items/player_item.rb,
lib/openhab/core/items/string_item.rb,
lib/openhab/core/items/switch_item.rb,
lib/openhab/core/sitemaps/provider.rb,
lib/openhab/core/things/thing_type.rb,
lib/openhab/core/types/on_off_type.rb,
lib/openhab/core/types/string_type.rb,
lib/openhab/core/types/time_series.rb,
lib/openhab/core/types/un_def_type.rb,
lib/openhab/core/events/timer_event.rb,
lib/openhab/core/items/contact_item.rb,
lib/openhab/core/items/generic_item.rb,
lib/openhab/core/items/numeric_item.rb,
lib/openhab/core/rules/tagged_array.rb,
lib/openhab/core/things/channel_uid.rb,
lib/openhab/core/types/decimal_type.rb,
lib/openhab/core/types/numeric_type.rb,
lib/openhab/core/types/percent_type.rb,
lib/openhab/core/types/refresh_type.rb,
lib/openhab/core/types/up_down_type.rb,
lib/openhab/core/items/location_item.rb,
lib/openhab/core/items/metadata/hash.rb,
lib/openhab/core/items/state_storage.rb,
lib/openhab/core/things/channel_type.rb,
lib/openhab/core/types/quantity_type.rb,
lib/openhab/core/actions/notification.rb,
lib/openhab/core/items/date_time_item.rb,
lib/openhab/core/items/group_function.rb,
lib/openhab/core/types/date_time_type.rb,
lib/openhab/core/types/stop_move_type.rb,
lib/openhab/core/dto/item_channel_link.rb,
lib/openhab/core/events/abstract_event.rb,
lib/openhab/core/things/links/provider.rb,
lib/openhab/core/things/thing_type_uid.rb,
lib/openhab/core/types/comparable_type.rb,
lib/openhab/core/types/play_pause_type.rb,
lib/openhab/rspec/openhab/core/actions.rb,
lib/openhab/core/actions/transformation.rb,
lib/openhab/core/types/open_closed_type.rb,
lib/openhab/core/types/string_list_type.rb,
lib/openhab/core/events/item_state_event.rb,
lib/openhab/core/events/startlevel_event.rb,
lib/openhab/core/items/metadata/provider.rb,
lib/openhab/core/things/channel_type_uid.rb,
lib/openhab/core/things/profile_callback.rb,
lib/openhab/core/items/item_channel_links.rb,
lib/openhab/core/items/rollershutter_item.rb,
lib/openhab/core/items/semantics/provider.rb,
lib/openhab/core/things/channel_group_uid.rb,
lib/openhab/core/things/item_channel_link.rb,
lib/openhab/core/types/next_previous_type.rb,
lib/openhab/core/events/item_command_event.rb,
lib/openhab/core/items/accepted_data_types.rb,
lib/openhab/core/things/channel_definition.rb,
lib/openhab/core/things/channel_group_type.rb,
lib/openhab/rspec/openhab/core/items/proxy.rb,
lib/openhab/rspec/openhab/core/things/proxy.rb,
lib/openhab/core/items/semantics/semantic_tag.rb,
lib/openhab/core/types/increase_decrease_type.rb,
lib/openhab/core/items/metadata/namespace_hash.rb,
lib/openhab/core/things/channel_group_type_uid.rb,
lib/openhab/core/types/rewind_fastforward_type.rb,
lib/openhab/core/events/channel_triggered_event.rb,
lib/openhab/core/events/thing_status_info_event.rb,
lib/openhab/core/events/item_state_changed_event.rb,
lib/openhab/core/events/item_state_updated_event.rb,
lib/openhab/core/things/channel_group_definition.rb,
lib/openhab/core/things/abstract_description_type.rb,
lib/openhab/core/items/semantics/tag_class_methods.rb,
lib/openhab/core/events/abstract_item_registry_event.rb,
lib/openhab/core/events/abstract_thing_registry_event.rb,
lib/openhab/core/events/item_time_series_updated_event.rb,
lib/openhab/core/events/abstract_item_channel_link_registry_event.rb
Overview
Contains classes and modules that wrap actual openHAB objects
Defined Under Namespace
Modules: Actions, DTO, EmulateHash, EntityLookup, Events, Items, LazyArray, Rules, ScriptHandling, Sitemaps, Things, Types, ValueCache Classes: AbstractUID, Configuration, Provider, Registry, Timer
Constant Summary collapse
- VERSION =
The openHAB Version. >= 3.4.0 is required.
org.openhab.core.OpenHAB.version.freeze
Class Attribute Summary collapse
-
.automation_manager ⇒ org.openhab.core.automation.module.script.rulesupport.shared.ScriptedAutomationManager
readonly
The openHAB Automation manager.
-
.config_folder ⇒ Pathname
readonly
The configuration folder path.
Class Method Summary collapse
-
.import_preset(preset) ⇒ void
Imports a specific script extension preset into the global namespace.
Class Attribute Details
.automation_manager ⇒ org.openhab.core.automation.module.script.rulesupport.shared.ScriptedAutomationManager (readonly)
Returns The openHAB Automation manager.
60 61 62 |
# File 'lib/openhab/core.rb', line 60 def automation_manager $se.get("automationManager") end |
.config_folder ⇒ Pathname (readonly)
Returns The configuration folder path.
51 52 53 |
# File 'lib/openhab/core.rb', line 51 def config_folder Pathname.new(org.openhab.core.OpenHAB.config_folder) end |
Class Method Details
.import_preset(preset) ⇒ void
This method returns an undefined value.
Imports a specific script extension preset into the global namespace
70 71 72 |
# File 'lib/openhab/core.rb', line 70 def import_preset(preset) import_scope_values($se.import_preset(preset)) end |