fhem.cfg 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. attr global userattr DbLogExclude DbLogInclude cmdIcon devStateIcon devStateStyle genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock homebridgeMapping:textField-long icon siriName sortby webCmd webCmdLabel:textField-long widgetOverride
  2. attr global autoload_undefined_devices 1
  3. attr global autosave 0
  4. attr global exclude_from_update www/hausautomatisierung-com/images/haus_automatisierung.png 30_TradfriGateway.pm
  5. attr global group System
  6. attr global icon rc_WEB
  7. attr global logfile ./log/fhem-%Y-%m.log
  8. attr global modpath .
  9. attr global motd SecurityCheck:\
  10. WEB is not password protected\
  11. telnetPort is not password protected\
  12. \
  13. Protect this FHEM installation by configuring the allowed device allowed_WEB\
  14. Running with root privileges is discouraged.\
  15. You can disable this message with attr global motd none
  16. attr global nofork 1
  17. attr global perlSyntaxCheck 1
  18. attr global room System
  19. attr global sendStatistics onUpdate
  20. attr global statefile ./log/fhem.save
  21. attr global updateInBackground 0
  22. attr global verbose 2
  23. define telnetPort telnet 7072 global
  24. attr telnetPort group System
  25. attr telnetPort icon it_telephone
  26. attr telnetPort room System
  27. define WEB FHEMWEB 8083 global
  28. attr WEB JavaScripts codemirror/fhem_codemirror.js hausautomatisierung-com/custom.js
  29. attr WEB alias WEB (8083)
  30. attr WEB codemirrorParam { "lineWrapping": true, "height": "auto" }
  31. attr WEB confirmDelete 0
  32. attr WEB confirmJSError 0
  33. attr WEB editConfig 1
  34. attr WEB group Web-Access
  35. attr WEB hiddenroom Everything
  36. attr WEB icon it_i-net
  37. attr WEB longpoll websocket
  38. attr WEB menuEntries DOIFtools,/fhem?detail=DOIFtools,haus-automatisierung.com,https://haus-automatisierung.com/
  39. attr WEB plotWeekStartDay 1
  40. attr WEB room System
  41. attr WEB roomIcons Homekit:audio_audio Log:edit_paste Logfile:edit_paste System:it_network Save.config:message_attention Everything:it_i-net Unsorted:unknown Commandref:system_fhem Remote.doc:message_mail Edit.files:edit_copy Select.style:edit_open Event.monitor:edit_settings DOIFtools:helper_doiftools haus-automatisierung.com:it_internet
  42. attr WEB stylesheetPrefix hausautomatisierung_com
  43. attr WEB title { if ($FW_room) { "FHEM: $FW_room" } elsif ($FW_detail) { "FHEM: $FW_detail" } else { "FHEM" } }
  44. # Fake FileLog entry, to access the fhem log from FHEMWEB
  45. define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
  46. attr Logfile group Logging
  47. attr Logfile icon edit_paste
  48. attr Logfile room System
  49. define autocreate autocreate
  50. attr autocreate filelog ./log/%NAME-%Y.log
  51. attr autocreate group System
  52. attr autocreate icon edit_settings
  53. attr autocreate room System
  54. define eventTypes eventTypes ./log/eventTypes.txt
  55. attr eventTypes group System
  56. attr eventTypes icon control_home
  57. attr eventTypes room System
  58. # Disable this to avoid looking for new USB devices on startup
  59. define initialUsbCheck notify global:INITIALIZED usb create
  60. attr initialUsbCheck group System
  61. attr initialUsbCheck icon rc_USB
  62. attr initialUsbCheck room System
  63. define Mosquitto MQTT mqtt:1883
  64. attr Mosquitto room Interfaces
  65. define TabletUiEval HTTPSRV ftuidev/ ./www/tablet_dev TabletUI-Development
  66. attr TabletUiEval alias Tablet Eval
  67. attr TabletUiEval group Web-Access
  68. attr TabletUiEval icon smartphone
  69. attr TabletUiEval room System
  70. define TabletUiLatest HTTPSRV ftui/ ./www/tablet TabletUI-Newest
  71. attr TabletUiLatest alias Tablet Newest
  72. attr TabletUiLatest group Web-Access
  73. attr TabletUiLatest icon smartphone
  74. attr TabletUiLatest room System
  75. define TabletUi HTTPSRV ftuiiu/ ./www/tablet_inuse TabletUI
  76. attr TabletUi alias Tablet UI
  77. attr TabletUi group Web-Access
  78. attr TabletUi icon smartphone
  79. attr TabletUi room System
  80. define at_DbLoggingReduce at *03:00:00 set DBLogging reduceLogNbl 90 average
  81. attr at_DbLoggingReduce alias Database-Log Reduce
  82. attr at_DbLoggingReduce group Logging
  83. attr at_DbLoggingReduce icon system_fhem_update
  84. attr at_DbLoggingReduce room Log,System
  85. define Siri siri
  86. attr Siri room Interfaces
  87. define DBLogging_Reopen at +*00:15:00 set DBLogging reopen
  88. attr DBLogging_Reopen alias Database-Log Reopen
  89. attr DBLogging_Reopen group Logging
  90. attr DBLogging_Reopen icon time_timer
  91. attr DBLogging_Reopen room Log,System
  92. define allowed_WEB allowed
  93. attr allowed_WEB alias WEB (Permissions)
  94. attr allowed_WEB group Web-Access
  95. attr allowed_WEB icon scene_keyboard
  96. attr allowed_WEB room System
  97. attr allowed_WEB validFor WEB
  98. define DOIFtools DOIFtools associated DOIF: UpdateNew
  99. attr DOIFtools DOIFtoolsMenuEntry 1
  100. attr DOIFtools group System
  101. attr DOIFtools icon helper_doiftools
  102. attr DOIFtools room System
  103. define DBLogging DbLog /opt/fhem/db.conf .*:.*
  104. attr DBLogging DbLogSelectionMode Exclude/Include
  105. attr DBLogging DbLogType Current/History
  106. attr DBLogging room Log
  107. #DB Auskunft
  108. define HaNW DBPlan 300
  109. attr HaNW DbLogExclude .*
  110. attr HaNW dbplan_destination Neustadt-Böbig
  111. attr HaNW dbplan_station Haßloch(Pfalz)
  112. attr HaNW room Verkehr
  113. #
  114. define HaMA DBPlan 300
  115. attr HaMA DbLogExclude .*
  116. attr HaMA dbplan_destination Mannheim Hbf
  117. attr HaMA dbplan_station Haßloch(Pfalz)
  118. attr HaMA room Verkehr
  119. #Traffic Module
  120. define trafficViaHockenheim TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  121. attr trafficViaHockenheim userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  122. attr trafficViaHockenheim DbLogExclude .*
  123. attr trafficViaHockenheim GoogleMapsCenter 49.317545, 8.437319
  124. attr trafficViaHockenheim GoogleMapsStroke #0080FF,6,50
  125. attr trafficViaHockenheim GoogleMapsTrafficLayer 1
  126. attr trafficViaHockenheim GoogleMapsZoom 11
  127. attr trafficViaHockenheim end_address Heidelberger Str., 69226 Nußloch
  128. attr trafficViaHockenheim includeReturn 1
  129. attr trafficViaHockenheim outputReadings text
  130. attr trafficViaHockenheim room Verkehr
  131. attr trafficViaHockenheim start_address Nelkenweg, 67454 Haßloch
  132. attr trafficViaHockenheim verbose 1
  133. attr trafficViaHockenheim waypoints 49.305870, 8.425785
  134. #
  135. define trafficViaTalhaus TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  136. attr trafficViaTalhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  137. attr trafficViaTalhaus DbLogExclude .*
  138. attr trafficViaTalhaus GoogleMapsCenter 49.317545, 8.437319
  139. attr trafficViaTalhaus GoogleMapsStroke #0080FF,6,40,#0080FF,6,40
  140. attr trafficViaTalhaus GoogleMapsTrafficLayer 1
  141. attr trafficViaTalhaus GoogleMapsZoom 11
  142. attr trafficViaTalhaus end_address Heidelberger Str., 69226 Nußloch
  143. attr trafficViaTalhaus includeReturn 1
  144. attr trafficViaTalhaus outputReadings text
  145. attr trafficViaTalhaus room Verkehr
  146. attr trafficViaTalhaus start_address Nelkenweg, 67454 Haßloch
  147. attr trafficViaTalhaus verbose 1
  148. attr trafficViaTalhaus waypoints 49.305870, 8.425785 | 49.3419634, 8.5320445
  149. #
  150. define trafficViaA61A6 TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  151. attr trafficViaA61A6 userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  152. attr trafficViaA61A6 DbLogExclude .*
  153. attr trafficViaA61A6 GoogleMapsCenter 49.317545, 8.437319
  154. attr trafficViaA61A6 GoogleMapsStroke #0080FF,6,50
  155. attr trafficViaA61A6 GoogleMapsTrafficLayer 1
  156. attr trafficViaA61A6 GoogleMapsZoom 11
  157. attr trafficViaA61A6 end_address Heidelberger Str., 69226 Nußloch
  158. attr trafficViaA61A6 includeReturn 1
  159. attr trafficViaA61A6 outputReadings text
  160. attr trafficViaA61A6 room Verkehr
  161. attr trafficViaA61A6 start_address Nelkenweg, 67454 Haßloch
  162. attr trafficViaA61A6 verbose 1
  163. attr trafficViaA61A6 waypoints 49.3892154, 8.3393097
  164. #
  165. define trafficViaA61Talhaus TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  166. attr trafficViaA61Talhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  167. attr trafficViaA61Talhaus DbLogExclude .*
  168. attr trafficViaA61Talhaus GoogleMapsCenter 49.317545, 8.437319
  169. attr trafficViaA61Talhaus GoogleMapsStroke #0080FF,6,50
  170. attr trafficViaA61Talhaus GoogleMapsTrafficLayer 1
  171. attr trafficViaA61Talhaus GoogleMapsZoom 11
  172. attr trafficViaA61Talhaus end_address Heidelberger Str., 69226 Nußloch
  173. attr trafficViaA61Talhaus includeReturn 1
  174. attr trafficViaA61Talhaus outputReadings text
  175. attr trafficViaA61Talhaus room Verkehr
  176. attr trafficViaA61Talhaus start_address Nelkenweg, 67454 Haßloch
  177. attr trafficViaA61Talhaus verbose 1
  178. attr trafficViaA61Talhaus waypoints 49.3892154, 8.3393097 | 49.3419634, 8.5320445
  179. define n_DbLogExclude notify global:DEFINED.* attr $EVTPART1 DbLogExclude .*
  180. attr n_DbLogExclude DbLogExclude .*
  181. attr n_DbLogExclude room Notify,Log
  182. #Google Geburtstags Kalender einbinden
  183. define BirthdayCalendar Calendar ical url https://calendar.google.com/calendar/ical/j68hdkq24psm96dckf22tvmmtg%40group.calendar.google.com/private-5fb2e08e8f24f38c8aad843434fed88a/basic.ics 21600
  184. attr BirthdayCalendar DbLogExclude .*
  185. attr BirthdayCalendar hideOlderThan 1
  186. attr BirthdayCalendar room Kalender
  187. attr BirthdayCalendar verbose 5
  188. #attr BirthdayCalendar SSLVerify 0
  189. #
  190. #Calview für den Geburtstagskalender
  191. #
  192. define BirthdayView CALVIEW BirthdayCalendar next
  193. attr BirthdayView DbLogExclude .*
  194. attr BirthdayView isbirthday 1
  195. attr BirthdayView maxreadings 10
  196. attr BirthdayView modes modeAlarm,modeStart,modeStarted,modeUpcoming
  197. attr BirthdayView room Kalender
  198. attr BirthdayView yobfield _summary
  199. define HolgerCal Calendar ical url https://calendar.google.com/calendar/ical/h.metzner%40gmx.de/private-011d5858b2dc126ee4322666f02c566c/basic.ics
  200. attr HolgerCal DbLogExclude .*
  201. attr HolgerCal hideOlderThan 1
  202. attr HolgerCal room Kalender
  203. define PitCal Calendar ical url https://calendar.google.com/calendar/ical/p.metzner2010%40gmail.com/private-16333283a0ee685b805f8413116436ae/basic.ics
  204. attr PitCal DbLogExclude .*
  205. attr PitCal hideOlderThan 1
  206. attr PitCal room Kalender
  207. define JuleCal Calendar ical url https://calendar.google.com/calendar/ical/jule.metzner.2011%40googlemail.com/private-1baed5bd6a50d6bf61cdc7bf925bb9eb/basic.ics
  208. attr JuleCal DbLogExclude .*
  209. attr JuleCal hideOlderThan 1
  210. attr JuleCal room Kalender
  211. define NeleCal Calendar ical url https://calendar.google.com/calendar/ical/n.metzner2012%40googlemail.com/private-c0f0a5712c56533b3c3c7b06d013d2d4/basic.ics
  212. attr NeleCal DbLogExclude .*
  213. attr NeleCal hideOlderThan 1
  214. attr NeleCal room Kalender
  215. define FamilyCal Calendar ical url https://calendar.google.com/calendar/ical/unhv7hnf2ujh85sl3m5e7rrj3g%40group.calendar.google.com/private-90140a5128b6b5b482d119b43ad79a39/basic.ics
  216. attr FamilyCal DbLogExclude .*
  217. attr FamilyCal hideOlderThan 1
  218. attr FamilyCal room Kalender
  219. define OurCalendars CALVIEW FamilyCal,PitCal,JuleCal,NeleCal,HolgerCal next 900
  220. attr OurCalendars DbLogExclude .*
  221. attr OurCalendars fulldaytext Ganztags
  222. attr OurCalendars modes next
  223. attr OurCalendars room Kalender
  224. attr OurCalendars sourcecolor FamilyCal:green,PitCal:darkblue,JuleCal:red,NeleCal:purple,HolgerCal:lightgreen
  225. attr OurCalendars timeshort 1
  226. define ku.Tablet FULLY 192.168.1.51 admin 3600
  227. attr ku.Tablet DbLogExclude .*
  228. attr ku.Tablet pollInterval 3600
  229. attr ku.Tablet room Küche,Interfaces
  230. define AbfallCal Calendar ical url https://calendar.google.com/calendar/ical/clua211u44hi3308sq48mjv96k%40group.calendar.google.com/private-fdbdd74c3688099af97446b66b6dbd23/basic.ics
  231. attr AbfallCal DbLogExclude .*
  232. attr AbfallCal room Kalender
  233. define myABFALL ABFALL AbfallCal 3600
  234. attr myABFALL DbLogExclude .*
  235. attr myABFALL calendarname_praefix 0
  236. attr myABFALL date_style date
  237. attr myABFALL delimiter_reading |
  238. attr myABFALL delimiter_text_reading und
  239. attr myABFALL room Kalender
  240. attr myABFALL stateFormat next_text in next_days Tag(en)
  241. attr myABFALL weekday_mapping Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag
  242. define UpdateCounter CustomReadings
  243. attr UpdateCounter event-on-update-reading FHEM,FTUI,ALL
  244. attr UpdateCounter group Update
  245. attr UpdateCounter icon system_fhem_reboot
  246. attr UpdateCounter interval 3600
  247. attr UpdateCounter readingDefinitions FHEM:qx(wget -U Mozilla -qO - https://fhem.de/fhemupdate/controls_fhem.txt| diff - /opt/fhem/FHEM/controls_fhem.txt |grep ">"|grep "UPD"|wc -l),FTUI:qx(wget -qO - https://raw.githubusercontent.com/knowthelist/fhem-tablet-ui/master/controls_fhemtabletui.txt| diff - /opt/fhem/FHEM/controls_fhemtabletui.txt |grep ">" |grep "UPD"|wc -l),DBPLAN:qx(wget -qO - https://raw.githubusercontent.com/jowiemann/DBPlan-for-Fhem/master/controls_dbplan.txt| diff - /opt/fhem/FHEM/controls_dbplan.txt |grep ">" |grep "UPD"|wc -l),ALL:{ReadingsNum($name, "FHEM", 0) + ReadingsNum($name, "FTUI", 0) + ReadingsNum($name, "DBPLAN", 0)}
  248. attr UpdateCounter room System
  249. attr UpdateCounter stateFormat ALL
  250. define UpdateDummy dummy
  251. attr UpdateDummy group Update
  252. attr UpdateDummy room System
  253. define UpdateFinished notify global:UPDATE.* set UpdateDummy done
  254. attr UpdateFinished group Update
  255. attr UpdateFinished room System
  256. define UpdateNew DOIF ([UpdateCounter] ne "0")(set UpdateDummy update)\
  257. DOELSEIF ([UpdateCounter] eq "0")(set UpdateDummy idle)
  258. attr UpdateNew do always
  259. attr UpdateNew group Update
  260. attr UpdateNew room System
  261. define UpdateStart notify UpdateDummy:start set UpdateDummy run;; {fhem ("update")}
  262. attr UpdateStart group Update
  263. attr UpdateStart room System
  264. define SystemRebootDummy dummy
  265. attr SystemRebootDummy group Update
  266. attr SystemRebootDummy room System
  267. define Systemreboot notify SystemRebootDummy:on {system ("sudo reboot")}
  268. attr Systemreboot group Update
  269. attr Systemreboot room System
  270. define TradfriGW TradfriGateway 192.168.1.74 gPf8AKIxwNOwmK3j
  271. attr TradfriGW DbLogExclude .*
  272. attr TradfriGW room Interfaces
  273. define tr_WhiteTemp01 TradfriDevice 65537
  274. attr tr_WhiteTemp01 DbLogExclude .*
  275. attr tr_WhiteTemp01 room Studio