2 == Commands accepted by daemon ==
4 COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV
5 POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee
6 EVENT:= all | temp | photo | movement | button
7 SAMPLEDEV:=temp[0-9]+ | photo[0-9]+
10 * subscription to events is cummulativ
11 * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV
12 * if listeners for sensors (temp | photo) exist, the daemon should periodically get and distribute sample data without waiting for a "sample" command
14 == Replys of daemon ==
16 CMDREPLY:= OK | Error: $ERRORSTR
17 ERRORSTR:=no connection | unknown device | ....
19 == Listener Data from Daemon ==
20 (Temperature Data in Degrees Celsius)
22 LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} | photo[0-9]+: [0-9]{1,3} | movement | button[0-9]