fhem.pl command reference

Introduction
?,help
attr
define
delete
deleteattr
get
include
inform
list
modify
quit
reload
rereadcfg
save
set
setdefaultattr
setstate
shutdown
sleep
trigger
xmllist
Device specification
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.

A line ending with \ will be concatenated with the next one, so long lines (e.g. multiple perl commands) can be split in multiple lines. Some web fronteds make editing of multiline commands transparent.

?, help

attr

setdefaultattr

define

deleteattr

delete

get

include

inform

list

modify

quit

reload

rereadcfg

save

set

setstate

shutdown

trigger

sleep

xmllist

Device specification

Perl specials