2023-05-28 12:25:25 +00:00
|
|
|
attr global disableFeatures securityCheck
|
2018-07-15 14:08:15 +00:00
|
|
|
attr global mseclog 1
|
2013-09-22 12:33:25 +00:00
|
|
|
attr global room System
|
|
|
|
attr global sendStatistics never
|
|
|
|
attr global statefile ./demolog/fhem.save
|
|
|
|
|
2019-06-13 08:16:54 +00:00
|
|
|
define telnet telnet 7072 global
|
|
|
|
|
2013-09-22 12:33:25 +00:00
|
|
|
define WEB FHEMWEB 8083 global
|
2014-04-20 09:04:19 +00:00
|
|
|
attr WEB JavaScripts codemirror/fhem_codemirror.js
|
2014-10-04 11:00:37 +00:00
|
|
|
attr WEB defaultRoom Light
|
2015-01-17 17:04:17 +00:00
|
|
|
attr WEB iconPath openautomation:fhemSVG:default
|
2013-09-22 12:33:25 +00:00
|
|
|
attr WEB room System
|
2014-02-17 19:54:44 +00:00
|
|
|
attr WEB sortRooms Light Cinema Residents Sensors System
|
2018-07-15 14:08:15 +00:00
|
|
|
attr WEB styleData {\
|
|
|
|
"f18": {\
|
|
|
|
"Pinned.menu": true,\
|
|
|
|
"cols.bg": "FFFFE7",\
|
|
|
|
"cols.fg": "000000",\
|
|
|
|
"cols.link": "278727",\
|
|
|
|
"cols.evenrow": "F8F8E0",\
|
|
|
|
"cols.oddrow": "F0F0D8",\
|
|
|
|
"cols.header": "E0E0C8",\
|
|
|
|
"cols.menu": "D7FFFF",\
|
|
|
|
"cols.sel": "A0FFFF",\
|
|
|
|
"cols.inpBack": "FFFFFF",\
|
|
|
|
"savePinChanges": true,\
|
|
|
|
"fixedInput": true,\
|
|
|
|
"hidePin": true,\
|
|
|
|
"showDragger": false,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_Bla_svgZoomControl": {\
|
|
|
|
"left": 412,\
|
|
|
|
"top": 308,\
|
|
|
|
"width": 1566,\
|
|
|
|
"height": 0,\
|
|
|
|
"oTop": 0,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Bla_SVG_01_Garden": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 218,\
|
|
|
|
"width": 1566,\
|
|
|
|
"height": 164,\
|
|
|
|
"oTop": -164,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Bla_SVG_05_Polar": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 540,\
|
|
|
|
"width": 1566,\
|
|
|
|
"height": 304,\
|
|
|
|
"oTop": -304,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_grp_FileLog": {\
|
|
|
|
"left": 600,\
|
|
|
|
"top": 0,\
|
|
|
|
"width": 260,\
|
|
|
|
"height": 138,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_grp_Helper": {\
|
|
|
|
"left": 40,\
|
|
|
|
"top": -20,\
|
|
|
|
"width": 260,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_grp_Sensors": {\
|
|
|
|
"left": 40,\
|
|
|
|
"top": 60,\
|
|
|
|
"width": 260,\
|
|
|
|
"height": 60,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_svgZoomControl": {\
|
|
|
|
"left": 100,\
|
|
|
|
"top": 220,\
|
|
|
|
"width": 1580,\
|
|
|
|
"height": 0,\
|
|
|
|
"oTop": 0,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_SVG_01_Garden": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 660,\
|
|
|
|
"width": 1580,\
|
|
|
|
"height": 180,\
|
|
|
|
"oTop": -164,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_SVG_02_Cellar": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 840,\
|
|
|
|
"width": 1580,\
|
|
|
|
"height": 180,\
|
|
|
|
"oTop": -164,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_SVG_03_Dewpoint": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 480,\
|
|
|
|
"width": 1580,\
|
|
|
|
"height": 180,\
|
|
|
|
"oTop": -164,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_SVG_04_Sun": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 1020,\
|
|
|
|
"width": 1580,\
|
|
|
|
"height": 180,\
|
|
|
|
"oTop": -164,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Sensors_SVG_05_Polar": {\
|
|
|
|
"left": 280,\
|
|
|
|
"top": 300,\
|
|
|
|
"width": 340,\
|
|
|
|
"height": 320,\
|
|
|
|
"oTop": -304,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
2018-07-15 14:08:15 +00:00
|
|
|
"Pos.style_list_Styles": {\
|
|
|
|
"left": 20,\
|
|
|
|
"top": 0,\
|
|
|
|
"width": 240,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"height": 300,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_f18_special": {\
|
|
|
|
"left": 20,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"top": 320,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"width": 240,\
|
|
|
|
"height": 140,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_f18__Room_specific": {\
|
|
|
|
"left": 280,\
|
|
|
|
"top": -20,\
|
|
|
|
"width": 240,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"height": 480,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"snapToGrid": true,\
|
|
|
|
"Pos.Room_Cinema_grp_AV": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 0,\
|
|
|
|
"width": 560,\
|
|
|
|
"height": 120,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
|
|
|
"Pos.Room_Cinema_grp_Control": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 140,\
|
|
|
|
"width": 560,\
|
|
|
|
"height": 40,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
|
|
|
"Pos.Room_Cinema_grp_Light": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 220,\
|
|
|
|
"width": 560,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"height": 80,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
|
|
|
"Pos.Room_Cinema_grp_Scenes": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 360,\
|
|
|
|
"width": 560,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"height": 198,\
|
|
|
|
"oTop": 20,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_Residents_grp_Baby": {\
|
2018-07-15 14:08:15 +00:00
|
|
|
"left": 0,\
|
|
|
|
"top": 0,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"width": 280,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_Residents_grp_Daughter": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 60,\
|
|
|
|
"width": 280,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Father": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 300,\
|
|
|
|
"width": 280,\
|
2019-05-04 11:50:15 +00:00
|
|
|
"height": 40,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Guests": {\
|
|
|
|
"left": 300,\
|
2019-05-04 11:50:15 +00:00
|
|
|
"top": 220,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"width": 280,\
|
2019-05-04 19:00:11 +00:00
|
|
|
"height": 200,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Home_State": {\
|
|
|
|
"left": 300,\
|
|
|
|
"top": -20,\
|
|
|
|
"width": 280,\
|
2019-05-04 11:50:15 +00:00
|
|
|
"height": 200,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Mother": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 220,\
|
|
|
|
"width": 280,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Son": {\
|
2018-07-15 14:08:15 +00:00
|
|
|
"left": 0,\
|
|
|
|
"top": 140,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"width": 280,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_Residents_grp_notify": {\
|
|
|
|
"left": 300,\
|
2019-05-04 19:00:11 +00:00
|
|
|
"top": 460,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"width": 280,\
|
|
|
|
"height": 58,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_undefined_grp_Color_Lights": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 0,\
|
|
|
|
"width": 640,\
|
|
|
|
"height": 100,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_undefined_grp_Notify": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 120,\
|
|
|
|
"width": 440,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_undefined_grp_Single_Lights": {\
|
2018-07-15 14:08:15 +00:00
|
|
|
"left": 0,\
|
|
|
|
"top": 200,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"width": 440,\
|
|
|
|
"height": 160,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.Room_undefined_grp_Structure": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 400,\
|
|
|
|
"width": 440,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"height": 40,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
},\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_undefined_grp_Timer": {\
|
2018-07-15 14:08:15 +00:00
|
|
|
"left": 0,\
|
2018-08-26 12:24:57 +00:00
|
|
|
"top": 480,\
|
|
|
|
"width": 440,\
|
|
|
|
"height": 80,\
|
|
|
|
"oTop": 40,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
2018-08-26 12:24:57 +00:00
|
|
|
"Pos.Room_System_grp_telnet": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 440,\
|
|
|
|
"width": 240,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
2018-07-15 14:08:15 +00:00
|
|
|
"oLeft": 0\
|
2019-05-04 11:50:15 +00:00
|
|
|
},\
|
|
|
|
"Pos.Room_Residents_grp_Pets": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 380,\
|
|
|
|
"width": 280,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 40,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_config_file": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 0,\
|
|
|
|
"width": 320,\
|
|
|
|
"height": 40,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_Own_modules_and_helper_files": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 80,\
|
|
|
|
"width": 320,\
|
|
|
|
"height": 60,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_Gplot_files": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 160,\
|
|
|
|
"width": 320,\
|
|
|
|
"height": 2940,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
|
|
|
},\
|
|
|
|
"Pos.style_list_Style_files": {\
|
|
|
|
"left": 0,\
|
|
|
|
"top": 3120,\
|
|
|
|
"width": 320,\
|
|
|
|
"height": 1060,\
|
|
|
|
"oTop": 20,\
|
|
|
|
"oLeft": 0\
|
2018-07-15 14:08:15 +00:00
|
|
|
}\
|
|
|
|
}\
|
|
|
|
}
|
|
|
|
attr WEB stylesheetPrefix f18
|
2013-09-22 12:33:25 +00:00
|
|
|
|
|
|
|
# Fake FileLog entry, to access the fhem log from FHEMWEB
|
|
|
|
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
|
|
|
|
attr Logfile room System
|
|
|
|
|
|
|
|
define autocreate autocreate
|
|
|
|
attr autocreate room System
|
2014-11-15 19:43:47 +00:00
|
|
|
define eventTypes eventTypes demolog/eventTypes.txt
|
|
|
|
attr eventTypes room System
|
2015-01-18 14:25:06 +00:00
|
|
|
|
2013-09-22 12:33:25 +00:00
|
|
|
define CUL_0 CUL none 0000
|
|
|
|
attr CUL_0 dummy 1
|
|
|
|
attr CUL_0 room System
|
|
|
|
define Outdoor FS20 1234 11
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Outdoor userattr Light Light_map structexclude
|
2014-04-20 09:04:19 +00:00
|
|
|
attr Outdoor IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Outdoor Light AllLights
|
|
|
|
attr Outdoor group Single Lights
|
|
|
|
attr Outdoor icon light_outdoor
|
|
|
|
attr Outdoor room Light
|
|
|
|
define Office FS20 1234 12
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Office userattr Light Light_map structexclude
|
2014-04-20 09:04:19 +00:00
|
|
|
attr Office IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Office Light AllLights
|
|
|
|
attr Office group Single Lights
|
|
|
|
attr Office icon light_office
|
|
|
|
attr Office model fs20st
|
|
|
|
attr Office room Light
|
|
|
|
define Livingroom FS20 1234 13
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Livingroom userattr Light Light_map structexclude
|
2014-04-20 09:04:19 +00:00
|
|
|
attr Livingroom IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Livingroom Light AllLights
|
|
|
|
attr Livingroom eventMap off:dim0% on:dim100%
|
|
|
|
attr Livingroom group Single Lights
|
|
|
|
attr Livingroom icon light_pendant_light
|
|
|
|
attr Livingroom model fs20di
|
|
|
|
attr Livingroom room Light
|
|
|
|
attr Livingroom webCmd dim
|
2015-01-10 16:54:23 +00:00
|
|
|
define AllLights structure Light Alarm Livingroom Office Outdoor CT RGB
|
2013-09-22 12:33:25 +00:00
|
|
|
attr AllLights devStateIcon undefined:light_question
|
|
|
|
attr AllLights group Structure
|
|
|
|
attr AllLights icon light_light
|
|
|
|
attr AllLights room Light
|
|
|
|
define Alarm FS20 1234 14
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Alarm userattr Light Light_map structexclude
|
2014-04-20 09:04:19 +00:00
|
|
|
attr Alarm IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Alarm Light AllLights
|
|
|
|
attr Alarm follow-on-for-timer 1
|
|
|
|
attr Alarm group Single Lights
|
|
|
|
attr Alarm icon light_wall_2
|
|
|
|
attr Alarm room Light
|
|
|
|
attr Alarm webCmd blink 5 1
|
|
|
|
define Garden KS300 1234
|
2014-04-20 09:04:19 +00:00
|
|
|
attr Garden IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Garden group Sensors
|
|
|
|
attr Garden room Sensors
|
|
|
|
define Log.Garden FileLog demolog/garden.log Sens.Out:T:.*
|
|
|
|
attr Log.Garden room Sensors
|
2015-01-24 08:53:38 +00:00
|
|
|
define Log.Predicted FileLog demolog/predicted.log predicted:T:.*
|
|
|
|
attr Log.Predicted room Sensors
|
2013-09-22 12:33:25 +00:00
|
|
|
define Cellar CUL_WS 1 -1 -3.5
|
|
|
|
attr Cellar group Sensors
|
|
|
|
attr Cellar room Sensors
|
|
|
|
define SVG_01_Garden SVG Log.Garden:SVG_01_Garden:CURRENT
|
|
|
|
attr SVG_01_Garden label "Temp: Min $data{min1}, Max $data{max1}, Last $data{currval1}"
|
|
|
|
attr SVG_01_Garden room Sensors
|
|
|
|
attr SVG_01_Garden startDate 2013-08-13
|
|
|
|
define Log.Cellar FileLog demolog/cellar.log Cellar:T:.*
|
|
|
|
attr Log.Cellar room Sensors
|
|
|
|
define SVG_02_Cellar SVG Log.Cellar:SVG_02_Cellar:CURRENT
|
|
|
|
attr SVG_02_Cellar label "Temp: Min $data{min1}, Max $data{max1}, Last $data{currval1}"
|
|
|
|
attr SVG_02_Cellar room Sensors
|
|
|
|
attr SVG_02_Cellar startDate 2013-08-13
|
|
|
|
define Log.Dewpoint FileLog demolog/dewpoint.log .*dewpoint.*
|
|
|
|
attr Log.Dewpoint room Sensors
|
|
|
|
define dew_all dewpoint dewpoint .*
|
|
|
|
attr dew_all group Helper
|
|
|
|
attr dew_all room Sensors
|
|
|
|
define SVG_03_Dewpoint SVG Log.Dewpoint:SVG_03_Dewpoint:CURRENT
|
|
|
|
attr SVG_03_Dewpoint room Sensors
|
|
|
|
attr SVG_03_Dewpoint startDate 2013-08-13
|
2015-01-24 08:53:38 +00:00
|
|
|
define logProxy logProxy
|
|
|
|
attr logProxy room System
|
|
|
|
define SVG_04_Sun SVG logProxy:SVG_04_Sun:CURRENT
|
|
|
|
attr SVG_04_Sun fixedrange year
|
2018-07-15 14:08:15 +00:00
|
|
|
attr SVG_04_Sun room Sensors
|
2015-01-24 08:53:38 +00:00
|
|
|
attr SVG_04_Sun title {"".logProxy_dec2hms($data{min1})." - ".logProxy_dec2hms($data{max1})." - ".logProxy_dec2hms($data{min2})." - ".logProxy_dec2hms($data{max2})}
|
|
|
|
define SVG_05_Polar SVG logProxy:SVG_05_Polar:CURRENT
|
|
|
|
attr SVG_05_Polar plotsize 340,300
|
2018-07-15 14:08:15 +00:00
|
|
|
attr SVG_05_Polar room Sensors
|
2015-01-24 08:53:38 +00:00
|
|
|
|
2013-09-22 12:33:25 +00:00
|
|
|
define sunRise at *{sunrise()} set Office on
|
|
|
|
attr sunRise group Timer
|
|
|
|
attr sunRise icon weather_sunrise
|
|
|
|
attr sunRise room Light
|
|
|
|
define sunSet at *{sunset()} set Office off
|
|
|
|
attr sunSet group Timer
|
|
|
|
attr sunSet icon weather_sunset
|
|
|
|
attr sunSet room Light
|
|
|
|
define outdoorNotifier notify Outdoor:.* set Office $EVENT
|
|
|
|
attr outdoorNotifier group Notify
|
|
|
|
attr outdoorNotifier icon light_ceiling_light
|
|
|
|
attr outdoorNotifier room Light
|
|
|
|
|
|
|
|
define Projector dummy
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Projector userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Projector devStateIcon on:control_on_off:off off:control_home:on
|
|
|
|
attr Projector group AV
|
|
|
|
attr Projector room Cinema
|
|
|
|
attr Projector setList on:noArg off:noArg
|
|
|
|
attr Projector webCmd on:off
|
|
|
|
define TV dummy
|
2014-10-04 11:00:37 +00:00
|
|
|
attr TV userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr TV devStateIcon on:control_on_off:off off:control_home:on
|
|
|
|
attr TV group AV
|
|
|
|
attr TV room Cinema
|
|
|
|
attr TV setList on:noArg off:noArg
|
|
|
|
attr TV webCmd on:off
|
|
|
|
define Screen dummy
|
2014-10-04 11:00:37 +00:00
|
|
|
attr Screen userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr Screen devStateIcon down:fts_garage_door_100:up up:fts_garage_door_10:down
|
|
|
|
attr Screen group AV
|
|
|
|
attr Screen room Cinema
|
|
|
|
attr Screen setList up:noArg down:noArg
|
|
|
|
attr Screen webCmd down:up
|
|
|
|
define CeilingLight FS20 0001 01
|
2014-10-04 11:00:37 +00:00
|
|
|
attr CeilingLight userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
|
2014-04-20 09:04:19 +00:00
|
|
|
attr CeilingLight IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr CeilingLight eventMap off:dim0% on:dim100%
|
|
|
|
attr CeilingLight group Light
|
|
|
|
attr CeilingLight icon light_ceiling_light
|
|
|
|
attr CeilingLight model dummyDimmer
|
|
|
|
attr CeilingLight room Cinema
|
|
|
|
attr CeilingLight webCmd on:off:dim
|
|
|
|
define ReadingLight FS20 0001 02
|
2014-10-04 11:00:37 +00:00
|
|
|
attr ReadingLight userattr lightSceneParamsToSave lightSceneRestoreOnlyIfChanged:1,0
|
2014-04-20 09:04:19 +00:00
|
|
|
attr ReadingLight IODev CUL_0
|
2013-09-22 12:33:25 +00:00
|
|
|
attr ReadingLight eventMap off:dim0% on:dim100%
|
|
|
|
attr ReadingLight group Light
|
|
|
|
attr ReadingLight icon light_floor_lamp
|
|
|
|
attr ReadingLight room Cinema
|
2015-01-10 16:54:23 +00:00
|
|
|
attr ReadingLight webCmd on:off:dim:dim 50
|
2013-09-22 12:33:25 +00:00
|
|
|
define wlCinema weblink htmlCode {LightScene_2html("lcCinema")}
|
|
|
|
attr wlCinema room Cinema
|
|
|
|
define lcCinema LightScene Projector Screen TV CeilingLight ReadingLight
|
|
|
|
attr lcCinema alias Scenes
|
|
|
|
attr lcCinema devStateIcon AllOff:control_home Break:rc_PAUSE Cinema:scene_cinema WatchTV:it_television
|
|
|
|
attr lcCinema group Control
|
|
|
|
attr lcCinema icon scene_scene
|
|
|
|
attr lcCinema room Cinema
|
|
|
|
attr lcCinema webCmd scene
|
2014-01-23 18:59:52 +00:00
|
|
|
|
2014-02-17 19:54:44 +00:00
|
|
|
define rgr_Residents RESIDENTS
|
|
|
|
attr rgr_Residents alias Residents
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rgr_Residents 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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rgr_Residents group Home State
|
|
|
|
attr rgr_Residents icon control_building_filled
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rgr_Residents rgr_homealoneInStatus 1
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rgr_Residents room Residents
|
|
|
|
attr rgr_Residents sortby 2
|
|
|
|
attr rgr_Residents webCmd state
|
|
|
|
define rgr_Parents RESIDENTS
|
|
|
|
attr rgr_Parents alias Parents
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rgr_Parents 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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rgr_Parents group Home State
|
|
|
|
attr rgr_Parents icon control_building_filled
|
|
|
|
attr rgr_Parents room Residents
|
|
|
|
attr rgr_Parents sortby 2
|
|
|
|
attr rgr_Parents webCmd state
|
|
|
|
define rgr_Children RESIDENTS
|
|
|
|
attr rgr_Children alias Children
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rgr_Children 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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rgr_Children group Home State
|
|
|
|
attr rgr_Children icon control_building_filled
|
|
|
|
attr rgr_Children room Residents
|
|
|
|
attr rgr_Children sortby 3
|
|
|
|
attr rgr_Children webCmd state
|
|
|
|
define rgr_Guests RESIDENTS
|
|
|
|
attr rgr_Guests alias Guests
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rgr_Guests 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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rgr_Guests group Home State
|
|
|
|
attr rgr_Guests icon control_building_filled
|
|
|
|
attr rgr_Guests room Residents
|
|
|
|
attr rgr_Guests sortby 4
|
|
|
|
attr rgr_Guests webCmd state
|
|
|
|
define rg_Guest1 GUEST rgr_Residents,rgr_Guests
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rg_Guest1 alias Cleaner
|
2014-02-17 19:54:44 +00:00
|
|
|
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
|
|
|
|
attr rg_Guest1 group Guests
|
|
|
|
attr rg_Guest1 icon scene_visit_guests
|
|
|
|
attr rg_Guest1 rg_autoGoneAfter 0.01
|
|
|
|
attr rg_Guest1 rg_realname alias
|
|
|
|
attr rg_Guest1 room Residents
|
|
|
|
attr rg_Guest1 sortby 1
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rg_Guest1 subType domesticWorker
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rg_Guest1 webCmd state
|
|
|
|
define rg_Guest2 GUEST rgr_Residents,rgr_Guests
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rg_Guest2 alias Vacationer
|
2014-02-17 19:54:44 +00:00
|
|
|
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
|
|
|
|
attr rg_Guest2 group Guests
|
|
|
|
attr rg_Guest2 icon scene_visit_guests
|
|
|
|
attr rg_Guest2 rg_autoGoneAfter 0.01
|
|
|
|
attr rg_Guest2 rg_realname alias
|
|
|
|
attr rg_Guest2 room Residents
|
|
|
|
attr rg_Guest2 sortby 1
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rg_Guest2 subType vacationer
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rg_Guest2 webCmd state
|
2019-05-04 19:00:11 +00:00
|
|
|
define rg_Guest3 GUEST rgr_Residents,rgr_Guests
|
|
|
|
attr rg_Guest3 alias Guest
|
|
|
|
attr rg_Guest3 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
|
|
|
|
attr rg_Guest3 group Guests
|
|
|
|
attr rg_Guest3 icon scene_visit_guests
|
|
|
|
attr rg_Guest3 rg_autoGoneAfter 0.01
|
|
|
|
attr rg_Guest3 rg_realname alias
|
|
|
|
attr rg_Guest3 room Residents
|
|
|
|
attr rg_Guest3 sortby 1
|
|
|
|
attr rg_Guest3 webCmd state
|
|
|
|
define rg_Guest4 GUEST rgr_Residents,rgr_Guests
|
|
|
|
attr rg_Guest4 alias Guest (minor)
|
|
|
|
attr rg_Guest4 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
|
|
|
|
attr rg_Guest4 group Guests
|
|
|
|
attr rg_Guest4 icon scene_visit_guests
|
|
|
|
attr rg_Guest4 rg_autoGoneAfter 0.01
|
|
|
|
attr rg_Guest4 rg_realname alias
|
|
|
|
attr rg_Guest4 room Residents
|
|
|
|
attr rg_Guest4 sortby 1
|
|
|
|
attr rg_Guest4 webCmd state
|
2014-02-17 19:54:44 +00:00
|
|
|
define rr_Father ROOMMATE rgr_Residents,rgr_Parents
|
|
|
|
attr rr_Father alias Status
|
2019-05-04 11:50:15 +00:00
|
|
|
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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Father group Father
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Father icon people_sensor
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Father room Residents
|
|
|
|
attr rr_Father rr_autoGoneAfter 0.1
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Father rr_passStatusTo rp_Dog
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Father sortby 0
|
|
|
|
attr rr_Father webCmd state
|
|
|
|
define rr_Mother ROOMMATE rgr_Residents,rgr_Parents
|
|
|
|
attr rr_Mother alias Status
|
2019-05-04 11:50:15 +00:00
|
|
|
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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Mother group Mother
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Mother icon people_sensor
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Mother room Residents
|
|
|
|
attr rr_Mother rr_autoGoneAfter 0.1
|
|
|
|
attr rr_Mother rr_passPresenceTo rr_Baby
|
|
|
|
attr rr_Mother sortby 0
|
|
|
|
attr rr_Mother webCmd state
|
|
|
|
define rr_Daughter ROOMMATE rgr_Residents,rgr_Children
|
|
|
|
attr rr_Daughter alias Status
|
2019-05-04 11:50:15 +00:00
|
|
|
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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Daughter group Daughter
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Daughter icon people_sensor
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Daughter room Residents
|
|
|
|
attr rr_Daughter sortby 0
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rr_Daughter subType child
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Daughter webCmd state
|
|
|
|
define rr_Son ROOMMATE rgr_Residents,rgr_Children
|
|
|
|
attr rr_Son alias Status
|
2019-05-04 11:50:15 +00:00
|
|
|
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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Son group Son
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Son icon people_sensor
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Son room Residents
|
|
|
|
attr rr_Son sortby 0
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rr_Son subType teenager
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Son webCmd state
|
|
|
|
define AllResidentsAway notify rgr_Residents:(absent|gone) set AllLights off;;set lcCinema scene AllOff
|
|
|
|
attr AllResidentsAway room Residents
|
|
|
|
define ResidentsComeHome notify rgr_Residents:home set Outdoor on
|
|
|
|
attr ResidentsComeHome room Residents
|
|
|
|
define rr_Baby ROOMMATE rgr_Residents,rgr_Children
|
|
|
|
attr rr_Baby alias Status
|
2019-05-04 11:50:15 +00:00
|
|
|
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:home
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Baby group Baby
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rr_Baby icon people_sensor
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Baby room Residents
|
|
|
|
attr rr_Baby sortby 0
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rr_Baby subType baby
|
2014-02-17 19:54:44 +00:00
|
|
|
attr rr_Baby webCmd state
|
2019-05-04 11:50:15 +00:00
|
|
|
define rgr_Pets RESIDENTS
|
|
|
|
attr rgr_Pets alias Pets
|
|
|
|
attr rgr_Pets 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:home
|
|
|
|
attr rgr_Pets group Home State
|
|
|
|
attr rgr_Pets icon control_building_filled
|
|
|
|
attr rgr_Pets room Residents
|
|
|
|
attr rgr_Pets webCmd state
|
|
|
|
define rp_Dog PET rgr_Residents,rgr_Pets
|
|
|
|
attr rp_Dog alias Dog
|
|
|
|
attr rp_Dog 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:home
|
|
|
|
attr rp_Dog group Pets
|
|
|
|
attr rp_Dog icon dog_silhouette
|
|
|
|
attr rp_Dog room Residents
|
|
|
|
attr rp_Dog rp_realname alias
|
|
|
|
attr rp_Dog sortby 1
|
2019-05-04 19:00:11 +00:00
|
|
|
attr rp_Dog subType dog
|
2019-05-04 11:50:15 +00:00
|
|
|
attr rp_Dog webCmd state
|
2015-01-10 16:54:23 +00:00
|
|
|
define RGB readingsProxy RGB
|
|
|
|
attr RGB userattr Light Light_map structexclude
|
|
|
|
attr RGB Light AllLights
|
|
|
|
attr RGB alias RGB Light
|
|
|
|
attr RGB comment light with the ability to change RGB color
|
|
|
|
attr RGB devStateIcon {Color::devStateIcon("RGB","rgb","rgb","state")}
|
|
|
|
attr RGB group Color Lights
|
|
|
|
attr RGB room Light
|
|
|
|
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;;}
|
|
|
|
attr RGB setList on:noArg off:noArg rgb:colorpicker,RGB hue:colorpicker,HUE,0,1,359
|
|
|
|
attr RGB webCmd hue:rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:rgb ffffff:on:off
|
|
|
|
define colorInit notify global:INITIALIZED {use Color;;Color_Initialize()}
|
|
|
|
attr colorInit room hidden
|
|
|
|
define CT readingsProxy CT
|
|
|
|
attr CT userattr Light Light_map structexclude
|
|
|
|
attr CT Light AllLights
|
|
|
|
attr CT alias CT Light
|
|
|
|
attr CT comment light with the ability to change the color temperature
|
|
|
|
attr CT devStateIcon {Color::devStateIcon("CT","rgb","rgb","state")}
|
|
|
|
attr CT getFn { my ($r,$g,$b) = Color::ct2rgb( ReadingsVal($DEVICE,"ct",333) );; return (Color::rgb2hex($r,$g,$b), 1);; }
|
|
|
|
attr CT getList rgb:noArg
|
|
|
|
attr CT group Color Lights
|
|
|
|
attr CT room Light
|
|
|
|
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;;}
|
|
|
|
attr CT setList on:noArg off:noArg ct:colorpicker,CT,2000,1,6500
|
|
|
|
attr CT webCmd ct::ct 2040:ct 2630:ct 3703:ct 6250:on:off
|
2015-01-11 12:10:28 +00:00
|
|
|
|
2023-05-28 12:25:25 +00:00
|
|
|
{\
|
|
|
|
if(join('\n', grep { -f "$_/Readonly.pm" } @INC)) {\
|
|
|
|
fhem('define Weather Weather apikey=demo location=52.4545,13.4545');;\
|
|
|
|
fhem('attr Weather room Weather');;\
|
|
|
|
fhem('define Weather.weblink weblink htmlCode {WeatherAsHtmlH("Weather")}');;\
|
|
|
|
fhem('attr Weather.weblink alias Weather Forecast');;\
|
|
|
|
fhem('attr Weather.weblink room Weather');;\
|
|
|
|
}\
|
|
|
|
}
|