fhem.cfg 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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 DbLogExclude .*
  65. attr Mosquitto room Interfaces
  66. define TabletUiEval HTTPSRV ftuidev/ ./www/tablet_dev TabletUI-Development
  67. attr TabletUiEval alias Tablet Eval
  68. attr TabletUiEval group Web-Access
  69. attr TabletUiEval icon smartphone
  70. attr TabletUiEval room System
  71. define TabletUiLatest HTTPSRV ftui/ ./www/tablet TabletUI-Newest
  72. attr TabletUiLatest alias Tablet Newest
  73. attr TabletUiLatest group Web-Access
  74. attr TabletUiLatest icon smartphone
  75. attr TabletUiLatest room System
  76. define TabletUi HTTPSRV ftuiiu/ ./www/tablet_inuse TabletUI
  77. attr TabletUi alias Tablet UI
  78. attr TabletUi group Web-Access
  79. attr TabletUi icon smartphone
  80. attr TabletUi room System
  81. define at_DbLoggingReduce at *03:00:00 set DBLogging reduceLogNbl 90 average
  82. attr at_DbLoggingReduce alias Database-Log Reduce
  83. attr at_DbLoggingReduce group Logging
  84. attr at_DbLoggingReduce icon system_fhem_update
  85. attr at_DbLoggingReduce room Log,System
  86. define Siri siri
  87. attr Siri room Interfaces
  88. define DBLogging_Reopen at +*00:15:00 set DBLogging reopen
  89. attr DBLogging_Reopen DbLogExclude .*
  90. attr DBLogging_Reopen alias Database-Log Reopen
  91. attr DBLogging_Reopen group Logging
  92. attr DBLogging_Reopen icon time_timer
  93. attr DBLogging_Reopen room Log,System
  94. define allowed_WEB allowed
  95. attr allowed_WEB alias WEB (Permissions)
  96. attr allowed_WEB group Web-Access
  97. attr allowed_WEB icon scene_keyboard
  98. attr allowed_WEB room System
  99. attr allowed_WEB validFor WEB
  100. define DOIFtools DOIFtools associated DOIF: UpdateNew diAkkuladenWandTabletKU
  101. attr DOIFtools DOIFtoolsMenuEntry 1
  102. attr DOIFtools group System
  103. attr DOIFtools icon helper_doiftools
  104. attr DOIFtools room System
  105. define DBLogging DbLog /opt/fhem/db.conf .*:.*
  106. attr DBLogging DbLogSelectionMode Exclude/Include
  107. attr DBLogging DbLogType Current/History
  108. attr DBLogging room Log
  109. #DB Auskunft
  110. define HaNW DBPlan 300
  111. attr HaNW DbLogExclude .*
  112. attr HaNW dbplan_destination Neustadt-Böbig
  113. attr HaNW dbplan_station Haßloch(Pfalz)
  114. attr HaNW room Verkehr
  115. #
  116. define HaMA DBPlan 300
  117. attr HaMA DbLogExclude .*
  118. attr HaMA dbplan_destination Mannheim Hbf
  119. attr HaMA dbplan_station Haßloch(Pfalz)
  120. attr HaMA room Verkehr
  121. #Traffic Module
  122. define trafficViaHockenheim TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  123. attr trafficViaHockenheim userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  124. attr trafficViaHockenheim DbLogExclude .*
  125. attr trafficViaHockenheim GoogleMapsCenter 49.317545, 8.437319
  126. attr trafficViaHockenheim GoogleMapsStroke #0080FF,6,50
  127. attr trafficViaHockenheim GoogleMapsTrafficLayer 1
  128. attr trafficViaHockenheim GoogleMapsZoom 11
  129. attr trafficViaHockenheim end_address Heidelberger Str., 69226 Nußloch
  130. attr trafficViaHockenheim includeReturn 1
  131. attr trafficViaHockenheim outputReadings text
  132. attr trafficViaHockenheim room Verkehr
  133. attr trafficViaHockenheim start_address Nelkenweg, 67454 Haßloch
  134. attr trafficViaHockenheim verbose 1
  135. attr trafficViaHockenheim waypoints 49.305870, 8.425785
  136. #
  137. define trafficViaTalhaus TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  138. attr trafficViaTalhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  139. attr trafficViaTalhaus DbLogExclude .*
  140. attr trafficViaTalhaus GoogleMapsCenter 49.317545, 8.437319
  141. attr trafficViaTalhaus GoogleMapsStroke #0080FF,6,40,#0080FF,6,40
  142. attr trafficViaTalhaus GoogleMapsTrafficLayer 1
  143. attr trafficViaTalhaus GoogleMapsZoom 11
  144. attr trafficViaTalhaus end_address Heidelberger Str., 69226 Nußloch
  145. attr trafficViaTalhaus includeReturn 1
  146. attr trafficViaTalhaus outputReadings text
  147. attr trafficViaTalhaus room Verkehr
  148. attr trafficViaTalhaus start_address Nelkenweg, 67454 Haßloch
  149. attr trafficViaTalhaus verbose 1
  150. attr trafficViaTalhaus waypoints 49.305870, 8.425785 | 49.3419634, 8.5320445
  151. #
  152. define trafficViaA61A6 TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  153. attr trafficViaA61A6 userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  154. attr trafficViaA61A6 DbLogExclude .*
  155. attr trafficViaA61A6 GoogleMapsCenter 49.317545, 8.437319
  156. attr trafficViaA61A6 GoogleMapsStroke #0080FF,6,50
  157. attr trafficViaA61A6 GoogleMapsTrafficLayer 1
  158. attr trafficViaA61A6 GoogleMapsZoom 11
  159. attr trafficViaA61A6 end_address Heidelberger Str., 69226 Nußloch
  160. attr trafficViaA61A6 includeReturn 1
  161. attr trafficViaA61A6 outputReadings text
  162. attr trafficViaA61A6 room Verkehr
  163. attr trafficViaA61A6 start_address Nelkenweg, 67454 Haßloch
  164. attr trafficViaA61A6 verbose 1
  165. attr trafficViaA61A6 waypoints 49.3892154, 8.3393097
  166. #
  167. define trafficViaA61Talhaus TRAFFIC AIzaSyD7nni3ARfIY94ex2hSznqRZdFtCKXfFvA 21600
  168. attr trafficViaA61Talhaus userattr DbLogExclude GoogleMapsCenter GoogleMapsStroke GoogleMapsTrafficLayer GoogleMapsZoom end_address includeReturn outputReadings start_address verbose waypoints
  169. attr trafficViaA61Talhaus DbLogExclude .*
  170. attr trafficViaA61Talhaus GoogleMapsCenter 49.317545, 8.437319
  171. attr trafficViaA61Talhaus GoogleMapsStroke #0080FF,6,50
  172. attr trafficViaA61Talhaus GoogleMapsTrafficLayer 1
  173. attr trafficViaA61Talhaus GoogleMapsZoom 11
  174. attr trafficViaA61Talhaus end_address Heidelberger Str., 69226 Nußloch
  175. attr trafficViaA61Talhaus includeReturn 1
  176. attr trafficViaA61Talhaus outputReadings text
  177. attr trafficViaA61Talhaus room Verkehr
  178. attr trafficViaA61Talhaus start_address Nelkenweg, 67454 Haßloch
  179. attr trafficViaA61Talhaus verbose 1
  180. attr trafficViaA61Talhaus waypoints 49.3892154, 8.3393097 | 49.3419634, 8.5320445
  181. define n_DbLogExclude notify global:DEFINED.* attr $EVTPART1 DbLogExclude .*
  182. attr n_DbLogExclude DbLogExclude .*
  183. attr n_DbLogExclude room Notify,Log
  184. #Google Geburtstags Kalender einbinden
  185. define BirthdayCalendar Calendar ical url https://calendar.google.com/calendar/ical/j68hdkq24psm96dckf22tvmmtg%40group.calendar.google.com/private-5fb2e08e8f24f38c8aad843434fed88a/basic.ics 21600
  186. attr BirthdayCalendar DbLogExclude .*
  187. attr BirthdayCalendar hideOlderThan 1
  188. attr BirthdayCalendar room Kalender
  189. attr BirthdayCalendar verbose 5
  190. #attr BirthdayCalendar SSLVerify 0
  191. #
  192. #Calview für den Geburtstagskalender
  193. #
  194. define BirthdayView CALVIEW BirthdayCalendar next
  195. attr BirthdayView DbLogExclude .*
  196. attr BirthdayView isbirthday 1
  197. attr BirthdayView maxreadings 10
  198. attr BirthdayView modes modeAlarm,modeStart,modeStarted,modeUpcoming
  199. attr BirthdayView room Kalender
  200. attr BirthdayView yobfield _summary
  201. define HolgerCal Calendar ical url https://calendar.google.com/calendar/ical/h.metzner%40gmx.de/private-011d5858b2dc126ee4322666f02c566c/basic.ics
  202. attr HolgerCal DbLogExclude .*
  203. attr HolgerCal hideOlderThan 1
  204. attr HolgerCal room Kalender
  205. define PitCal Calendar ical url https://calendar.google.com/calendar/ical/p.metzner2010%40gmail.com/private-16333283a0ee685b805f8413116436ae/basic.ics
  206. attr PitCal DbLogExclude .*
  207. attr PitCal hideOlderThan 1
  208. attr PitCal room Kalender
  209. define JuleCal Calendar ical url https://calendar.google.com/calendar/ical/jule.metzner.2011%40googlemail.com/private-1baed5bd6a50d6bf61cdc7bf925bb9eb/basic.ics
  210. attr JuleCal DbLogExclude .*
  211. attr JuleCal hideOlderThan 1
  212. attr JuleCal room Kalender
  213. define NeleCal Calendar ical url https://calendar.google.com/calendar/ical/n.metzner2012%40googlemail.com/private-c0f0a5712c56533b3c3c7b06d013d2d4/basic.ics
  214. attr NeleCal DbLogExclude .*
  215. attr NeleCal hideOlderThan 1
  216. attr NeleCal room Kalender
  217. define FamilyCal Calendar ical url https://calendar.google.com/calendar/ical/unhv7hnf2ujh85sl3m5e7rrj3g%40group.calendar.google.com/private-90140a5128b6b5b482d119b43ad79a39/basic.ics
  218. attr FamilyCal DbLogExclude .*
  219. attr FamilyCal hideOlderThan 1
  220. attr FamilyCal room Kalender
  221. define OurCalendars CALVIEW FamilyCal,PitCal,JuleCal,NeleCal,HolgerCal next 900
  222. attr OurCalendars DbLogExclude .*
  223. attr OurCalendars fulldaytext Ganztags
  224. attr OurCalendars modes next
  225. attr OurCalendars room Kalender
  226. attr OurCalendars sourcecolor FamilyCal:green,PitCal:darkblue,JuleCal:red,NeleCal:purple,HolgerCal:lightgreen
  227. attr OurCalendars timeshort 1
  228. define ku.Tablet FULLY 192.168.1.51 admin 300
  229. attr ku.Tablet DbLogExclude .*
  230. attr ku.Tablet DbLogInclude battery_level,power
  231. attr ku.Tablet alias Wandtablet
  232. attr ku.Tablet group Tablet
  233. attr ku.Tablet pollInterval 300
  234. attr ku.Tablet room Küche,Interfaces
  235. define AbfallCal Calendar ical url https://calendar.google.com/calendar/ical/clua211u44hi3308sq48mjv96k%40group.calendar.google.com/private-fdbdd74c3688099af97446b66b6dbd23/basic.ics
  236. attr AbfallCal DbLogExclude .*
  237. attr AbfallCal room Kalender
  238. define myABFALL ABFALL AbfallCal 3600
  239. attr myABFALL DbLogExclude .*
  240. attr myABFALL calendarname_praefix 0
  241. attr myABFALL date_style date
  242. attr myABFALL delimiter_reading |
  243. attr myABFALL delimiter_text_reading und
  244. attr myABFALL room Kalender
  245. attr myABFALL stateFormat next_text in next_days Tag(en)
  246. attr myABFALL weekday_mapping Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag
  247. define UpdateCounter CustomReadings
  248. attr UpdateCounter DbLogExclude .*
  249. attr UpdateCounter event-on-update-reading FHEM,FTUI,ALL
  250. attr UpdateCounter group Update
  251. attr UpdateCounter icon system_fhem_reboot
  252. attr UpdateCounter interval 3600
  253. 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)}
  254. attr UpdateCounter room System
  255. attr UpdateCounter stateFormat ALL
  256. define UpdateDummy dummy
  257. attr UpdateDummy group Update
  258. attr UpdateDummy room System
  259. define UpdateFinished notify global:UPDATE.* set UpdateDummy done
  260. attr UpdateFinished group Update
  261. attr UpdateFinished room System
  262. define UpdateNew DOIF ([UpdateCounter] ne "0")(set UpdateDummy update)\
  263. DOELSEIF ([UpdateCounter] eq "0")(set UpdateDummy idle)
  264. attr UpdateNew do always
  265. attr UpdateNew group Update
  266. attr UpdateNew room System
  267. define UpdateStart notify UpdateDummy:start set UpdateDummy run;; {fhem ("update")}
  268. attr UpdateStart group Update
  269. attr UpdateStart room System
  270. define SystemRebootDummy dummy
  271. attr SystemRebootDummy group Update
  272. attr SystemRebootDummy room System
  273. define Systemreboot notify SystemRebootDummy:on {system ("sudo reboot")}
  274. attr Systemreboot group Update
  275. attr Systemreboot room System
  276. define TradfriGW TradfriGateway 192.168.1.74 gPf8AKIxwNOwmK3j
  277. attr TradfriGW DbLogExclude .*
  278. attr TradfriGW room Interfaces,Tradfri
  279. define tr_WhiteTemp01 TradfriDevice 65537
  280. attr tr_WhiteTemp01 DbLogExclude .*
  281. attr tr_WhiteTemp01 room Tradfri,Studio
  282. define tr_ColorTempNele TradfriDevice 65539
  283. attr tr_ColorTempNele DbLogExclude .*
  284. attr tr_ColorTempNele room Nele,Tradfri
  285. define ku.Tabletpower MQTT_DEVICE
  286. attr ku.Tabletpower userattr subscribeReading_state
  287. attr ku.Tabletpower DbLogExclude .*
  288. attr ku.Tabletpower IODev Mosquitto
  289. attr ku.Tabletpower alias Tablet Netzteil
  290. attr ku.Tabletpower event-on-change-reading state
  291. attr ku.Tabletpower eventMap ON:on OFF:off
  292. attr ku.Tabletpower group Tablet
  293. attr ku.Tabletpower publishSet on off toggle /SmartHome/ku/S20_01/cmnd/power
  294. attr ku.Tabletpower room Küche
  295. attr ku.Tabletpower subscribeReading_state /SmartHome/ku/S20_01/stat/POWER
  296. attr ku.Tabletpower webCmd on:off:toggle
  297. define diAkkuladenWandTabletKU DOIF ([ku.Tablet:battery_level] < 25 and [ku.Tablet:power]eq'unplugged') (set ku.Tabletpower on) DOELSEIF ([ku.Tablet:battery_level] > 90 and [ku.Tablet:power]eq'plugged') (set ku.Tabletpower off) DOELSE
  298. attr diAkkuladenWandTabletKU DbLogExclude .*
  299. attr diAkkuladenWandTabletKU do always
  300. attr diAkkuladenWandTabletKU group Tablet
  301. attr diAkkuladenWandTabletKU room Automation,Küche
  302. attr diAkkuladenWandTabletKU wait 600:600
  303. define plotPowerTabletKu SVG DBLogging:ku.Tablet:CURRENT
  304. attr plotPowerTabletKu DbLogExclude .*
  305. attr plotPowerTabletKu group Tablet
  306. attr plotPowerTabletKu label "Battery Min: $data{min1}, Max: $data{max1}, Aktuell: $data{currval1} - Power: $data{currval2}"
  307. attr plotPowerTabletKu room Küche