fhem.cfg 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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
  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. telnetPort is not password protected\
  11. WEB 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 di_muellHinweis
  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 0
  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 file ./Muell-Hassloch-2019.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 172.19.0.4:1505
  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
  308. define atTradfriGWupdate at +*00:05:00 get TradfriGW deviceList
  309. attr atTradfriGWupdate DbLogExclude .*
  310. attr atTradfriGWupdate room Automation,Tradfri
  311. define st.HeatedWaterPump MQTT_DEVICE
  312. attr st.HeatedWaterPump DbLogExclude .*
  313. attr st.HeatedWaterPump DbLogInclude ENERGY_Power,ENERGY_Today,ENERGY_Yesterday
  314. attr st.HeatedWaterPump IODev Mosquitto
  315. attr st.HeatedWaterPump alias Warmwasserzirkulation
  316. attr st.HeatedWaterPump eventMap ON:on OFF:off
  317. attr st.HeatedWaterPump publishSet on off toggle /SmartHome/st/S20_03/cmnd/power
  318. attr st.HeatedWaterPump room Studio
  319. attr st.HeatedWaterPump stateFormat {sprintf("Leistung: %.1fW Tagesverbrauch: %.1fWh Status: %s", ReadingsVal($name,"ENERGY_Power",0), 1000*ReadingsVal($name,"ENERGY_Today",0), ReadingsVal($name,"state","OFF"))}
  320. attr st.HeatedWaterPump subscribeReading_sensor /SmartHome/st/S20_03/tele/SENSOR
  321. attr st.HeatedWaterPump subscribeReading_state /SmartHome/st/S20_03/stat/POWER
  322. attr st.HeatedWaterPump webCmd on:off:toggle
  323. define ej3 expandJSON st.HeatedWaterPump:sensor:.* .*
  324. attr ej3 DbLogExclude .*
  325. attr ej3 room Studio
  326. define myFritz FRITZBOX
  327. attr myFritz DbLogExclude .*
  328. attr myFritz allowTR064Command 1
  329. attr myFritz room Interfaces
  330. define PitHandy PRESENCE function {checkAllFritzMACpresent("D0:77:14:3C:AC:40")} 60 300
  331. attr PitHandy DbLogExclude .*
  332. attr PitHandy DbLogInclude state
  333. attr PitHandy room Bewohner
  334. define HolgerHandy PRESENCE function {checkAllFritzMACpresent("9C:F3:87:3A:F7:FF")} 60 300
  335. attr HolgerHandy DbLogExclude .*
  336. attr HolgerHandy DbLogInclude state
  337. attr HolgerHandy room Bewohner
  338. define JuleHandy PRESENCE function {checkAllFritzMACpresent("F0:D7:AA:2B:42:CE")} 60 300
  339. attr JuleHandy DbLogExclude .*
  340. attr JuleHandy DbLogInclude state
  341. attr JuleHandy room Bewohner
  342. define NeleHandy PRESENCE function {checkAllFritzMACpresent("80:58:F8:16:CA:EC")} 60 300
  343. attr NeleHandy DbLogExclude .*
  344. attr NeleHandy DbLogInclude state
  345. attr NeleHandy room Bewohner
  346. define plotResident SVG DBLogging:HolgerHandy:CURRENT
  347. attr plotResident DbLogExclude .*
  348. attr plotResident label "Holger: $data{currval1}, Pit: $data{currval2}, Jule: $data{currval3}, Nele: $data{currval4}"
  349. attr plotResident room Bewohner
  350. define plotHeatedWaterPump SVG DBLogging:st.HeatedWaterPump:CURRENT
  351. attr plotHeatedWaterPump DbLogExclude .*
  352. attr plotHeatedWaterPump room Studio
  353. attr plotHeatedWaterPump title "Leistung aktuell: $data{currval1}W - Verbrauch: $data{currval2}kWh - Vortag: $data{currval3}kWh"
  354. define TC_tr_ColorTempNele WeekdayTimer tr_ColorTempNele Mo-Fr|07:15|off
  355. attr TC_tr_ColorTempNele DbLogExclude .*
  356. attr TC_tr_ColorTempNele commandTemplate set $NAME $EVENT
  357. attr TC_tr_ColorTempNele room Automation,Nele
  358. define espBridge ESPEasy bridge 8383
  359. attr espBridge DbLogExclude .*
  360. attr espBridge authentication 0
  361. attr espBridge combineDevices 0
  362. attr espBridge group ESPEasy Bridge
  363. attr espBridge room ESPEasy
  364. define GasPulse ESPEasy 192.168.1.122 80 espBridge PulseCountKeller_Gaszaehler
  365. attr GasPulse DbLogExclude .*
  366. attr GasPulse IODev espBridge
  367. attr GasPulse Interval 300
  368. attr GasPulse group ESPEasy Device
  369. attr GasPulse presenceCheck 1
  370. attr GasPulse readingSwitchText 1
  371. attr GasPulse room Zähler,ESPEasy
  372. attr GasPulse setState 3
  373. attr GasPulse userReadings Absolut monotonic {ReadingsVal("GasPulse","Total",0)}
  374. define ESPEasy_PulseCountKeller_Stromzaehler ESPEasy 192.168.1.122 80 espBridge PulseCountKeller_Stromzaehler
  375. attr ESPEasy_PulseCountKeller_Stromzaehler DbLogExclude .*
  376. attr ESPEasy_PulseCountKeller_Stromzaehler IODev espBridge
  377. attr ESPEasy_PulseCountKeller_Stromzaehler Interval 300
  378. attr ESPEasy_PulseCountKeller_Stromzaehler group ESPEasy Device
  379. attr ESPEasy_PulseCountKeller_Stromzaehler presenceCheck 1
  380. attr ESPEasy_PulseCountKeller_Stromzaehler readingSwitchText 1
  381. attr ESPEasy_PulseCountKeller_Stromzaehler room ESPEasy,Zähler
  382. attr ESPEasy_PulseCountKeller_Stromzaehler setState 3
  383. attr ESPEasy_PulseCountKeller_Stromzaehler userReadings Absolut monotonic {ReadingsVal("ESPEasy_PulseCountKeller_Stromzaehler","Total",0)}
  384. define Gaszaehler GasCalculator GasPulse:Absolut.*
  385. attr Gaszaehler BasicPricePerAnnum 99.96
  386. attr Gaszaehler Currency €
  387. attr Gaszaehler DbLogExclude .*
  388. attr Gaszaehler GasCounterOffset 12383.0
  389. attr Gaszaehler GasCubicPerCounts 0.1
  390. attr Gaszaehler GasNominalHeatingValue 11.303
  391. attr Gaszaehler GasPricePerKWh 0.05
  392. attr Gaszaehler GaszValue 0.9593
  393. attr Gaszaehler MonthOfAnnualReading 2
  394. attr Gaszaehler MonthlyPayment 57
  395. attr Gaszaehler ReadingDestination CalculatorDevice
  396. attr Gaszaehler SiPrefixPower W
  397. attr Gaszaehler Volume m³
  398. attr Gaszaehler room ESPEasy,Zähler
  399. define Stromzaehler ElectricityCalculator ESPEasy_PulseCountKeller_Stromzaehler:Absolut.*
  400. attr Stromzaehler BasicPricePerAnnum 99.96
  401. attr Stromzaehler Currency €
  402. attr Stromzaehler DbLogExclude .*
  403. attr Stromzaehler ElectricityCounterOffset 58272.553
  404. attr Stromzaehler ElectricityKwhPerCounts 0.013333333333
  405. attr Stromzaehler ElectricityPricePerKWh 0.2443
  406. attr Stromzaehler MonthOfAnnualReading 1
  407. attr Stromzaehler MonthlyPayment 111.0
  408. attr Stromzaehler ReadingDestination CalculatorDevice
  409. attr Stromzaehler SiPrefixPower W
  410. attr Stromzaehler room ESPEasy,Zähler
  411. define HousekeepingBot TelegramBot
  412. attr HousekeepingBot DbLogExclude .*
  413. attr HousekeepingBot allowUnknownContacts 0
  414. attr HousekeepingBot defaultPeer Holger
  415. attr HousekeepingBot event-on-change-reading state
  416. attr HousekeepingBot event-on-update-reading msgText
  417. attr HousekeepingBot pollingTimeout 120
  418. attr HousekeepingBot room Automation,System
  419. define di_muellHinweis DOIF ([18:45] and [myABFALL:next_days] == 1) (set HousekeepingBot message 'Morgen werden [myABFALL:next_text] -Müll abgeholt')
  420. attr di_muellHinweis DbLogExclude .*
  421. attr di_muellHinweis devStateIcon 1
  422. attr di_muellHinweis room Automation
  423. define Spritpreise HTTPMOD https://creativecommons.tankerkoenig.de/json/prices.php?ids=e935427e-bd37-4daf-979c-b4fe2d112981,b01f066b-9b21-45c6-a687-00f5fb1a7463,51d4b632-a095-1aa0-e100-80009459e03a,b48682b4-d344-4bb9-8890-a8504912119d&apikey=9961c626-26de-7c29-a9b8-6e7bd9131779 900
  424. attr Spritpreise DbLogExclude .*
  425. attr Spritpreise enableControlSet 1
  426. attr Spritpreise extractAllJSON 1
  427. attr Spritpreise room Verkehr
  428. attr Spritpreise stateFormat Real: prices_51d4b632-a095-1aa0-e100-80009459e03a_diesel / Avia: prices_b01f066b-9b21-45c6-a687-00f5fb1a7463_diesel / Esso: prices_e935427e-bd37-4daf-979c-b4fe2d112981_diesel / Shell Ig: prices_b48682b4-d344-4bb9-8890-a8504912119d_diesel
  429. define Sonos SONOS 192.168.1.146:4711 30
  430. attr Sonos DbLogExclude .*
  431. attr Sonos room Sonos
  432. define Sonos_Kueche SONOSPLAYER RINCON_B8E9378F694401400_MR
  433. attr Sonos_Kueche DbLogExclude .*
  434. attr Sonos_Kueche alias Küche
  435. attr Sonos_Kueche generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
  436. attr Sonos_Kueche generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
  437. attr Sonos_Kueche generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
  438. attr Sonos_Kueche generateVolumeSlider 1
  439. attr Sonos_Kueche getAlarms 1
  440. attr Sonos_Kueche getTitleInfoFromMaster 1
  441. attr Sonos_Kueche group Kueche
  442. attr Sonos_Kueche icon icoSONOSPLAYER_icon-S1.png
  443. attr Sonos_Kueche minVolume 0
  444. attr Sonos_Kueche model Sonos_S1
  445. attr Sonos_Kueche room Sonos
  446. attr Sonos_Kueche simulateCurrentTrackPosition 1
  447. attr Sonos_Kueche sortby 1
  448. attr Sonos_Kueche stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
  449. attr Sonos_Kueche userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
  450. attr Sonos_Kueche webCmd Volume
  451. define Sonos_KuecheRG_Favourites readingsGroup Sonos_Kueche:<{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>
  452. attr Sonos_KuecheRG_Favourites DbLogExclude .*
  453. define Sonos_KuecheRG_Radios readingsGroup Sonos_Kueche:<{SONOS_getListRG($DEVICE,"Radios",1)}@Radios>
  454. attr Sonos_KuecheRG_Radios DbLogExclude .*
  455. define Sonos_KuecheRG_Playlists readingsGroup Sonos_Kueche:<{SONOS_getListRG($DEVICE,"Playlists")}@Playlists>
  456. attr Sonos_KuecheRG_Playlists DbLogExclude .*
  457. define Sonos_KuecheRG_Queue readingsGroup Sonos_Kueche:<{SONOS_getListRG($DEVICE,"Queue")}@Queue>
  458. attr Sonos_KuecheRG_Queue DbLogExclude .*
  459. define Sonos_Schlafzimmer SONOSPLAYER RINCON_7828CA1425E601400_MR
  460. attr Sonos_Schlafzimmer DbLogExclude .*
  461. attr Sonos_Schlafzimmer alias Schlafzimmer
  462. attr Sonos_Schlafzimmer generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
  463. attr Sonos_Schlafzimmer generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
  464. attr Sonos_Schlafzimmer generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
  465. attr Sonos_Schlafzimmer generateVolumeSlider 1
  466. attr Sonos_Schlafzimmer getAlarms 1
  467. attr Sonos_Schlafzimmer getTitleInfoFromMaster 1
  468. attr Sonos_Schlafzimmer group Schlafzimmer
  469. attr Sonos_Schlafzimmer icon icoSONOSPLAYER_icon-S13.png
  470. attr Sonos_Schlafzimmer minVolume 0
  471. attr Sonos_Schlafzimmer model Sonos_S13
  472. attr Sonos_Schlafzimmer room Sonos
  473. attr Sonos_Schlafzimmer simulateCurrentTrackPosition 1
  474. attr Sonos_Schlafzimmer sortby 1
  475. attr Sonos_Schlafzimmer stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
  476. attr Sonos_Schlafzimmer userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
  477. attr Sonos_Schlafzimmer webCmd Volume
  478. define Sonos_SchlafzimmerRG_Favourites readingsGroup Sonos_Schlafzimmer:<{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>
  479. attr Sonos_SchlafzimmerRG_Favourites DbLogExclude .*
  480. define Sonos_SchlafzimmerRG_Radios readingsGroup Sonos_Schlafzimmer:<{SONOS_getListRG($DEVICE,"Radios",1)}@Radios>
  481. attr Sonos_SchlafzimmerRG_Radios DbLogExclude .*
  482. define Sonos_SchlafzimmerRG_Playlists readingsGroup Sonos_Schlafzimmer:<{SONOS_getListRG($DEVICE,"Playlists")}@Playlists>
  483. attr Sonos_SchlafzimmerRG_Playlists DbLogExclude .*
  484. define Sonos_SchlafzimmerRG_Queue readingsGroup Sonos_Schlafzimmer:<{SONOS_getListRG($DEVICE,"Queue")}@Queue>
  485. attr Sonos_SchlafzimmerRG_Queue DbLogExclude .*
  486. define Sonos_Wohnzimmer SONOSPLAYER RINCON_000E58B7AF6B01400_MR
  487. attr Sonos_Wohnzimmer DbLogExclude .*
  488. attr Sonos_Wohnzimmer alias Wohnzimmer
  489. attr Sonos_Wohnzimmer generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
  490. attr Sonos_Wohnzimmer generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
  491. attr Sonos_Wohnzimmer generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
  492. attr Sonos_Wohnzimmer generateVolumeSlider 1
  493. attr Sonos_Wohnzimmer getAlarms 1
  494. attr Sonos_Wohnzimmer getTitleInfoFromMaster 1
  495. attr Sonos_Wohnzimmer group Wohnzimmer
  496. attr Sonos_Wohnzimmer icon icoSONOSPLAYER_icon-S9.png
  497. attr Sonos_Wohnzimmer minVolume 0
  498. attr Sonos_Wohnzimmer model Sonos_S9
  499. attr Sonos_Wohnzimmer room Sonos
  500. attr Sonos_Wohnzimmer simulateCurrentTrackPosition 1
  501. attr Sonos_Wohnzimmer sortby 1
  502. attr Sonos_Wohnzimmer stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
  503. attr Sonos_Wohnzimmer userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
  504. attr Sonos_Wohnzimmer webCmd Volume
  505. define Sonos_WohnzimmerRG_Favourites readingsGroup Sonos_Wohnzimmer:<{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>
  506. attr Sonos_WohnzimmerRG_Favourites DbLogExclude .*
  507. define Sonos_WohnzimmerRG_Radios readingsGroup Sonos_Wohnzimmer:<{SONOS_getListRG($DEVICE,"Radios",1)}@Radios>
  508. attr Sonos_WohnzimmerRG_Radios DbLogExclude .*
  509. define Sonos_WohnzimmerRG_Playlists readingsGroup Sonos_Wohnzimmer:<{SONOS_getListRG($DEVICE,"Playlists")}@Playlists>
  510. attr Sonos_WohnzimmerRG_Playlists DbLogExclude .*
  511. define Sonos_WohnzimmerRG_Queue readingsGroup Sonos_Wohnzimmer:<{SONOS_getListRG($DEVICE,"Queue")}@Queue>
  512. attr Sonos_WohnzimmerRG_Queue DbLogExclude .*
  513. define Sonos_Bad SONOSPLAYER RINCON_7828CA98144C01400_MR
  514. attr Sonos_Bad DbLogExclude .*
  515. attr Sonos_Bad alias Bad
  516. attr Sonos_Bad generateInfoSummarize1 <NormalAudio><Artist prefix="(" suffix=")"/><Title prefix=" '" suffix="'" ifempty="[Keine Musikdatei]"/><Album prefix=" vom Album '" suffix="'"/></NormalAudio> <StreamAudio><Sender suffix=":"/><SenderCurrent prefix=" '" suffix="' -"/><SenderInfo prefix=" "/></StreamAudio>
  517. attr Sonos_Bad generateInfoSummarize2 <TransportState/><InfoSummarize1 prefix=" => "/>
  518. attr Sonos_Bad generateInfoSummarize3 <Volume prefix="Lautstärke: "/><Mute instead=" ~ Kein Ton" ifempty=" ~ Ton An" emptyval="0"/> ~ Balance: <Balance ifempty="Mitte" emptyval="0"/><HeadphoneConnected instead=" ~ Kopfhörer aktiv" ifempty=" ~ Kein Kopfhörer" emptyval="0"/>
  519. attr Sonos_Bad generateVolumeSlider 1
  520. attr Sonos_Bad getAlarms 1
  521. attr Sonos_Bad getTitleInfoFromMaster 1
  522. attr Sonos_Bad group Bad
  523. attr Sonos_Bad icon icoSONOSPLAYER_icon-S12.png
  524. attr Sonos_Bad minVolume 0
  525. attr Sonos_Bad model Sonos_S12
  526. attr Sonos_Bad room Sonos
  527. attr Sonos_Bad simulateCurrentTrackPosition 1
  528. attr Sonos_Bad sortby 1
  529. attr Sonos_Bad stateFormat presence ~ currentTrackPositionSimulatedPercent% (currentTrackPositionSimulated / currentTrackDuration)
  530. attr Sonos_Bad userReadings Favourites:LastActionResult.*?GetFavouritesWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Radios:LastActionResult.*?GetRadiosWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Playlists:LastActionResult.*?GetPlaylistsWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, Queue:LastActionResult.*?GetQueueWithCovers.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }, currentTrackPosition:LastActionResult.*?GetCurrentTrackPosition.* { if (ReadingsVal($name, "LastActionResult", "") =~ m/.*?: (.*)/) { return $1;; } }
  531. attr Sonos_Bad webCmd Volume
  532. define Sonos_BadRG_Favourites readingsGroup Sonos_Bad:<{SONOS_getListRG($DEVICE,"Favourites",1)}@Favourites>
  533. attr Sonos_BadRG_Favourites DbLogExclude .*
  534. define Sonos_BadRG_Radios readingsGroup Sonos_Bad:<{SONOS_getListRG($DEVICE,"Radios",1)}@Radios>
  535. attr Sonos_BadRG_Radios DbLogExclude .*
  536. define Sonos_BadRG_Playlists readingsGroup Sonos_Bad:<{SONOS_getListRG($DEVICE,"Playlists")}@Playlists>
  537. attr Sonos_BadRG_Playlists DbLogExclude .*
  538. define Sonos_BadRG_Queue readingsGroup Sonos_Bad:<{SONOS_getListRG($DEVICE,"Queue")}@Queue>
  539. attr Sonos_BadRG_Queue DbLogExclude .*