fhem.cfg 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ################################################################################
  2. #
  3. # fhem.cfg
  4. # Exemplary fhem.cfg for demonstration purposes.
  5. # Defines YAF and Floorplan and demonstrates the binding between the lamp widgets
  6. # This file is not copied to /opt/fhem during the installation process!
  7. #
  8. # YAF - Yet Another Floorplan
  9. # FHEM Projektgruppe Hochschule Karlsruhe, 2013
  10. # Markus Mangei, Daniel Weisensee
  11. #
  12. ################################################################################
  13. #
  14. # This program is free software: you can redistribute it and/or modify
  15. # it under the terms of the GNU General Public License as published by
  16. # the Free Software Foundation, either version 3 of the License, or
  17. # (at your option) any later version.
  18. #
  19. # This program is distributed in the hope that it will be useful,
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. # GNU General Public License for more details.
  23. #
  24. # You should have received a copy of the GNU General Public License
  25. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26. #
  27. ################################################################################
  28. attr global logfile ./log/fhem-%Y-%m.log
  29. attr global modpath . # where our FHEM directory is
  30. attr global statefile ./log/fhem.save # where to save the state of the devices
  31. attr global verbose 3 # "normal" verbosity (min 1, max 5)
  32. attr global motd none
  33. define telnetPort telnet 7072 global # our TCP/IP port
  34. define WEB FHEMWEB 8083 global
  35. define WEBphone FHEMWEB 8084 global
  36. attr WEBphone smallscreen
  37. define WEBtablet FHEMWEB 8085 global
  38. attr WEBtablet touchpad
  39. # Fake FileLog entry, to access the fhem log from FHEMWEB
  40. define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
  41. define autocreate autocreate
  42. attr autocreate autosave
  43. attr autocreate device_room %TYPE
  44. attr autocreate filelog ./log/%NAME-%Y.log
  45. attr autocreate weblink
  46. attr autocreate weblink_room Plots
  47. # Disable this to avoid looking for new USB devices on startup
  48. define initialUsbCheck notify global:INITIALIZED usb create
  49. # If the above notify did not helped, then you probably have to enable some of
  50. # the following lines. Verify first that /dev/xxx ist correct.
  51. #define FHZ FHZ /dev/USB0
  52. #define CUL CUL /dev/ttyACM0@9600 1234
  53. #attr CUL rfmode HomeMatic
  54. #define EUL TCM 310 /dev/ttyACM0@57600
  55. #define BscBor TCM 120 /dev/ttyUSB0@9600
  56. #define BscSmartConnect TCM 310 /dev/ttyUSB0@57600
  57. ################################################################################
  58. # [YAF project] Configure YAF - Yet Another Floorplan
  59. ################################################################################
  60. define yafVar YAF
  61. ################################################################################
  62. # [YAF project] Configure Floorplan
  63. ################################################################################
  64. define Erdgeschoss FLOORPLAN
  65. attr Erdgeschoss fp_arrange 1
  66. define ez_LichtRegal FS20 6969 01
  67. attr ez_LichtRegal fp_Erdgeschoss 194,384,0,
  68. attr ez_LichtRegal model fs20st
  69. attr ez_LichtRegal room Schlafen
  70. define ez_LichtRegal2 FS20 6969 02
  71. attr ez_LichtRegal2 fp_Erdgeschoss 59,580,0,
  72. attr ez_LichtRegal2 model fs20st
  73. attr ez_LichtRegal2 room Bad