CLI
Configuration
plugin.yaml
cli:
plugin_name: cli
# ip = 127.0.0.1
# port = 2323
# update = false
# hashed_password = 1245a9633edf47b7091f37c4d294b5be5a9936c81c5359b16d1c4833729965663f1943ef240959c53803fedef7ac19bd59c66ad7e7092d7dbf155ce45884607d
This plugin listens for a telnet connection.
ip =
used network interface, e.g. 127.0.0.1 (localhost, default) or listen on all network interfaces: 0.0.0.0
port =
used network port, default 2323
update =
restrict the access of the items to read only (false, default) or allows read/write access (true)
hashed_password =
password that needs to be entered on login. SHA-512 hashed. Value shown above is „very_secure_password“
The hashed_password can be obtained by using the backend’s service page and the hash generator.
Usage
Telnet to the configured IP adress and port.
Enter help
for a list of available commands.
You can enter help [commandgroup]
to see only commands belonging to that group (and global commands). Commandgroups are item
, logic
, log
and scheduler
.
command |
function |
---|---|
|
list the first level items |
|
list item and every child item (with values) |
|
dump detail-information about a given item - command alias: dump |
|
list all items (with values) - command alias: la |
|
alias for iupdate |
|
update the item with value - command alias: update |
|
disables logic - command alias: dl |
|
enables logic - command alias: el |
|
dump details about a given logic (new in v1.4) |
|
list all logics and next execution time - command alias: lo |
|
reload a logic - command alias: rl |
|
reload and run a logic - command alias: rr |
|
trigger a logic - command alias: tr |
|
clean (memory) log |
|
log dump of (memory) log |
|
return runtime |
|
show details for given task |
|
list all scheduler tasks by name |
|
list all scheduler tasks by execution time |
|
list current thread names |
|
quit the session |
|
alias for quit |
Plugins may append additional commands. They will be listed with the „help“ command, too.
Example:
up office.light = On
to update an item named office.light to value On