Thing

things. Thing

Class representing an openHAB Thing

Members

rawThing :HostThing

Source:

raw Java Thing

Type:
  • HostThing

bridgeUID :string|null

Source:

Thing's bridge UID as string or null if the Thing has no bridge

Type:
  • string | null

label :string

Source:

Thing's label

Type:
  • string

location :string

Source:

Physical location

Type:
  • string

status :string

Source:

Thing stattus

Type:
  • string

statusInfo :string

Source:

Thing status info (more detailed status text)

Type:
  • string

thingTypeUID :string

Source:

Thing type UID

Type:
  • string

uid :string

Source:

Thing UID

Type:
  • string

isEnabled :boolean

Source:

Whether the Thing is enabled or not

Type:
  • 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