fhem.cfg.demo 20 KB

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