Uses of Interface
org.openhab.core.items.Item
Package
Description
-
Uses of Item in org.openhab.core.automation.module.script.defaultscope
Modifier and TypeMethodDescriptionScriptBusEvent.storeStates
(Item @Nullable ... items) Stores the current states for a list of items in a map.Modifier and TypeMethodDescription@Nullable Object
ScriptBusEvent.postUpdate
(@Nullable Item item, @Nullable Number state) Posts a status update for a specified item to the event bus.@Nullable Object
ScriptBusEvent.postUpdate
(@Nullable Item item, @Nullable String stateAsString) Posts a status update for a specified item to the event bus.@Nullable Object
ScriptBusEvent.postUpdate
(@Nullable Item item, @Nullable State state) Posts a status update for a specified item to the event bus.@Nullable Object
ScriptBusEvent.sendCommand
(@Nullable Item item, @Nullable Number number) Sends a number as a command for a specified item to the event bus.@Nullable Object
ScriptBusEvent.sendCommand
(@Nullable Item item, @Nullable String commandString) Sends a command for a specified item to the event bus.@Nullable Object
ScriptBusEvent.sendCommand
(@Nullable Item item, @Nullable Command command) Sends a command for a specified item to the event bus.@Nullable Object
ScriptBusEvent.sendTimeSeries
(@Nullable Item item, @Nullable TimeSeries timeSeries) Sends a time series to the event busScriptBusEvent.storeStates
(Item @Nullable ... items) Stores the current states for a list of items in a map.Modifier and TypeMethodDescription@Nullable Object
ScriptBusEvent.restoreStates
(@Nullable Map<Item, State> statesMap) Restores item states from a map. -
Uses of Item in org.openhab.core.io.rest.core.item
-
Uses of Item in org.openhab.core.items
Modifier and TypeInterfaceDescriptioninterface
Deprecated.This class is not meant as a public API - it should only be used internally from within the frameworkModifier and TypeClassDescriptionclass
The abstract base class for all items.class
Modifier and TypeMethodDescription<T extends Item>
Collection<T>ItemRegistry.getItemsByTag
(Class<T> typeFilter, String... tags) Returns list of items which contains all of the given tags.Modifier and TypeMethodDescriptionItemBuilder.build()
Creates an item with the currently configured values.@Nullable Item
ItemFactory.createItem
(@Nullable String itemTypeName, String itemName) Creates a new Item instance of typeitemTypeName
and the nameitemName
@Nullable Item
GroupItem.getBaseItem()
Returns the base item of thisGroupItem
.This method retrieves a single item from the registry.ItemRegistry.getItemByPattern
(String name) This method retrieves a single item from the registry.@Nullable Item
@Nullable Item
@Nullable Item
Removes an item and its member if recursive flag is set to true.protected @Nullable Item
ManagedItemProvider.toElement
(String itemName, ManagedItemProvider.PersistedItem persistedItem) Modifier and TypeMethodDescriptionGroupItem.getAllMembers()
ItemRegistry.getItems()
This method retrieves all items that are currently available in the registryThis method retrieves all items that match a given search patternItemRegistry.getItemsByTag
(String... tags) Returns list of items which contains all of the given tags.ItemRegistry.getItemsByTagAndType
(String type, String... tags) Returns list of items with a certain type containing all of the given tags.ItemRegistry.getItemsOfType
(String type) This method retrieves all items with the given typeItemNotUniqueException.getMatchingItems()
Returns all items that match the search patternGroupItem.getMembers()
GroupItem.getMembers
(Predicate<Item> filterItem) Retrieves ALL members of this group and filters it with the given PredicateModifier and TypeMethodDescriptionvoid
void
Adds the given item to the members of this group item.ItemStateConverter.convertToAcceptedState
(@Nullable State state, @Nullable Item item) ItemBuilderFactory.newItemBuilder
(Item item) Create a newItemBuilder
, which is initialized by the given item.void
GroupItem.removeMember
(Item item) Removes the given item from the members of this group item.void
GroupItem.replaceMember
(Item oldItem, Item newItem) void
GroupItem.stateChanged
(Item item, State oldState, State newState) void
StateChangeListener.stateChanged
(Item item, State oldState, State newState) This method is called, if a state has changed.void
GroupItem.stateUpdated
(Item item, State state) void
StateChangeListener.stateUpdated
(Item item, State state) This method is called, if a state was updated, but has not changedvoid
TimeSeriesListener.timeSeriesUpdated
(Item item, TimeSeries timeSeries) This method is called, if a time series update was sent to the item.protected ManagedItemProvider.PersistedItem
ManagedItemProvider.toPersistableElement
(Item item) ItemBuilder.withBaseItem
(@Nullable Item baseItem) Set the base item..Modifier and TypeMethodDescriptionvoid
ItemRegistry.addRegistryHook
(RegistryHook<Item> hook) Add a hook to be informed before adding/after removing items.Determines the current state of a group based on a list of itemsGroupItem.getMembers
(Predicate<Item> filterItem) Retrieves ALL members of this group and filters it with the given Predicate<T extends State>
@Nullable TGroupFunction.Equality.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TGroupFunction.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) Calculates the group state and returns it as a state of the requested type.void
ItemRegistry.removeRegistryHook
(RegistryHook<Item> hook) Remove the hook again.ModifierConstructorDescriptionGroupItem
(String name, @Nullable Item baseItem, @Nullable GroupFunction function) Creates a GroupItem with function -
Uses of Item in org.openhab.core.items.dto
Modifier and TypeMethodDescriptionstatic @Nullable Item
ItemDTOMapper.map
(ItemDTO itemDTO, ItemBuilderFactory itemBuilderFactory) Maps item DTO into item object.Modifier and TypeMethodDescriptionstatic ItemDTO
Maps item into item DTO object.static GroupFunction
ItemDTOMapper.mapFunction
(@Nullable Item baseItem, GroupFunctionDTO function) -
Uses of Item in org.openhab.core.items.events
Modifier and TypeMethodDescriptionstatic ItemAddedEvent
ItemEventFactory.createAddedEvent
(Item item) Creates an item added event.static ItemRemovedEvent
ItemEventFactory.createRemovedEvent
(Item item) Creates an item removed event.static ItemUpdatedEvent
ItemEventFactory.createUpdateEvent
(Item item, Item oldItem) Creates an item updated event. -
Uses of Item in org.openhab.core.library.items
Modifier and TypeClassDescriptionclass
This item identifies a telephone call by its origin and destination.class
A ColorItem can be used for color values, e.g.class
A ContactItem can be used for sensors that return an "open" or "close" as a state.class
A DateTimeItem stores a timestamp including a valid time zone.class
A DimmerItem can be used as a switch (ON/OFF), but it also accepts percent values to reflect the dimmed state.class
An ImageItem holds the binary image data as its status.class
A LocationItem can be used to store GPS related informations, addresses...class
A NumberItem has a decimal value and is usually used for all kinds of sensors, like temperature, brightness, wind, etc.class
AnPlayerItem
allows to control a player, e.g.class
A RollershutterItem allows the control of roller shutters, i.e.class
A StringItem can be used for any kind of string to either send or receive from a device.class
A SwitchItem represents a normal switch that can be ON or OFF. -
Uses of Item in org.openhab.core.library.types
Modifier and TypeMethodDescriptionprotected boolean
QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction.isSameDimension
(@Nullable Item item) Modifier and TypeMethodDescription<T extends State>
@Nullable TArithmeticGroupFunction.And.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Avg.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Count.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Max.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Median.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Min.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Or.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Sum.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TArithmeticGroupFunction.Xor.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TDateTimeGroupFunction.Earliest.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TDateTimeGroupFunction.Latest.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) <T extends State>
@Nullable TQuantityTypeArithmeticGroupFunction.DimensionalGroupFunction.getStateAs
(@Nullable Set<Item> items, Class<T> stateClass) -
Uses of Item in org.openhab.core.model.script.actions
Modifier and TypeMethodDescriptionstatic @Nullable Item
Semantics.getEquipment
(Item item) static @Nullable Item
Semantics.getLocation
(Item item) Modifier and TypeMethodDescriptionBusEvent.storeStates
(Item... items) Stores the current states for a list of items in a map.Modifier and TypeMethodDescriptionstatic @Nullable Item
Semantics.getEquipment
(Item item) Semantics.getEquipmentType
(Item item) static @Nullable Item
Semantics.getLocation
(Item item) Semantics.getLocationType
(Item item) Semantics.getPointType
(Item item) Semantics.getPropertyType
(Item item) Semantics.getSemanticType
(Item item) Determines the semantic type of anItem
(i.e.static boolean
Semantics.isEquipment
(Item item) static boolean
Semantics.isLocation
(Item item) static boolean
static Object
BusEvent.postUpdate
(Item item, Number state) Posts a status update for a specified item to the event bus.static Object
BusEvent.postUpdate
(Item item, String stateAsString) Posts a status update for a specified item to the event bus.static Object
BusEvent.postUpdate
(Item item, State state) Posts a status update for a specified item to the event bus.static Object
BusEvent.sendCommand
(Item item, Number number) Sends a number as a command for a specified item to the event bus.static Object
BusEvent.sendCommand
(Item item, String commandString) Sends a command for a specified item to the event bus.static Object
BusEvent.sendCommand
(Item item, Command command) Sends a command for a specified item to the event bus.static Object
BusEvent.sendTimeSeries
(@Nullable Item item, @Nullable TimeSeries timeSeries) Sends a time series to the event busBusEvent.storeStates
(Item... items) Stores the current states for a list of items in a map.Modifier and TypeMethodDescriptionstatic Object
BusEvent.restoreStates
(Map<Item, State> statesMap) Restores item states from a map. -
Uses of Item in org.openhab.core.model.script.interpreter
-
Uses of Item in org.openhab.core.model.script.jvmmodel
-
Uses of Item in org.openhab.core.persistence
Modifier and TypeMethodDescriptionvoid
PersistenceManager.handleExternalPersistenceDataChange
(PersistenceService persistenceService, Item item) void
ModifiablePersistenceService.store
(Item item, ZonedDateTime date, State state) Stores the historic item value.void
ModifiablePersistenceService.store
(Item item, ZonedDateTime date, State state, @Nullable String alias) Stores the historic item value under a specified alias.void
Stores the current value of the given item.void
Stores the current value of the given item under a specified alias. -
Uses of Item in org.openhab.core.persistence.extensions
Modifier and TypeMethodDescriptionstatic @Nullable State
PersistenceExtensions.averageBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the average value of the state of a givenItem
between two certain points in time.static @Nullable State
PersistenceExtensions.averageBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the average value of the state of a givenItem
between two certain points in time.static @Nullable State
PersistenceExtensions.averageSince
(Item item, ZonedDateTime timestamp) Gets the average value of the state of a givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.averageSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the average value of the state of a givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.averageUntil
(Item item, ZonedDateTime timestamp) Gets the average value of the state of a givenItem
until a certain point in time.static @Nullable State
PersistenceExtensions.averageUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the average value of the state of a givenItem
until a certain point in time.static @Nullable Boolean
PersistenceExtensions.changedBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Checks if the state of a givenitem
changes between two points in time.static @Nullable Boolean
PersistenceExtensions.changedBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Checks if the state of a givenitem
changes between two points in time.static @Nullable Boolean
PersistenceExtensions.changedSince
(Item item, ZonedDateTime timestamp) Checks if the state of a givenitem
has changed since a certain point in time.static @Nullable Boolean
PersistenceExtensions.changedSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Checks if the state of a givenitem
has changed since a certain point in time.static @Nullable Boolean
PersistenceExtensions.changedUntil
(Item item, ZonedDateTime timestamp) Checks if the state of a givenitem
will change by a certain point in time.static @Nullable Boolean
PersistenceExtensions.changedUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Checks if the state of a givenitem
will change by a certain point in time.static @Nullable Long
PersistenceExtensions.countBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the number of available data points of a givenItem
between two points in time.static @Nullable Long
PersistenceExtensions.countBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the number of available data points of a givenItem
between two points in time.static @Nullable Long
PersistenceExtensions.countSince
(Item item, ZonedDateTime timestamp) Gets the number of available historic data points of a givenItem
from a point in time until now.static @Nullable Long
PersistenceExtensions.countSince
(Item item, ZonedDateTime begin, @Nullable String serviceId) Gets the number of available historic data points of a givenItem
from a point in time until now.static @Nullable Long
PersistenceExtensions.countStateChangesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the number of changes in data points of a givenItem
between two points in time.static @Nullable Long
PersistenceExtensions.countStateChangesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the number of changes in data points of a givenItem
between two points in time.static @Nullable Long
PersistenceExtensions.countStateChangesSince
(Item item, ZonedDateTime timestamp) Gets the number of changes in historic data points of a givenItem
from a point in time until now.static @Nullable Long
PersistenceExtensions.countStateChangesSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the number of changes in historic data points of a givenItem
from a point in time until now.static @Nullable Long
PersistenceExtensions.countStateChangesUntil
(Item item, ZonedDateTime timestamp) Gets the number of changes in data points of a givenItem
from now until a point in time.static @Nullable Long
PersistenceExtensions.countStateChangesUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the number of changes in data points of a givenItem
from now until a point in time.static @Nullable Long
PersistenceExtensions.countUntil
(Item item, ZonedDateTime timestamp) Gets the number of available data points of a givenItem
from now to a point in time.static @Nullable Long
PersistenceExtensions.countUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the number of available data points of a givenItem
from now to a point in time.static @Nullable State
PersistenceExtensions.deltaBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the difference value of the state of a givenitem
between two points in time.static @Nullable State
PersistenceExtensions.deltaBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the difference value of the state of a givenitem
between two points in time.static @Nullable State
PersistenceExtensions.deltaSince
(Item item, ZonedDateTime timestamp) Gets the difference value of the state of a givenitem
since a certain point in time.static @Nullable State
PersistenceExtensions.deltaSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the difference value of the state of a givenitem
since a certain point in time.static @Nullable State
PersistenceExtensions.deltaUntil
(Item item, ZonedDateTime timestamp) Gets the difference value of the state of a givenitem
until a certain point in time.static @Nullable State
PersistenceExtensions.deltaUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the difference value of the state of a givenitem
until a certain point in time.static @Nullable State
PersistenceExtensions.deviationBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the standard deviation of the state of the givenItem
between two points in time.static @Nullable State
PersistenceExtensions.deviationBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the standard deviation of the state of the givenItem
between two points in time.static @Nullable State
PersistenceExtensions.deviationSince
(Item item, ZonedDateTime timestamp) Gets the standard deviation of the state of the givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.deviationSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the standard deviation of the state of the givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.deviationUntil
(Item item, ZonedDateTime timestamp) Gets the standard deviation of the state of the givenItem
until a certain point in time.static @Nullable State
PersistenceExtensions.deviationUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the standard deviation of the state of the givenItem
until a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime timestamp) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime begin, ZonedDateTime end) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRate
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Deprecated.static @Nullable DecimalType
PersistenceExtensions.evolutionRateBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the evolution rate of the state of a givenItem
between two points in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
between two points in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateSince
(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItem
since a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
since a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateUntil
(Item item, ZonedDateTime timestamp) Gets the evolution rate of the state of a givenItem
until a certain point in time.static @Nullable DecimalType
PersistenceExtensions.evolutionRateUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the evolution rate of the state of a givenItem
until a certain point in time.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Retrieves the historic items for a givenitem
between two points in time.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Retrieves the historic items for a givenitem
between two points in time through aPersistenceService
identified by theserviceId
.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesSince
(Item item, ZonedDateTime timestamp) Retrieves the historic items for a givenitem
since a certain point in time.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Retrieves the historic items for a givenitem
since a certain point in time through aPersistenceService
identified by theserviceId
.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesUntil
(Item item, ZonedDateTime timestamp) Retrieves the future items for a givenitem
until a certain point in time.static @Nullable Iterable<HistoricItem>
PersistenceExtensions.getAllStatesUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Retrieves the future items for a givenitem
until a certain point in time through aPersistenceService
identified by theserviceId
.static @Nullable HistoricItem
PersistenceExtensions.historicState
(Item item, ZonedDateTime timestamp) Deprecated.static @Nullable HistoricItem
PersistenceExtensions.historicState
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Deprecated.static @Nullable ZonedDateTime
PersistenceExtensions.lastChange
(Item item) Query the last historic change time of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.lastChange
(Item item, @Nullable String serviceId) Query for the last historic change time of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.lastUpdate
(Item item) Query the last historic update time of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.lastUpdate
(Item item, @Nullable String serviceId) Query for the last historic update time of a givenitem
.static @Nullable HistoricItem
PersistenceExtensions.maximumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the historic item with the maximum value of the state of a givenitem
between two points in time.static @Nullable HistoricItem
PersistenceExtensions.maximumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the historic item with the maximum value of the state of a givenitem
between two points in time.static @Nullable HistoricItem
PersistenceExtensions.maximumSince
(Item item, ZonedDateTime timestamp) Gets the historic item with the maximum value of the state of a givenitem
since a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.maximumSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the historic item with the maximum value of the state of a givenitem
since a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.maximumUntil
(Item item, ZonedDateTime timestamp) Gets the historic item with the maximum value of the state of a givenitem
until a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.maximumUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the historic item with the maximum value of the state of a givenitem
until a certain point in time.static @Nullable State
PersistenceExtensions.medianBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the median value of the state of a givenItem
between two certain points in time.static @Nullable State
PersistenceExtensions.medianBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the median value of the state of a givenItem
between two certain points in time.static @Nullable State
PersistenceExtensions.medianSince
(Item item, ZonedDateTime timestamp) Gets the median value of the state of a givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.medianSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the median value of the state of a givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.medianUntil
(Item item, ZonedDateTime timestamp) Gets the median value of the state of a givenItem
until a certain point in time.static @Nullable State
PersistenceExtensions.medianUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the median value of the state of a givenItem
until a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.minimumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the historic item with the minimum value of the state of a givenitem
between two certain points in time.static @Nullable HistoricItem
PersistenceExtensions.minimumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the historic item with the minimum value of the state of a givenitem
between two certain points in time.static @Nullable HistoricItem
PersistenceExtensions.minimumSince
(Item item, ZonedDateTime timestamp) Gets the historic item with the minimum value of the state of a givenitem
since a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.minimumSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the historic item with the minimum value of the state of a givenitem
since a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.minimumUntil
(Item item, ZonedDateTime timestamp) Gets the historic item with the minimum value of the state of a givenitem
until a certain point in time.static @Nullable HistoricItem
PersistenceExtensions.minimumUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the historic item with the minimum value of the state of a givenitem
until a certain point in time.static @Nullable ZonedDateTime
PersistenceExtensions.nextChange
(Item item) Query the first future change time of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.nextChange
(Item item, @Nullable String serviceId) Query for the first future change time of a givenitem
.static @Nullable HistoricItem
Returns the next state of a givenitem
.static @Nullable HistoricItem
Returns the next state of a givenitem
.static @Nullable HistoricItem
Returns the next state of a givenitem
.static @Nullable HistoricItem
Returns the next state of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.nextUpdate
(Item item) Query the first future update time of a givenitem
.static @Nullable ZonedDateTime
PersistenceExtensions.nextUpdate
(Item item, @Nullable String serviceId) Query for the first future update time of a givenitem
.static void
Persists the state of a givenitem
through the default persistence service.static void
static void
PersistenceExtensions.persist
(Item item, ZonedDateTime timestamp, String stateString) Persists astate
at a giventimestamp
of anitem
through the default persistence service.static void
PersistenceExtensions.persist
(Item item, ZonedDateTime timestamp, String stateString, @Nullable String serviceId) Persists astate
at a giventimestamp
of anitem
through aPersistenceService
identified by theserviceId
.static void
PersistenceExtensions.persist
(Item item, ZonedDateTime timestamp, State state) Persists astate
at a giventimestamp
of anitem
through the default persistence service.static void
PersistenceExtensions.persist
(Item item, ZonedDateTime timestamp, State state, @Nullable String serviceId) Persists astate
at a giventimestamp
of anitem
through aPersistenceService
identified by theserviceId
.static void
PersistenceExtensions.persist
(Item item, TimeSeries timeSeries) Persists atimeSeries
of anitem
through the default persistence service.static void
PersistenceExtensions.persist
(Item item, TimeSeries timeSeries, @Nullable String serviceId) static @Nullable HistoricItem
PersistenceExtensions.persistedState
(Item item, ZonedDateTime timestamp) Retrieves the persisted item for a givenitem
at a certain point in time through the default persistence service.static @Nullable HistoricItem
PersistenceExtensions.persistedState
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Retrieves the persisted item for a givenitem
at a certain point in time through aPersistenceService
identified by theserviceId
.static @Nullable HistoricItem
PersistenceExtensions.previousState
(Item item) Returns the previous state of a givenitem
.static @Nullable HistoricItem
PersistenceExtensions.previousState
(Item item, boolean skipEqual) Returns the previous state of a givenitem
.static @Nullable HistoricItem
PersistenceExtensions.previousState
(Item item, boolean skipEqual, @Nullable String serviceId) Returns the previous state of a givenitem
.static @Nullable HistoricItem
PersistenceExtensions.previousState
(Item item, @Nullable String serviceId) Returns the previous state of a givenitem
.static void
PersistenceExtensions.removeAllStatesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Removes from persistence the historic items for a givenitem
between two points in time.static void
PersistenceExtensions.removeAllStatesBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Removes from persistence the historic items for a givenitem
beetween two points in time through aPersistenceService
identified by theserviceId
.static void
PersistenceExtensions.removeAllStatesSince
(Item item, ZonedDateTime timestamp) Removes from persistence the historic items for a givenitem
since a certain point in time.static void
PersistenceExtensions.removeAllStatesSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Removes from persistence the historic items for a givenitem
since a certain point in time through aPersistenceService
identified by theserviceId
.static void
PersistenceExtensions.removeAllStatesUntil
(Item item, ZonedDateTime timestamp) Removes from persistence the future items for a givenitem
until a certain point in time.static void
PersistenceExtensions.removeAllStatesUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Removes from persistence the future items for a givenitem
until a certain point in time through aPersistenceService
identified by theserviceId
.static @Nullable State
PersistenceExtensions.sumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the sum of the state of a givenitem
between two certain points in time.static @Nullable State
PersistenceExtensions.sumBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the sum of the state of a givenitem
between two certain points in time.static @Nullable State
PersistenceExtensions.sumSince
(Item item, ZonedDateTime timestamp) Gets the sum of the state of a givenitem
since a certain point in time.static @Nullable State
PersistenceExtensions.sumSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the sum of the state of a givenitem
since a certain point in time.static @Nullable State
PersistenceExtensions.sumUntil
(Item item, ZonedDateTime timestamp) Gets the sum of the state of a givenitem
until a certain point in time.static @Nullable State
PersistenceExtensions.sumUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the sum of the state of a givenitem
until a certain point in time.static @Nullable Boolean
PersistenceExtensions.updatedBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Checks if the state of a givenitem
has been updated between two points in time.static @Nullable Boolean
PersistenceExtensions.updatedBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Checks if the state of a givenitem
is updated between two points in time.static @Nullable Boolean
PersistenceExtensions.updatedSince
(Item item, ZonedDateTime timestamp) Checks if the state of a givenitem
has been updated since a certain point in time.static @Nullable Boolean
PersistenceExtensions.updatedSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Checks if the state of a givenitem
has been updated since a certain point in time.static @Nullable Boolean
PersistenceExtensions.updatedUntil
(Item item, ZonedDateTime timestamp) Checks if the state of a givenitem
will be updated until a certain point in time.static @Nullable Boolean
PersistenceExtensions.updatedUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Checks if the state of a givenitem
will be updated until a certain point in time.static @Nullable State
PersistenceExtensions.varianceBetween
(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the variance of the state of the givenItem
between two certain point in time.static @Nullable State
PersistenceExtensions.varianceBetween
(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the variance of the state of the givenItem
between two points in time.static @Nullable State
PersistenceExtensions.varianceSince
(Item item, ZonedDateTime timestamp) Gets the variance of the state of the givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.varianceSince
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the variance of the state of the givenItem
since a certain point in time.static @Nullable State
PersistenceExtensions.varianceUntil
(Item item, ZonedDateTime timestamp) Gets the variance of the state of the givenItem
until a certain point in time.static @Nullable State
PersistenceExtensions.varianceUntil
(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the variance of the state of the givenItem
until a certain point in time. -
Uses of Item in org.openhab.core.persistence.filter
Modifier and TypeMethodDescriptionboolean
abstract boolean
Apply this filter to an itemboolean
boolean
boolean
void
abstract void
Notify filter that item was persistedvoid
void
void
-
Uses of Item in org.openhab.core.semantics
Modifier and TypeMethodDescriptionSemanticsService.getItemsInLocation
(Class<? extends Location> locationType) Retrieves all items that are located in a given location type and which are either classified as Points or Equipments.SemanticsService.getItemsInLocation
(String labelOrSynonym, Locale locale) Retrieves all items that are located in a given location and which are either classified as Points or Equipments.SemanticsPredicates.isEquipment()
SemanticsPredicates.isLocation()
SemanticsPredicates.isPoint()
Modifier and TypeMethodDescriptionSemanticTags.getEquipment
(Item item) SemanticTags.getLocation
(Item item) SemanticTags.getProperty
(Item item) SemanticTags.getSemanticType
(Item item) Determines the semantic type of anItem
i.e. -
Uses of Item in org.openhab.core.thing.link
Modifier and TypeMethodDescriptionItemChannelLinkRegistry.getLinkedItems
(UID uid) Returns a set of bound items for the given channel UID. -
Uses of Item in org.openhab.core.ui.items
Modifier and TypeMethodDescription@Nullable State
ItemUIRegistry.convertState
(Widget widget, Item item, State state) Convert the given state intoModifier and TypeMethodDescription@Nullable Widget
ItemUIProvider.getDefaultWidget
(@Nullable Class<? extends Item> itemType, String itemName) Provides a default widget for a given item (class). -
Uses of Item in org.openhab.core.voice.text
Modifier and TypeMethodDescriptionAbstractRuleBasedInterpreter.getMatchingItems
(ResourceBundle language, String[] labelFragments, @Nullable AbstractRuleBasedInterpreter.ItemCommandSupplier commandSupplier, Rule.InterpretationContext context) Filters the item registry by matching each item's name with the provided name fragments.Modifier and TypeMethodDescriptionprotected Rule
AbstractRuleBasedInterpreter.customDynamicRule
(Item item, AbstractRuleBasedInterpreter.ItemFilter itemFilter, Object headExpression, @Nullable Object tailExpression, boolean isForced, boolean isSilent) Creates a custom rule on base of a head and a tail expression, where the middle part of the new rule's expression will consist of a free command to be captured.boolean
AbstractRuleBasedInterpreter.ItemFilter.filterItem
(Item item, MetadataRegistry metadataRegistry) AbstractRuleBasedInterpreter.ItemFilter.forSimilarItem
(Item item, @Nullable Metadata semantic) AbstractRuleBasedInterpreter.ItemCommandSupplier.getCommandClasses
(@Nullable Item item) @Nullable Command
AbstractRuleBasedInterpreter.ItemCommandSupplier.getItemCommand
(Item item) AbstractRuleBasedInterpreter.parseItemCustomRules
(Locale locale, Item item, String ruleText, Metadata metadata) Parses a rule as text into aRule
instance.protected Rule
AbstractRuleBasedInterpreter.restrictedDynamicItemRule
(Item item, AbstractRuleBasedInterpreter.ItemFilter itemFilter, Object headExpression, Object midExpression, @Nullable Object tailExpression, boolean isNameFirst, boolean isForced, boolean isSilent) Creates an item rule which two dynamic capture values on base of a head a middle and an optional tail expression, where one of the values is an item name expression and the other a free captured value.Modifier and TypeMethodDescriptionprotected Rule
AbstractRuleBasedInterpreter.restrictedItemRule
(Set<Item> allowedItems, Object headExpression, @Nullable Object tailExpression) Creates an item rule on base of a head and a tail expression, where the middle part of the new rule's expression will consist of an item name expression.