::: tip Note
Some of the described commands are executed on the internal database and could break your installation. Please use this functionality only if you know what you are doing!
:::
Examples
Query an item's state:
openhab> openhab:status Heating_GF_Corridor
OFF
Changing an item's state:
openhab> openhab:send Heating_GF_Corridor ON
Command has been sent successfully.
Get help for a command:
openhab> help openhab:send
Usage: openhab:send <item> <command> - sends a commandfor an item
Items
Command
Description
openhab:status <item>
shows the current status of an item
openhab:update <item> <state>
sends a status update for an item
openhab:send <item> <command>
sends a command for an item
openhab:items list [<pattern>]
lists names and types of all items (matching the pattern, if given)
openhab:items clear
removes all items
openhab:items remove <itemName>
removes the given item
Discovery
Command
Description
openhab:discovery start <thingTypeUID!bindingID>
runs a discovery on a given thing type or binding
openhab:discovery enableBackgroundDiscovery <PID>
enables background discovery for the discovery service with the given PID