fhem.cfg.demo 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. attr global userattr cmdIcon devStateIcon devStateStyle icon lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0 sortby structexclude webCmd webCmdLabel:textField-long widgetOverride
  2. attr global logfile -
  3. attr global modpath .
  4. attr global mseclog 1
  5. attr global room System
  6. attr global sendStatistics never
  7. attr global statefile ./demolog/fhem.save
  8. attr global verbose 3
  9. define WEB FHEMWEB 8083 global
  10. attr WEB JavaScripts codemirror/fhem_codemirror.js
  11. attr WEB defaultRoom Light
  12. attr WEB iconPath openautomation:fhemSVG:default
  13. attr WEB room System
  14. attr WEB sortRooms Light Cinema Residents Sensors System
  15. attr WEB styleData {\
  16. "f18": {\
  17. "Pinned.menu": true,\
  18. "cols.bg": "FFFFE7",\
  19. "cols.fg": "000000",\
  20. "cols.link": "278727",\
  21. "cols.evenrow": "F8F8E0",\
  22. "cols.oddrow": "F0F0D8",\
  23. "cols.header": "E0E0C8",\
  24. "cols.menu": "D7FFFF",\
  25. "cols.sel": "A0FFFF",\
  26. "cols.inpBack": "FFFFFF",\
  27. "savePinChanges": true,\
  28. "fixedInput": true,\
  29. "hidePin": true,\
  30. "showDragger": false,\
  31. "Pos.Room_Bla_svgZoomControl": {\
  32. "left": 412,\
  33. "top": 308,\
  34. "width": 1566,\
  35. "height": 0,\
  36. "oTop": 0,\
  37. "oLeft": 0\
  38. },\
  39. "Pos.Room_Bla_SVG_01_Garden": {\
  40. "left": 0,\
  41. "top": 218,\
  42. "width": 1566,\
  43. "height": 164,\
  44. "oTop": -164,\
  45. "oLeft": 0\
  46. },\
  47. "Pos.Room_Bla_SVG_05_Polar": {\
  48. "left": 0,\
  49. "top": 540,\
  50. "width": 1566,\
  51. "height": 304,\
  52. "oTop": -304,\
  53. "oLeft": 0\
  54. },\
  55. "Pos.Room_Sensors_grp_FileLog": {\
  56. "left": 600,\
  57. "top": 0,\
  58. "width": 260,\
  59. "height": 138,\
  60. "oTop": 20,\
  61. "oLeft": 0\
  62. },\
  63. "Pos.Room_Sensors_grp_Helper": {\
  64. "left": 40,\
  65. "top": -20,\
  66. "width": 260,\
  67. "height": 40,\
  68. "oTop": 40,\
  69. "oLeft": 0\
  70. },\
  71. "Pos.Room_Sensors_grp_Sensors": {\
  72. "left": 40,\
  73. "top": 60,\
  74. "width": 260,\
  75. "height": 60,\
  76. "oTop": 40,\
  77. "oLeft": 0\
  78. },\
  79. "Pos.Room_Sensors_svgZoomControl": {\
  80. "left": 100,\
  81. "top": 220,\
  82. "width": 1580,\
  83. "height": 0,\
  84. "oTop": 0,\
  85. "oLeft": 0\
  86. },\
  87. "Pos.Room_Sensors_SVG_01_Garden": {\
  88. "left": 0,\
  89. "top": 660,\
  90. "width": 1580,\
  91. "height": 180,\
  92. "oTop": -164,\
  93. "oLeft": 0\
  94. },\
  95. "Pos.Room_Sensors_SVG_02_Cellar": {\
  96. "left": 0,\
  97. "top": 840,\
  98. "width": 1580,\
  99. "height": 180,\
  100. "oTop": -164,\
  101. "oLeft": 0\
  102. },\
  103. "Pos.Room_Sensors_SVG_03_Dewpoint": {\
  104. "left": 0,\
  105. "top": 480,\
  106. "width": 1580,\
  107. "height": 180,\
  108. "oTop": -164,\
  109. "oLeft": 0\
  110. },\
  111. "Pos.Room_Sensors_SVG_04_Sun": {\
  112. "left": 0,\
  113. "top": 1020,\
  114. "width": 1580,\
  115. "height": 180,\
  116. "oTop": -164,\
  117. "oLeft": 0\
  118. },\
  119. "Pos.Room_Sensors_SVG_05_Polar": {\
  120. "left": 280,\
  121. "top": 300,\
  122. "width": 340,\
  123. "height": 320,\
  124. "oTop": -304,\
  125. "oLeft": 0\
  126. },\
  127. "Pos.style_list_Styles": {\
  128. "left": 20,\
  129. "top": 0,\
  130. "width": 240,\
  131. "height": 300,\
  132. "oTop": 20,\
  133. "oLeft": 0\
  134. },\
  135. "Pos.style_list_f18_special": {\
  136. "left": 20,\
  137. "top": 320,\
  138. "width": 240,\
  139. "height": 140,\
  140. "oTop": 40,\
  141. "oLeft": 0\
  142. },\
  143. "Pos.style_list_f18__Room_specific": {\
  144. "left": 280,\
  145. "top": -20,\
  146. "width": 240,\
  147. "height": 480,\
  148. "oTop": 40,\
  149. "oLeft": 0\
  150. },\
  151. "snapToGrid": true,\
  152. "Pos.Room_Cinema_grp_AV": {\
  153. "left": 0,\
  154. "top": 0,\
  155. "width": 560,\
  156. "height": 120,\
  157. "oTop": 20,\
  158. "oLeft": 0\
  159. },\
  160. "Pos.Room_Cinema_grp_Control": {\
  161. "left": 0,\
  162. "top": 140,\
  163. "width": 560,\
  164. "height": 40,\
  165. "oTop": 40,\
  166. "oLeft": 0\
  167. },\
  168. "Pos.Room_Cinema_grp_Light": {\
  169. "left": 0,\
  170. "top": 220,\
  171. "width": 560,\
  172. "height": 80,\
  173. "oTop": 40,\
  174. "oLeft": 0\
  175. },\
  176. "Pos.Room_Cinema_grp_Scenes": {\
  177. "left": 0,\
  178. "top": 360,\
  179. "width": 560,\
  180. "height": 198,\
  181. "oTop": 20,\
  182. "oLeft": 0\
  183. },\
  184. "Pos.Room_Residents_grp_Baby": {\
  185. "left": 0,\
  186. "top": 0,\
  187. "width": 280,\
  188. "height": 40,\
  189. "oTop": 20,\
  190. "oLeft": 0\
  191. },\
  192. "Pos.Room_Residents_grp_Daughter": {\
  193. "left": 0,\
  194. "top": 60,\
  195. "width": 280,\
  196. "height": 40,\
  197. "oTop": 40,\
  198. "oLeft": 0\
  199. },\
  200. "Pos.Room_Residents_grp_Father": {\
  201. "left": 0,\
  202. "top": 300,\
  203. "width": 280,\
  204. "height": 60,\
  205. "oTop": 40,\
  206. "oLeft": 0\
  207. },\
  208. "Pos.Room_Residents_grp_Guests": {\
  209. "left": 300,\
  210. "top": 180,\
  211. "width": 280,\
  212. "height": 80,\
  213. "oTop": 40,\
  214. "oLeft": 0\
  215. },\
  216. "Pos.Room_Residents_grp_Home_State": {\
  217. "left": 300,\
  218. "top": -20,\
  219. "width": 280,\
  220. "height": 160,\
  221. "oTop": 40,\
  222. "oLeft": 0\
  223. },\
  224. "Pos.Room_Residents_grp_Mother": {\
  225. "left": 0,\
  226. "top": 220,\
  227. "width": 280,\
  228. "height": 40,\
  229. "oTop": 40,\
  230. "oLeft": 0\
  231. },\
  232. "Pos.Room_Residents_grp_Son": {\
  233. "left": 0,\
  234. "top": 140,\
  235. "width": 280,\
  236. "height": 40,\
  237. "oTop": 40,\
  238. "oLeft": 0\
  239. },\
  240. "Pos.Room_Residents_grp_notify": {\
  241. "left": 300,\
  242. "top": 300,\
  243. "width": 280,\
  244. "height": 58,\
  245. "oTop": 40,\
  246. "oLeft": 0\
  247. },\
  248. "Pos.Room_undefined_grp_Color_Lights": {\
  249. "left": 0,\
  250. "top": 0,\
  251. "width": 640,\
  252. "height": 100,\
  253. "oTop": 20,\
  254. "oLeft": 0\
  255. },\
  256. "Pos.Room_undefined_grp_Notify": {\
  257. "left": 0,\
  258. "top": 120,\
  259. "width": 440,\
  260. "height": 40,\
  261. "oTop": 40,\
  262. "oLeft": 0\
  263. },\
  264. "Pos.Room_undefined_grp_Single_Lights": {\
  265. "left": 0,\
  266. "top": 200,\
  267. "width": 440,\
  268. "height": 160,\
  269. "oTop": 40,\
  270. "oLeft": 0\
  271. },\
  272. "Pos.Room_undefined_grp_Structure": {\
  273. "left": 0,\
  274. "top": 400,\
  275. "width": 440,\
  276. "height": 40,\
  277. "oTop": 40,\
  278. "oLeft": 0\
  279. },\
  280. "Pos.Room_undefined_grp_Timer": {\
  281. "left": 0,\
  282. "top": 480,\
  283. "width": 440,\
  284. "height": 80,\
  285. "oTop": 40,\
  286. "oLeft": 0\
  287. },\
  288. "Pos.Room_System_grp_CUL": {\
  289. "left": 0,\
  290. "top": 0,\
  291. "width": 240,\
  292. "height": 40,\
  293. "oTop": 20,\
  294. "oLeft": 0\
  295. },\
  296. "Pos.Room_System_grp_FHEMWEB": {\
  297. "left": 0,\
  298. "top": 60,\
  299. "width": 240,\
  300. "height": 40,\
  301. "oTop": 40,\
  302. "oLeft": 0\
  303. },\
  304. "Pos.Room_System_grp_FileLog": {\
  305. "left": 0,\
  306. "top": 120,\
  307. "width": 240,\
  308. "height": 40,\
  309. "oTop": 40,\
  310. "oLeft": 0\
  311. },\
  312. "Pos.Room_System_grp_Global": {\
  313. "left": 0,\
  314. "top": 180,\
  315. "width": 240,\
  316. "height": 40,\
  317. "oTop": 40,\
  318. "oLeft": 0\
  319. },\
  320. "Pos.Room_System_grp_autocreate": {\
  321. "left": 0,\
  322. "top": 240,\
  323. "width": 240,\
  324. "height": 40,\
  325. "oTop": 40,\
  326. "oLeft": 0\
  327. },\
  328. "Pos.Room_System_grp_eventTypes": {\
  329. "left": 0,\
  330. "top": 300,\
  331. "width": 240,\
  332. "height": 40,\
  333. "oTop": 40,\
  334. "oLeft": 0\
  335. },\
  336. "Pos.Room_System_grp_logProxy": {\
  337. "left": 0,\
  338. "top": 380,\
  339. "width": 240,\
  340. "height": 40,\
  341. "oTop": 40,\
  342. "oLeft": 0\
  343. },\
  344. "Pos.Room_System_grp_telnet": {\
  345. "left": 0,\
  346. "top": 440,\
  347. "width": 240,\
  348. "height": 40,\
  349. "oTop": 40,\
  350. "oLeft": 0\
  351. }\
  352. }\
  353. }
  354. attr WEB stylesheetPrefix f18
  355. # Fake FileLog entry, to access the fhem log from FHEMWEB
  356. define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
  357. attr Logfile room System
  358. define autocreate autocreate
  359. attr autocreate room System
  360. define eventTypes eventTypes demolog/eventTypes.txt
  361. attr eventTypes room System
  362. define CUL_0 CUL none 0000
  363. attr CUL_0 dummy 1
  364. attr CUL_0 room System
  365. define Outdoor FS20 1234 11
  366. attr Outdoor userattr Light Light_map structexclude
  367. attr Outdoor IODev CUL_0
  368. attr Outdoor Light AllLights
  369. attr Outdoor group Single Lights
  370. attr Outdoor icon light_outdoor
  371. attr Outdoor room Light
  372. define Office FS20 1234 12
  373. attr Office userattr Light Light_map structexclude
  374. attr Office IODev CUL_0
  375. attr Office Light AllLights
  376. attr Office group Single Lights
  377. attr Office icon light_office
  378. attr Office model fs20st
  379. attr Office room Light
  380. define Livingroom FS20 1234 13
  381. attr Livingroom userattr Light Light_map structexclude
  382. attr Livingroom IODev CUL_0
  383. attr Livingroom Light AllLights
  384. attr Livingroom eventMap off:dim0% on:dim100%
  385. attr Livingroom group Single Lights
  386. attr Livingroom icon light_pendant_light
  387. attr Livingroom model fs20di
  388. attr Livingroom room Light
  389. attr Livingroom webCmd dim
  390. define AllLights structure Light Alarm Livingroom Office Outdoor CT RGB
  391. attr AllLights devStateIcon undefined:light_question
  392. attr AllLights group Structure
  393. attr AllLights icon light_light
  394. attr AllLights room Light
  395. define Alarm FS20 1234 14
  396. attr Alarm userattr Light Light_map structexclude
  397. attr Alarm IODev CUL_0
  398. attr Alarm Light AllLights
  399. attr Alarm follow-on-for-timer 1
  400. attr Alarm group Single Lights
  401. attr Alarm icon light_wall_2
  402. attr Alarm room Light
  403. attr Alarm webCmd blink 5 1
  404. define Garden KS300 1234
  405. attr Garden IODev CUL_0
  406. attr Garden group Sensors
  407. attr Garden room Sensors
  408. define Log.Garden FileLog demolog/garden.log Sens.Out:T:.*
  409. attr Log.Garden room Sensors
  410. define Log.Predicted FileLog demolog/predicted.log predicted:T:.*
  411. attr Log.Predicted room Sensors
  412. define Cellar CUL_WS 1 -1 -3.5
  413. attr Cellar group Sensors
  414. attr Cellar room Sensors
  415. define SVG_01_Garden SVG Log.Garden:SVG_01_Garden:CURRENT
  416. attr SVG_01_Garden label "Temp: Min $data{min1}, Max $data{max1}, Last $data{currval1}"
  417. attr SVG_01_Garden room Sensors
  418. attr SVG_01_Garden startDate 2013-08-13
  419. define Log.Cellar FileLog demolog/cellar.log Cellar:T:.*
  420. attr Log.Cellar room Sensors
  421. define SVG_02_Cellar SVG Log.Cellar:SVG_02_Cellar:CURRENT
  422. attr SVG_02_Cellar label "Temp: Min $data{min1}, Max $data{max1}, Last $data{currval1}"
  423. attr SVG_02_Cellar room Sensors
  424. attr SVG_02_Cellar startDate 2013-08-13
  425. define Log.Dewpoint FileLog demolog/dewpoint.log .*dewpoint.*
  426. attr Log.Dewpoint room Sensors
  427. define dew_all dewpoint dewpoint .*
  428. attr dew_all group Helper
  429. attr dew_all room Sensors
  430. define SVG_03_Dewpoint SVG Log.Dewpoint:SVG_03_Dewpoint:CURRENT
  431. attr SVG_03_Dewpoint room Sensors
  432. attr SVG_03_Dewpoint startDate 2013-08-13
  433. define logProxy logProxy
  434. attr logProxy room System
  435. define SVG_04_Sun SVG logProxy:SVG_04_Sun:CURRENT
  436. attr SVG_04_Sun fixedrange year
  437. attr SVG_04_Sun room Sensors
  438. attr SVG_04_Sun title {"".logProxy_dec2hms($data{min1})." - ".logProxy_dec2hms($data{max1})." - ".logProxy_dec2hms($data{min2})." - ".logProxy_dec2hms($data{max2})}
  439. define SVG_05_Polar SVG logProxy:SVG_05_Polar:CURRENT
  440. attr SVG_05_Polar plotsize 340,300
  441. attr SVG_05_Polar room Sensors
  442. define sunRise at *{sunrise()} set Office on
  443. attr sunRise group Timer
  444. attr sunRise icon weather_sunrise
  445. attr sunRise room Light
  446. define sunSet at *{sunset()} set Office off
  447. attr sunSet group Timer
  448. attr sunSet icon weather_sunset
  449. attr sunSet room Light
  450. define outdoorNotifier notify Outdoor:.* set Office $EVENT
  451. attr outdoorNotifier group Notify
  452. attr outdoorNotifier icon light_ceiling_light
  453. attr outdoorNotifier room Light
  454. define Projector dummy
  455. attr Projector userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
  456. attr Projector devStateIcon on:control_on_off:off off:control_home:on
  457. attr Projector group AV
  458. attr Projector room Cinema
  459. attr Projector setList on:noArg off:noArg
  460. attr Projector webCmd on:off
  461. define TV dummy
  462. attr TV userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
  463. attr TV devStateIcon on:control_on_off:off off:control_home:on
  464. attr TV group AV
  465. attr TV room Cinema
  466. attr TV setList on:noArg off:noArg
  467. attr TV webCmd on:off
  468. define Screen dummy
  469. attr Screen userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
  470. attr Screen devStateIcon down:fts_garage_door_100:up up:fts_garage_door_10:down
  471. attr Screen group AV
  472. attr Screen room Cinema
  473. attr Screen setList up:noArg down:noArg
  474. attr Screen webCmd down:up
  475. define CeilingLight FS20 0001 01
  476. attr CeilingLight userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
  477. attr CeilingLight IODev CUL_0
  478. attr CeilingLight eventMap off:dim0% on:dim100%
  479. attr CeilingLight group Light
  480. attr CeilingLight icon light_ceiling_light
  481. attr CeilingLight model dummyDimmer
  482. attr CeilingLight room Cinema
  483. attr CeilingLight webCmd on:off:dim
  484. define ReadingLight FS20 0001 02
  485. attr ReadingLight userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
  486. attr ReadingLight IODev CUL_0
  487. attr ReadingLight eventMap off:dim0% on:dim100%
  488. attr ReadingLight group Light
  489. attr ReadingLight icon light_floor_lamp
  490. attr ReadingLight room Cinema
  491. attr ReadingLight webCmd on:off:dim:dim 50
  492. define wlCinema weblink htmlCode {LightScene_2html("lcCinema")}
  493. attr wlCinema room Cinema
  494. define lcCinema LightScene Projector Screen TV CeilingLight ReadingLight
  495. attr lcCinema alias Scenes
  496. attr lcCinema devStateIcon AllOff:control_home Break:rc_PAUSE Cinema:scene_cinema WatchTV:it_television
  497. attr lcCinema group Control
  498. attr lcCinema icon scene_scene
  499. attr lcCinema room Cinema
  500. attr lcCinema webCmd scene
  501. define rgr_Residents RESIDENTS
  502. attr rgr_Residents alias Residents
  503. attr rgr_Residents devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home
  504. attr rgr_Residents group Home State
  505. attr rgr_Residents icon control_building_filled
  506. attr rgr_Residents room Residents
  507. attr rgr_Residents sortby 2
  508. attr rgr_Residents webCmd state
  509. define rgr_Parents RESIDENTS
  510. attr rgr_Parents alias Parents
  511. attr rgr_Parents devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home
  512. attr rgr_Parents group Home State
  513. attr rgr_Parents icon control_building_filled
  514. attr rgr_Parents room Residents
  515. attr rgr_Parents sortby 2
  516. attr rgr_Parents webCmd state
  517. define rgr_Children RESIDENTS
  518. attr rgr_Children alias Children
  519. attr rgr_Children devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home
  520. attr rgr_Children group Home State
  521. attr rgr_Children icon control_building_filled
  522. attr rgr_Children room Residents
  523. attr rgr_Children sortby 3
  524. attr rgr_Children webCmd state
  525. define rgr_Guests RESIDENTS
  526. attr rgr_Guests alias Guests
  527. attr rgr_Guests devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home
  528. attr rgr_Guests group Home State
  529. attr rgr_Guests icon control_building_filled
  530. attr rgr_Guests room Residents
  531. attr rgr_Guests sortby 4
  532. attr rgr_Guests webCmd state
  533. define rg_Guest1 GUEST rgr_Residents,rgr_Guests
  534. attr rg_Guest1 alias Guest1
  535. attr rg_Guest1 devStateIcon .*home:user_available:absent .*absent:user_away:home .*none:control_building_empty:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  536. attr rg_Guest1 group Guests
  537. attr rg_Guest1 icon scene_visit_guests
  538. attr rg_Guest1 rg_autoGoneAfter 0.01
  539. attr rg_Guest1 rg_realname alias
  540. attr rg_Guest1 room Residents
  541. attr rg_Guest1 sortby 1
  542. attr rg_Guest1 webCmd state
  543. define rg_Guest2 GUEST rgr_Residents,rgr_Guests
  544. attr rg_Guest2 alias Guest2
  545. attr rg_Guest2 devStateIcon .*home:user_available:absent .*absent:user_away:home .*none:control_building_empty:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  546. attr rg_Guest2 group Guests
  547. attr rg_Guest2 icon scene_visit_guests
  548. attr rg_Guest2 rg_autoGoneAfter 0.01
  549. attr rg_Guest2 rg_realname alias
  550. attr rg_Guest2 room Residents
  551. attr rg_Guest2 sortby 1
  552. attr rg_Guest2 webCmd state
  553. define rr_Father ROOMMATE rgr_Residents,rgr_Parents
  554. attr rr_Father alias Status
  555. attr rr_Father devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  556. attr rr_Father group Father
  557. attr rr_Father icon status_available
  558. attr rr_Father room Residents
  559. attr rr_Father rr_autoGoneAfter 0.1
  560. attr rr_Father sortby 0
  561. attr rr_Father webCmd state
  562. define rr_Mother ROOMMATE rgr_Residents,rgr_Parents
  563. attr rr_Mother alias Status
  564. attr rr_Mother devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  565. attr rr_Mother group Mother
  566. attr rr_Mother icon status_available
  567. attr rr_Mother room Residents
  568. attr rr_Mother rr_autoGoneAfter 0.1
  569. attr rr_Mother rr_passPresenceTo rr_Baby
  570. attr rr_Mother sortby 0
  571. attr rr_Mother webCmd state
  572. define rr_Daughter ROOMMATE rgr_Residents,rgr_Children
  573. attr rr_Daughter alias Status
  574. attr rr_Daughter devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  575. attr rr_Daughter group Daughter
  576. attr rr_Daughter icon status_available
  577. attr rr_Daughter room Residents
  578. attr rr_Daughter sortby 0
  579. attr rr_Daughter webCmd state
  580. define rr_Son ROOMMATE rgr_Residents,rgr_Children
  581. attr rr_Son alias Status
  582. attr rr_Son devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  583. attr rr_Son group Son
  584. attr rr_Son icon status_available
  585. attr rr_Son room Residents
  586. attr rr_Son sortby 0
  587. attr rr_Son webCmd state
  588. define AllResidentsAway notify rgr_Residents:(absent|gone) set AllLights off;;set lcCinema scene AllOff
  589. attr AllResidentsAway room Residents
  590. define ResidentsComeHome notify rgr_Residents:home set Outdoor on
  591. attr ResidentsComeHome room Residents
  592. define rr_Baby ROOMMATE rgr_Residents,rgr_Children
  593. attr rr_Baby alias Status
  594. attr rr_Baby devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown
  595. attr rr_Baby group Baby
  596. attr rr_Baby icon status_available
  597. attr rr_Baby room Residents
  598. attr rr_Baby sortby 0
  599. attr rr_Baby webCmd state
  600. define RGB readingsProxy RGB
  601. attr RGB userattr Light Light_map structexclude
  602. attr RGB Light AllLights
  603. attr RGB alias RGB Light
  604. attr RGB comment light with the ability to change RGB color
  605. attr RGB devStateIcon {Color::devStateIcon("RGB","rgb","rgb","state")}
  606. attr RGB group Color Lights
  607. attr RGB room Light
  608. attr RGB setFn {if( $CMD =~ m/on|off/ ) { $ARGS=$CMD;;$CMD = "state" } else {fhem ("setreading $DEVICE state on");;} if( $CMD =~ m/hue/ ) {my ($r,$g,$b) = Color::hsv2rgb($ARGS/360,1,1);; my $rgb = Color::rgb2hex( $r*255, $g*255, $b*255 );; fhem ("setreading $DEVICE rgb $rgb");;} if( $CMD =~ m/rgb/ && $ARGS =~ m/^(..)(..)(..)/ ) {my( $r, $g, $b ) = (hex($1)/255.0, hex($2)/255.0, hex($3)/255.0);; my ($h,$s,$v) = Color::rgb2hsv($r,$g,$b);; my $hue = int($h*359);; fhem ("setreading $DEVICE hue $hue");;} fhem ("setreading $DEVICE $CMD $ARGS");;return undef;;}
  609. attr RGB setList on:noArg off:noArg rgb:colorpicker,RGB hue:colorpicker,HUE,0,1,359
  610. attr RGB webCmd hue:rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:rgb ffffff:on:off
  611. define colorInit notify global:INITIALIZED {use Color;;Color_Initialize()}
  612. attr colorInit room hidden
  613. define CT readingsProxy CT
  614. attr CT userattr Light Light_map structexclude
  615. attr CT Light AllLights
  616. attr CT alias CT Light
  617. attr CT comment light with the ability to change the color temperature
  618. attr CT devStateIcon {Color::devStateIcon("CT","rgb","rgb","state")}
  619. attr CT getFn { my ($r,$g,$b) = Color::ct2rgb( ReadingsVal($DEVICE,"ct",333) );; return (Color::rgb2hex($r,$g,$b), 1);; }
  620. attr CT getList rgb:noArg
  621. attr CT group Color Lights
  622. attr CT room Light
  623. attr CT setFn {if( $CMD =~ m/on|off/ ) { $ARGS=$CMD;;$CMD = "state" } else {fhem ("setreading $DEVICE state on");;} fhem ("setreading $DEVICE $CMD $ARGS");;return undef;;}
  624. attr CT setList on:noArg off:noArg ct:colorpicker,CT,2000,1,6500
  625. attr CT webCmd ct::ct 2040:ct 2630:ct 3703:ct 6250:on:off
  626. define Weather.weblink weblink htmlCode { WeatherAsHtmlH("Weather") }
  627. attr Weather.weblink alias Weather Forecast
  628. attr Weather.weblink room Weather