fhem.pl command reference

Introduction
?,help
attr
defattr
define
delattr
delete
get
include
inform
list
modify
quit
reload
rereadcfg
save
set
setstate
shutdown
trigger
sleep
xmllist
Perl specials

Introduction

You can use all of the following commands in in two ways: There are three types of commands: "fhem" 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 notify arguments.

Shell commands will be executed in the background, the perl program and the fhem 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 "fhem" commands from a shell script, use the client form of fhem.pl (described above).

Multiple fhem 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 notify fhem 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

attr

defattr

define

delattr

delete

get

include

inform

list

modify

quit

reload

rereadcfg

save

set

setstate

shutdown

trigger

sleep

xmllist

Perl specials