Thing

things. Thing

Class representing an openHAB Thing

Members

bridgeUID

Source:

Thing's bridge UID as String

label

Source:

label as String

location

Source:

physical location as String

status

Source:

status as String

statusInfo

Source:

status info (more detailed status text) as String

thingTypeUID

Source:

Thing type UID as String

uid

Source:

Thing UID as String

isEnabled

Source:

whether the Thing is enabled or not (Boolean)

Methods

setLabel(label)

Source:

Set the label.

Parameters:
Name Type Description
label string

Thing label

setLocation(location)

Source:

Sets the physical location.

Parameters:
Name Type Description
location string

physical location of the Thing

setProperty(name, value)

Source:

Sets the property value for the property identified by the given name.

Parameters:
Name Type Description
name string

name of the property

value string

value for the property

setEnabled(enabled)

Source:

Sets the enabled status of the Thing.

Parameters:
Name Type Description
enabled boolean

whether the Thing is enabled or not