# # pgm2 / autocreate configfile. Take a look at the other examples for more. # attr global logfile /var/log/fhem/fhem-%Y-%m.log attr global modpath /usr/share/fhem # where our FHEM directory is attr global port 7072 global # our TCP/IP port attr global statefile /var/log/fhem/fhem.save # where to save the state of the devices attr global verbose 3 # "normal" verbosity (min 1, max 5) define WEB FHEMWEB 8083 global define WEBphone FHEMWEB 8084 global attr WEBphone smallscreen define WEBtablet FHEMWEB 8085 global attr WEBtablet touchpad # Fake FileLog entry, to access the fhem log from FHEMWEB define Logfile FileLog /var/log/fhem/fhem-%Y-%m.log fakelog define autocreate autocreate attr autocreate autosave attr autocreate device_room %TYPE attr autocreate filelog /var/log/fhem/%NAME-%Y.log attr autocreate weblink attr autocreate weblink_room Plots # Disable this to avoid looking for new USB devices on startup # Django : 2012-07-27 # initialUsbCheck disabled # define initialUsbCheck notify global:INITIALIZED usb create # If the above notify did not helped, then you probably have to enable some of # the following lines. Verify first that /dev/xxx ist correct. #define FHZ FHZ /dev/USB0 #define CUL CUL /dev/ttyACM0@9600 1234 #attr CUL rfmode HomeMatic #define EUL TCM 310 /dev/ttyACM0@57600 #define BscBor TCM 120 /dev/ttyUSB0@9600 #define BscSmartConnect TCM 310 /dev/ttyUSB0@57600 # Django : 2012-07-27 define EM EM /dev/ttyUSB0 # the serial port of an FHZ 1000 PC define Hauptzaehler EMWZ 1 define Gaszaehler EMGZ 9 define EDV_Schrank EMEM 5 # Django : 2012-07-27 # Erst einmal alle Meldungen in die Datenbank schreiben #define logdb DbLog /etc/fhem_db.conf .*:.* # Django : 2012-07-27 # Nur noch die aktuellen verbrauchswerte in die MySQL schreiben define logdb DbLog /etc/fhem_db.conf Hauptzaehler:power.*|EDV_Schrank:power_kW\b.*|Gaszaehler:act_flow_m3.*