Thing

things. Thing

Class representing an openHAB Thing

Members

bridgeUID :string|null

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

Source:

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

Type:
  • string | null

isEnabled :boolean

Description:
  • Whether the Thing is enabled or not

Source:

Whether the Thing is enabled or not

Type:
  • boolean

label :string

Description:
  • Thing's label

Source:

Thing's label

Type:
  • string

location :string

Description:
  • Physical location

Source:

Physical location

Type:
  • string

rawThing :HostThing

Description:
  • raw Java Thing

Source:

raw Java Thing

Type:
  • HostThing

status :string

Description:
  • Thing stattus

Source:

Thing stattus

Type:
  • string

statusInfo :string

Description:
  • Thing status info (more detailed status text)

Source:

Thing status info (more detailed status text)

Type:
  • string

thingTypeUID :string

Description:
  • Thing type UID

Source:

Thing type UID

Type:
  • string

uid :string

Description:
  • Thing UID

Source:

Thing UID

Type:
  • string

Methods

setEnabled(enabled)

Description:
  • Sets the enabled status of the Thing.

Source:
Parameters:
Name Type Description
enabled boolean

whether the Thing is enabled or not

setLabel(label)

Description:
  • Set the label.

Source:
Parameters:
Name Type Description
label string

Thing label

setLocation(location)

Description:
  • Sets the physical location.

Source:
Parameters:
Name Type Description
location string

physical location of the Thing

setProperty(name, value)

Description:
  • Sets the property value for the property identified by the given name.

Source:
Parameters:
Name Type Description
name string

name of the property

value string

value for the property