--- layout: documentation title: Runtime Commands --- {% include base.html %} # Runtime Commands It is possible to query and even change the state of entities like items or things. Therefore the console offers commands in various areas: {::options toc_levels="3..4"/} * TOC {:toc} **Please 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> smarthome:status Heating_GF_Corridor OFF ``` Changing an item's state: ``` openhab> smarthome:send Heating_GF_Corridor ON Command has been sent successfully. ``` Get help for a command: ``` openhab> help smarthome:send Usage: smarthome:send - sends a command for an item ``` ### Items | `smarthome:status ` | shows the current status of an item | `smarthome:update ` | sends a status update for an item | `smarthome:send ` | sends a command for an item | `smarthome:items list []` | lists names and types of all items (matching the pattern, if given) | `smarthome:items clear` | removes all items | `smarthome:items remove ` | removes the given item ### Discovery | `smarthome:discovery start ` | runs a discovery on a given thing type or binding | `smarthome:discovery enableBackgroundDiscovery ` | enables background discovery for the discovery service with the given PID | `smarthome:discovery disableBackgroundDiscovery ` | disables background discovery for the discovery service with the given PID ### Inbox | `smarthome:inbox` | lists all current inbox entries | `smarthome:inbox listignored` | lists all ignored inbox entries | `smarthome:inbox approve