package
0.10.0
Repository: https://github.com/creativeprojects/gopenhab.git
Documentation: pkg.go.dev

# Functions

Debounce will trigger the event after some time, in case the subscription is triggered multiple times in a row.
MustParseDateTimeState does not panic if the string is not a number, it returns 0 instead.
MustParseDecimalState does not panic if the string is not a number, it returns 0 instead.
NewClient creates a new client to connect to a openHAB instance.
NewDateTimeState creates a DateState.
NewDecimalState creates a DecimalState with a unit.
No description provided by the author
OnAlive is a trigger activated when the client receives an ALIVE event from the server.
OnConnect is a trigger activated when successfully connected (or reconnected) to openHAB.
OnDateTime will trigger the event only once: at the exact time.Time passed in argument.
OnDisconnect is a trigger activated when the connection to openHAB is lost.
OnError is a trigger activated when the client wasn't able to contact openHAB server.
OnItemReceivedCommand triggers the rule when the item received a command equal to state.
OnItemReceivedState triggers the rule when the item received an update equal to state.
OnItemStateChanged triggers the rule when the item received an update with a different state This is an equivalent of the DSL rule: Item <item> changed.
OnItemStateChangedFrom triggers the rule when the item received an update with a different state This is an equivalent of the DSL rule: Item <item> changed from <state>.
OnItemStateChangedFromTo triggers the rule when the item received an update with a different state This is an equivalent of the DSL rule: Item <item> changed from <state> to <state>.
OnItemStateChangedTo triggers the rule when the item received an update with a different state This is an equivalent of the DSL rule: Item <item> changed to <state>.
OnStableConnection is a trigger activated when the connection has been stable for some time.
OnStart is a trigger activated when the client has started.
OnStartlevel is a trigger activated when the server sends Startlevel events during startup.
OnStop is a trigger activated when the client is about to stop.
OnThingReceivedStatusInfo triggers the rule when the thing received a status update equal to status.
OnThingReceivedStatusInfoChanged triggers the rule when the thing status changed.
OnThingReceivedStatusInfoChanged triggers the rule when the thing status changed from a value.
OnThingReceivedStatusInfoChanged triggers the rule when the thing status changed from a value to another value.
OnThingReceivedStatusInfoChanged triggers the rule when the thing status changed to a value.
OnTimeCron creates a trigger from a cron entry.
ParseDateTimeState converts a string to a DateState.
ParseDecimalState converts a string to a DecimalState.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Trigger an event for any status.
Assuming the Thing to be offline because the corresponding bridge is offline.
The bridge associated with this Thing is not initialized.
Error communicating with the device.
An issue with the configuration of a Thing prevents communication with the represented device or service.
The Thing is waiting to transfer configuration information to a device.
The thing was explicitly disabled.
The Thing is currently in DUTY_CYCLE state, which means it is blocked for further usage.
The Thing is currently undergoing a firmware update.
The Thing has been removed from the bridge or the network to which it belongs and is no longer available for use.
The handler is registered but cannot be initialized because of missing configuration parameters.
The handler failed in the initialization phase.
The handler cannot be initialized because the responsible binding is not available or started.
The handler failed in the service registration phase.
No further status details available.
This status is assigned while the binding initializes the Thing.
The device/service represented by a Thing is assumed to be not working correctly and may not process commands.
The device/service represented by a Thing is assumed to be working correctly and can process commands.
This status indicates that the device/service represented by a Thing was removed from the external system after the REMOVING was initiated by the framework.
The device/service represented by a Thing should be removed, but the binding has not confirmed the deletion yet.
This is the initial status of a Thing when it is added or the framework is being started.
The handler is fully initialized but due to the nature of the represented device/service it cannot really tell yet whether the Thing is ONLINE or OFFLINE.

# Variables

No description provided by the author
No description provided by the author

# Structs

Client for openHAB.
No description provided by the author
No description provided by the author
Item represents an item in openHAB.
Metric used by gopenhab telemetry.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Logger interface used by gopenhab so you can bring your own logger.
No description provided by the author
Telemetry interface to send metrics.
Trigger is a generic interface for catching incoming messages on the event bus.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
MetricType is the type of metric.
Runner is the function that will be called when the rule is triggered - ctx is the context of the rule.
No description provided by the author
No description provided by the author
see openhab documentation: https://www.openhab.org/docs/concepts/things.html#thing-status.
see openhab documentation https://www.openhab.org/docs/concepts/things.html#status-details.