fhem.pl command reference

You can use all of the following commands in in two ways: There are three types of commands: "fhz" commands (described in this document), shell commands (they must be enclosed in double quotes ") and perl expressions (enclosed in curly brackets {}). shell commands or perl expressions are needed for complex at or notifyon arguments.

Shell commands will be executed in the background, the perl program and the fhz commands will be executed in the main "thread". In order to make perl expressions easier to write, some special functions and variables are available. See the section Perl special for a description. To trigger "fhz" commands from a shell script, use the client form of fhem.pl (described above).

Multiple fhz commands are separated by semicolon (;). In order to use semicolon in perl code or shell programs, they have to be escaped by the double semicolon (;;).

Commands can be either typed in plain, or read from a file (e.g. the configuration file at startup). The commands are either executed directly, or later if they are arguments to the at and notifyon fhz commands.

If commands are read from a file, then a line ending with \ will be concatenated with the next one, so long lines (e.g. perl oneliners) can be split in multiple lines

?, help

at

attr

defattr

define

delete

get

include

inform

list

logfile

modpath

notifyon

pidfile

port

quit

reload

rereadcfg

savefile

set

setstate

shutdown

trigger

sleep

verbose

xmllist

Perl specials