Uses of Interface
org.openhab.core.types.State
Packages that use State
Package
Description
-
Uses of State in org.openhab.core.automation.module.script.action
Methods in org.openhab.core.automation.module.script.action that return types with arguments of type StateModifier and TypeMethodDescriptionBusEvent.storeStates(Item... items) Stores the current states for a list of items in a map.Methods in org.openhab.core.automation.module.script.action with parameters of type StateModifier and TypeMethodDescriptionvoidBusEvent.postUpdate(Item item, State state) Posts a status update for a specified item to the event bus.voidBusEvent.postUpdate(Item item, State state, @Nullable String source) Posts a status update for a specified item to the event bus.Method parameters in org.openhab.core.automation.module.script.action with type arguments of type StateModifier and TypeMethodDescriptionvoidBusEvent.restoreStates(Map<Item, State> statesMap) Restores item states from a map.voidBusEvent.sendTimeSeries(@Nullable String itemName, @Nullable Map<ZonedDateTime, State> values, String policy) Sends a time series to the event busvoidBusEvent.sendTimeSeries(@Nullable String itemName, @Nullable Map<ZonedDateTime, State> values, String policy, @Nullable String source) Sends a time series to the event bus -
Uses of State in org.openhab.core.automation.module.script.profile
Methods in org.openhab.core.automation.module.script.profile with parameters of type StateModifier and TypeMethodDescriptionvoidScriptProfile.onStateUpdateFromHandler(State state) voidScriptProfile.onStateUpdateFromItem(State state) -
Uses of State in org.openhab.core.items
Fields in org.openhab.core.items declared as StateModifier and TypeFieldDescriptionprotected @Nullable StateGenericItem.lastStateprotected StateGenericItem.stateMethods in org.openhab.core.items with type parameters of type StateModifier and TypeMethodDescription<T extends State>
@Nullable TGenericItem.getStateAs(Class<T> typeClass) <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.<T extends State>
@Nullable TGroupItem.getStateAs(Class<T> typeClass) <T extends State>
@Nullable TItem.getStateAs(Class<T> typeClass) returns the current state of the item as a specific typeMethods in org.openhab.core.items that return StateModifier and TypeMethodDescriptionDetermines the current state of a group based on a list of itemsItemStateConverter.convertToAcceptedState(@Nullable State state, @Nullable Item item) @Nullable StateGenericItem.getLastState()@Nullable StateItem.getLastState()Returns the previous state of the item.State[]GroupFunction.Equality.getParameters()State[]GroupFunction.getParameters()Returns the parameters of the function as an array.GenericItem.getState()Item.getState()returns the current state of the itemMethods in org.openhab.core.items that return types with arguments of type StateModifier and TypeMethodDescriptionGroupItem.getAcceptedDataTypes()The accepted data types of a group item is the same as of the underlying base item.Item.getAcceptedDataTypes()This method provides a list of all data types that can be used to update the item stateMethods in org.openhab.core.items with parameters of type StateModifier and TypeMethodDescriptionprotected final voidGenericItem.applyState(State state, @Nullable String source) Sets new state, notifies listeners and sends events.ItemStateConverter.convertToAcceptedState(@Nullable State state, @Nullable Item item) booleanGenericItem.isAcceptedState(List<Class<? extends State>> acceptedDataTypes, State state) Tests if state is within acceptedDataTypes list or a subclass of one of themprotected voidGenericItem.logSetTypeError(State state) protected voidGenericItem.notifyListeners(State oldState, State newState) final voidSet a new state.voidSet a new state.voidGenericItem.setState(State state, @Nullable State lastState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange, @Nullable String source) Set a new state, lastState, lastStateUpdate and lastStateChange.voidvoidGroupItem.stateChanged(Item item, State oldState, State newState) voidStateChangeListener.stateChanged(Item item, State oldState, State newState) This method is called, if a state has changed.voidGroupItem.stateUpdated(Item item, State state) voidStateChangeListener.stateUpdated(Item item, State state) This method is called, if a state was updated, but has not changedMethod parameters in org.openhab.core.items with type arguments of type StateModifier and TypeMethodDescriptionbooleanGenericItem.isAcceptedState(List<Class<? extends State>> acceptedDataTypes, State state) Tests if state is within acceptedDataTypes list or a subclass of one of them -
Uses of State in org.openhab.core.items.events
Fields in org.openhab.core.items.events declared as StateModifier and TypeFieldDescriptionprotected final StateItemStateChangedEvent.itemStateprotected final StateItemStateEvent.itemStateprotected final StateItemStateUpdatedEvent.itemStateprotected final StateItemStateChangedEvent.oldItemStateprotected final StateItemStatePredictedEvent.predictedStateMethods in org.openhab.core.items.events that return StateModifier and TypeMethodDescriptionItemStateChangedEvent.getItemState()Gets the item state.ItemStateEvent.getItemState()Gets the item state.ItemStateUpdatedEvent.getItemState()Gets the item state.ItemStateChangedEvent.getOldItemState()Gets the old item state.ItemStatePredictedEvent.getPredictedState()Gets the predicted item state.Methods in org.openhab.core.items.events with parameters of type StateModifier and TypeMethodDescriptionstatic GroupItemStateChangedEventItemEventFactory.createGroupStateChangedEvent(String itemName, String memberName, State newState, State oldState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange) Creates a group item state changed event.static GroupStateUpdatedEventItemEventFactory.createGroupStateUpdatedEvent(String groupName, String member, State state, @Nullable ZonedDateTime lastStateUpdate, @Nullable String source) Creates a group item state updated event.static ItemStateChangedEventItemEventFactory.createStateChangedEvent(String itemName, State newState, State oldState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange) Creates an item state changed event.static ItemStateChangedEventItemEventFactory.createStateChangedEvent(String itemName, State newState, State oldState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange, @Nullable String source) Creates an item state changed event.static ItemEventItemEventFactory.createStateEvent(String itemName, State state) Creates an item state event.static ItemStateEventItemEventFactory.createStateEvent(String itemName, State state, @Nullable String source) Creates an item state event.static ItemStatePredictedEventItemEventFactory.createStatePredictedEvent(String itemName, State state, boolean isConfirmation) Creates an item state predicted event.static ItemStateUpdatedEventItemEventFactory.createStateUpdatedEvent(String itemName, State state, @Nullable ZonedDateTime lastStateUpdate) Creates an item state updated event.static ItemStateUpdatedEventItemEventFactory.createStateUpdatedEvent(String itemName, State state, @Nullable ZonedDateTime lastStateUpdate, @Nullable String source) Creates an item state updated event.Constructors in org.openhab.core.items.events with parameters of type StateModifierConstructorDescriptionprotectedGroupItemStateChangedEvent(String topic, String payload, String itemName, String memberName, State newItemState, State oldItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange) protectedGroupStateUpdatedEvent(String topic, String payload, String itemName, String memberName, State newItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable String source) protectedItemStateChangedEvent(String topic, String payload, String itemName, State newItemState, State oldItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange, @Nullable String source) Constructs a new item state changed event.protectedItemStateEvent(String topic, String payload, String itemName, State itemState, @Nullable String source) Constructs a new item state event.ItemStatePredictedEvent(String topic, String payload, String itemName, State predictedState, boolean isConfirmation) Constructs a new item state predicted event.protectedItemStateUpdatedEvent(String topic, String payload, String itemName, State itemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable String source) Constructs a new item state event. -
Uses of State in org.openhab.core.library.items
Methods in org.openhab.core.library.items with type parameters of type StateModifier and TypeMethodDescription<T extends State>
@Nullable TStringItem.getStateAs(Class<T> typeClass) Methods in org.openhab.core.library.items that return types with arguments of type StateModifier and TypeMethodDescriptionCallItem.getAcceptedDataTypes()ColorItem.getAcceptedDataTypes()ContactItem.getAcceptedDataTypes()DateTimeItem.getAcceptedDataTypes()DimmerItem.getAcceptedDataTypes()ImageItem.getAcceptedDataTypes()LocationItem.getAcceptedDataTypes()NumberItem.getAcceptedDataTypes()PlayerItem.getAcceptedDataTypes()RollershutterItem.getAcceptedDataTypes()StringItem.getAcceptedDataTypes()SwitchItem.getAcceptedDataTypes()Methods in org.openhab.core.library.items with parameters of type StateModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid -
Uses of State in org.openhab.core.library.types
Classes in org.openhab.core.library.types that implement StateModifier and TypeClassDescriptionclassclassThe decimal type uses a BigDecimal internally and thus can be used for integers, longs and floating point numbers alike.classThe HSBType is a complex type with constituents for hue, saturation and brightness and can be used for color items.enumenumclassThe PercentType extends theDecimalTypeby putting constraints for its value on top (0-100).enumThis type is used by thePlayerItem.classThis type can be used for items that are dealing with GPS or location awareness functionality.classQuantityType<T extends javax.measure.Quantity<T>>The measure type extends DecimalType to handle physical unit measurementclassThis type can be used for all binary data such as images, documents, sounds etc.enumThis type is used by thePlayerItem.classThis type can be used for items that are dealing with telephony functionality.classenumFields in org.openhab.core.library.types declared as StateModifier and TypeFieldDescriptionprotected final StateArithmeticGroupFunction.And.activeStateprotected final StateArithmeticGroupFunction.Or.activeStateprotected final StateArithmeticGroupFunction.Xor.activeStateprotected final StateArithmeticGroupFunction.And.passiveStateprotected final StateArithmeticGroupFunction.Or.passiveStateprotected final StateArithmeticGroupFunction.Xor.passiveStateMethods in org.openhab.core.library.types with type parameters of type StateModifier and TypeMethodDescription<T extends State>
@Nullable T<T extends State>
@Nullable T<T extends State>
@Nullable T<T extends State>
@Nullable T<T extends State>
@Nullable T<U extends State>
@Nullable U<T extends State>
@Nullable Tprotected <T extends State>
@Nullable TDecimalType.defaultConversion(@Nullable Class<T> target) <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) Methods in org.openhab.core.library.types that return StateModifier and TypeMethodDescriptionState[]ArithmeticGroupFunction.And.getParameters()State[]ArithmeticGroupFunction.Avg.getParameters()State[]ArithmeticGroupFunction.Count.getParameters()State[]ArithmeticGroupFunction.Max.getParameters()State[]ArithmeticGroupFunction.Median.getParameters()State[]ArithmeticGroupFunction.Min.getParameters()State[]ArithmeticGroupFunction.Or.getParameters()State[]ArithmeticGroupFunction.Sum.getParameters()State[]ArithmeticGroupFunction.Xor.getParameters()State[]DateTimeGroupFunction.Earliest.getParameters()State[]DateTimeGroupFunction.Latest.getParameters()State[]QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction.getParameters()Constructors in org.openhab.core.library.types with parameters of type StateModifierConstructorDescription -
Uses of State in org.openhab.core.magic.binding.handler
Methods in org.openhab.core.magic.binding.handler with parameters of type StateModifier and TypeMethodDescriptionprotected voidMagicChattyThingHandler.updateState(ChannelUID channelUID, State state) -
Uses of State in org.openhab.core.model.script.actions
Methods in org.openhab.core.model.script.actions that return types with arguments of type StateMethods in org.openhab.core.model.script.actions with parameters of type StateMethod parameters in org.openhab.core.model.script.actions with type arguments of type StateModifier and TypeMethodDescriptionstatic ObjectBusEvent.restoreStates(Map<Item, State> statesMap) static ObjectBusEvent.sendTimeSeries(@Nullable String itemName, @Nullable Map<ZonedDateTime, State> values, String policy) static ObjectBusEvent.sendTimeSeries(@Nullable String itemName, @Nullable Map<ZonedDateTime, State> values, String policy, String source) -
Uses of State in org.openhab.core.model.script.scoping
Fields in org.openhab.core.model.script.scoping with type parameters of type StateMethods in org.openhab.core.model.script.scoping that return types with arguments of type State -
Uses of State in org.openhab.core.persistence
Methods in org.openhab.core.persistence that return StateModifier and TypeMethodDescription@Nullable StatePersistedItem.getLastState()returns the last state of the item@Nullable StateFilterCriteria.getState()HistoricItem.getState()returns the current state of the itemMethods in org.openhab.core.persistence with parameters of type StateModifier and TypeMethodDescriptionvoidModifiablePersistenceService.store(Item item, ZonedDateTime date, State state) Stores the historic item value.voidModifiablePersistenceService.store(Item item, ZonedDateTime date, State state, @Nullable String alias) Stores the historic item value under a specified alias. -
Uses of State in org.openhab.core.persistence.dto
Methods in org.openhab.core.persistence.dto with parameters of type State -
Uses of State in org.openhab.core.persistence.extensions
Methods in org.openhab.core.persistence.extensions that return StateModifier and TypeMethodDescriptionstatic @Nullable StatePersistenceExtensions.averageBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the average value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.averageBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the average value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.averageBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type) Gets the average value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.averageBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the average value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp) Gets the average value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the average value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the average value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.averageSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the average value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.averageUntil(Item item, ZonedDateTime timestamp) Gets the average value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.averageUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the average value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.averageUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the average value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.averageUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the average value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deltaBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the difference value of the state of a givenitembetween two points in time.static @Nullable StatePersistenceExtensions.deltaBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the difference value of the state of a givenitembetween two points in time.static @Nullable StatePersistenceExtensions.deltaSince(Item item, ZonedDateTime timestamp) Gets the difference value of the state of a givenitemsince a certain point in time.static @Nullable StatePersistenceExtensions.deltaSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the difference value of the state of a givenitemsince a certain point in time.static @Nullable StatePersistenceExtensions.deltaUntil(Item item, ZonedDateTime timestamp) Gets the difference value of the state of a givenitemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deltaUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the difference value of the state of a givenitemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deviationBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the standard deviation of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.deviationBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the standard deviation of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.deviationBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type) Gets the standard deviation of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.deviationBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the standard deviation of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp) Gets the standard deviation of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the standard deviation of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the standard deviation of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.deviationSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the standard deviation of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.deviationUntil(Item item, ZonedDateTime timestamp) Gets the standard deviation of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deviationUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the standard deviation of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deviationUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the standard deviation of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.deviationUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the standard deviation of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.medianBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the median value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.medianBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the median value of the state of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.medianSince(Item item, ZonedDateTime timestamp) Gets the median value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.medianSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the median value of the state of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.medianUntil(Item item, ZonedDateTime timestamp) Gets the median value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.medianUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the median value of the state of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the Riemann sum of the states of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.riemannSumBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.riemannSumBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type) Gets the Riemann sum of the states of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.riemannSumBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItembetween two certain points in time.static @Nullable StatePersistenceExtensions.riemannSumSince(Item item, ZonedDateTime timestamp) Gets the Riemann sum of the states of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the Riemann sum of the states of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumUntil(Item item, ZonedDateTime timestamp) Gets the Riemann sum of the states of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the Riemann sum of the states of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.riemannSumUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the Riemann sum of the states of a givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.sumBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the sum of the state of a givenitembetween two certain points in time.static @Nullable StatePersistenceExtensions.sumBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the sum of the state of a givenitembetween two certain points in time.static @Nullable StatePersistenceExtensions.sumSince(Item item, ZonedDateTime timestamp) Gets the sum of the state of a givenitemsince a certain point in time.static @Nullable StatePersistenceExtensions.sumSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the sum of the state of a givenitemsince a certain point in time.static @Nullable StatePersistenceExtensions.sumUntil(Item item, ZonedDateTime timestamp) Gets the sum of the state of a givenitemuntil a certain point in time.static @Nullable StatePersistenceExtensions.sumUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the sum of the state of a givenitemuntil a certain point in time.static @Nullable StatePersistenceExtensions.varianceBetween(Item item, ZonedDateTime begin, ZonedDateTime end) Gets the variance of the state of the givenItembetween two certain point in time.static @Nullable StatePersistenceExtensions.varianceBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable String serviceId) Gets the variance of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.varianceBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type) Gets the variance of the state of the givenItembetween two certain point in time.static @Nullable StatePersistenceExtensions.varianceBetween(Item item, ZonedDateTime begin, ZonedDateTime end, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the variance of the state of the givenItembetween two points in time.static @Nullable StatePersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp) Gets the variance of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the variance of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the variance of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.varianceSince(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the variance of the state of the givenItemsince a certain point in time.static @Nullable StatePersistenceExtensions.varianceUntil(Item item, ZonedDateTime timestamp) Gets the variance of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.varianceUntil(Item item, ZonedDateTime timestamp, @Nullable String serviceId) Gets the variance of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.varianceUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type) Gets the variance of the state of the givenItemuntil a certain point in time.static @Nullable StatePersistenceExtensions.varianceUntil(Item item, ZonedDateTime timestamp, @Nullable PersistenceExtensions.RiemannType type, @Nullable String serviceId) Gets the variance of the state of the givenItemuntil a certain point in time.Methods in org.openhab.core.persistence.extensions with parameters of type StateModifier and TypeMethodDescriptionstatic voidPersistenceExtensions.persist(Item item, ZonedDateTime timestamp, State state) Persists astateat a giventimestampof anitemthrough the default persistence service.static voidPersistenceExtensions.persist(Item item, ZonedDateTime timestamp, State state, @Nullable String serviceId) Persists astateat a giventimestampof anitemthrough aPersistenceServiceidentified by theserviceId. -
Uses of State in org.openhab.core.thing.binding
Methods in org.openhab.core.thing.binding with parameters of type StateModifier and TypeMethodDescriptionvoidThingHandlerCallback.stateUpdated(ChannelUID channelUID, State state) Informs about an updated state for a channel.protected voidBaseThingHandler.updateState(String channelID, State state) Updates the state of the thing.protected voidBaseThingHandler.updateState(ChannelUID channelUID, State state) Updates the state of the thing. -
Uses of State in org.openhab.core.thing.binding.generic
Methods in org.openhab.core.thing.binding.generic that return StateModifier and TypeMethodDescription@Nullable StateChannelValueConverterConfig.fixedValueToState(String string) maps a user-defined string to a stateMethod parameters in org.openhab.core.thing.binding.generic with type arguments of type StateModifier and TypeMethodDescriptionChannelHandler.Factory.create(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) -
Uses of State in org.openhab.core.thing.binding.generic.converter
Methods in org.openhab.core.thing.binding.generic.converter that return types with arguments of type StateModifier and TypeMethodDescriptionConstructor parameters in org.openhab.core.thing.binding.generic.converter with type arguments of type StateModifierConstructorDescriptionColorChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) DimmerChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) FixedValueMappingChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) GenericChannelHandler(Function<String, State> toState, Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) GenericChannelHandler(Function<String, State> toState, Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) ImageChannelHandler(Consumer<State> updateState) NumberChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) PlayerChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) RollershutterChannelHandler(Consumer<State> updateState, Consumer<Command> postCommand, @Nullable Consumer<String> sendValue, ChannelTransformation stateTransformations, ChannelTransformation commandTransformations, ChannelValueConverterConfig channelConfig) -
Uses of State in org.openhab.core.thing.profiles
Methods in org.openhab.core.thing.profiles that return types with arguments of type StateModifier and TypeMethodDescriptionProfileContext.getAcceptedDataTypes()Get the list of accepted data types for state updates to the linked item This is an optional method and will return an empty list if not implemented.Methods in org.openhab.core.thing.profiles with parameters of type StateModifier and TypeMethodDescriptionvoidStateProfile.onStateUpdateFromHandler(State state) If the binding indicated a state update on a channel, then this method will be called for each linked item.voidProfile.onStateUpdateFromItem(State state) Will be called if an item has changed its state and this information should be forwarded to the binding.default voidProfileCallback.sendUpdate(State state) Send a state update to the framework.voidProfileCallback.sendUpdate(State state, @Nullable String source) Send a state update to the framework. -
Uses of State in org.openhab.core.types
Classes in org.openhab.core.types that implement StateModifier and TypeClassDescriptionenumThere are situations when item states do not have any defined value.Methods in org.openhab.core.types with type parameters of type StateModifier and TypeMethodDescriptiondefault <T extends @Nullable State>
@Nullable TConvert thisState's value into another typeMethods in org.openhab.core.types that return StateModifier and TypeMethodDescriptionstatic @Nullable StateTypeParser.parseState(List<Class<? extends State>> types, String s) Determines a state from a string.TimeSeries.Entry.state()Returns the value of thestaterecord component.Methods in org.openhab.core.types with parameters of type StateModifier and TypeMethodDescriptionvoidAdd a new element to this series.Method parameters in org.openhab.core.types with type arguments of type StateModifier and TypeMethodDescriptionstatic @Nullable StateTypeParser.parseState(List<Class<? extends State>> types, String s) Determines a state from a string.Constructors in org.openhab.core.types with parameters of type State -
Uses of State in org.openhab.core.ui.items
Methods in org.openhab.core.ui.items that return StateModifier and TypeMethodDescription@Nullable StateItemUIRegistry.convertState(Widget widget, Item item, State state) Convert the given state into@Nullable StateItemUIRegistry.convertStateToLabelUnit(QuantityType<?> state, String label) Convert the given state to the unit found in label.@Nullable StateItemUIRegistry.getItemState(String itemName) Gets the item state@Nullable StateRetrieves the current state of the item of a widget orUnDefType.UNDEF.Methods in org.openhab.core.ui.items with parameters of type StateModifier and TypeMethodDescription@Nullable StateItemUIRegistry.convertState(Widget widget, Item item, State state) Convert the given state into