-
Notifications
You must be signed in to change notification settings - Fork 1
/
huedevice.template
185 lines (163 loc) · 10.1 KB
/
huedevice.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
###########################################
# $Id: huedevice.template 25466 2022-01-14 20:43:11Z Beta-User $
#
# Comments start with #. Empty lines are ignored.
# Syntax of one entry: name: line, one optional filter: line, zero or more par: lines, FHEM-Commands
# filter:INTERNAL=VALUE (optional)
# par: name of the parameter; comment; perl_code (optional)
# perl_code returns a value for the parameter, or undef.
# If undef, the user has to specify them (the comment is shown to the user)
###########################################
# Generic devices section
name:Generic_Multibutton_Remote
filter:TYPE=HUEDevice
desc: For remotes like Aqara Opple or 6 button
order:C_01
par:RADIO_REGULAR_LEFT_RIGHT;Button orientation to the left and right, mounted normal. Fits e.g. Opple 6 buttons;{ undef }
par:RADIO_TILTED_LEFT_RIGHT;Regular button orientation to the left and right, but mounted tilted 90 degrees;{ undef }
par:RADIO_TOP_BUTTOM;Button orientation to the top and buttom. Fits e.g. Friends of Hue with hidden buttons 5/6;{ undef }
par:ICON;ICON as set, defaults to fs20_S4A-2_1;{ AttrVal('DEVICE','icon','fs20_S4A-2_1') }
attr DEVICE icon ICON
option:{ RADIO_REGULAR_LEFT_RIGHT }
attr DEVICE devStateIcon 100.:taster_ch6_1 200.:taster_ch6_2 300.:taster_ch6_3 400.:taster_ch6_4 500.:taster_ch6_5 600.:taster_ch6_6
option:{ RADIO_TILTED_LEFT_RIGHT }
attr DEVICE devStateIcon 100.:taster_ch6_5 200.:taster_ch6_6 300.:taster_ch6_8 400.:taster_ch6_9 500.:taster_ch6_1 600.:taster_ch6_2
option:{ RADIO_TOP_BUTTOM }
attr DEVICE devStateIcon 100.:taster_ch6_1 200.:taster_ch6_2 300.:taster_ch6_3 400.:taster_ch6_4 500.:taster_ch6_8 600.:taster_ch6_9
option:global
setreading DEVICE attrTemplateVersion Generic_Multibutton_Remote_20220114
###########################################
# Eurotronic Spirit ZigBee (SPZB0001)
name:Eurotronic_SPZB0001_Spirit_ZigBee
filter:TYPE=HUEDevice
desc: All necessary attr are set and also a helper CMDAlias for the Eurotronic Spirit ZigBee thermostat.<br><a href="https://eurotronic.org/produkte/zigbee-heizkoerperthermostat/spirit-zigbee/">Manufacturer link: Klick me</a>
order:C_01
par:ICON;ICON as set, defaults to max_heizungsthermostat;{ AttrVal('DEVICE','icon','max_heizungsthermostat') }
attr DEVICE configList /mode (.*)/:{"mode":"$1"}\
/heatsetpoint (.*)/:perl:{'{"heatsetpoint":' . $VALUE1 * 100 . '}'}\
/displayflipped (.*)/:{"displayflipped": $1 }\
lock:{"locked": true }\
unlock:{"locked": false }
attr DEVICE widgetOverride mode:auto,heat,off displayflipped:true,false heatsetpoint:16,16.5,17,17.5,18,18.5,19,19.5,20,20.5,21,21.5,22
attr DEVICE icon ICON
setreading DEVICE attrTemplateVersion Eurotronic_SPZB0001_Spirit_ZigBee_20211015
# Helper CMDAlias heatsetpointX100
#par:DeviceRoom;Room of the Device.;{AttrVal("heatsetpointX100","room","HUEDevice" )}
#defmod heatsetpointX100 cmdalias set .* heatsetpoint .* AS {fhem("set $EVTPART0 $EVTPART1 ". $EVTPART2 * 100)}
#attr heatsetpointX100 room DeviceRoom
#attr heatsetpointX100 comment This is an help CMDAlias for the Eurotronic Eurotronic Spirit ZigBee (SPZB0001).\
#This CMDAlias prepares the value of heatsetpoint for the Hue/deCONZ API (multiplies the value by 100).
###########################################
# Xiaomi/Aqara MCCGQ11LM Fenster Tür Sensor
name:Xiaomi_Aqara_MCCGQ11LM_Window_Door_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara window door sensor is a single sensor and interprets a normally closed contact .<br><a href="https://www.aqara.com/en/door_and_window_sensor-product.html">Manufacturer link: Klick me</a>
order:D_01
par:ICON;ICON as set, defaults to fts_window_1w_open;{ AttrVal('DEVICE','icon','fts_window_1w_open') }
attr DEVICE icon ICON
attr DEVICE devStateIcon open:fts_window_1w_open@#e56524 closed:fts_window_1w
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_MCCGQ11LM_Window_Door_Sensor_20211015
###########################################
# Xiaomi/Aqara WSDCGQ11LM Temperatur Sensor
name:Xiaomi_Aqara_WSDCGQ11LM_Temperature_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara temperature, humidity and pressure sensor is a multisensor, and is interpreted by ZigBee as three sensors that is temperature sensor.<br><a href="https://www.aqara.com/en/temperature_and_humidity_sensor-product.html">Manufacturer link: Klick me</a>
order:E_01a
par:ICON;ICON as set, defaults to xiaomi_multi;{ AttrVal('DEVICE','icon','xiaomi_multi') }
attr DEVICE icon ICON
attr DEVICE stateFormat T: temperature °C
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_WSDCGQ11LM_Temperature_Sensor_20211015
# Xiaomi/Aqara WSDCGQ11LM Pressure Sensor
name:Xiaomi_Aqara_WSDCGQ11LM_Pressure_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara temperature, humidity and pressure sensor is a multisensor, and is interpreted by ZigBee as three sensors that is pressure sensor.<br><a href="https://www.aqara.com/en/temperature_and_humidity_sensor-product.html">Manufacturer link: Klick me</a>
order:E_01b
par:ICON;ICON as set, defaults to xiaomi_multi;{ AttrVal('DEVICE','icon','xiaomi_multi') }
attr DEVICE icon ICON
attr DEVICE stateFormat P: pressure hPa
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_WSDCGQ11LM_Pressure_Sensor_20211015
# Xiaomi/Aqara WSDCGQ11LM Humidity Sensor
name:Xiaomi_Aqara_WSDCGQ11LM_Humidity_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara temperature, humidity and pressure sensor is a multisensor, and is interpreted by ZigBee as three sensors that is humidity sensor.<br><a href="https://www.aqara.com/en/temperature_and_humidity_sensor-product.html">Manufacturer link: Klick me</a>
order:E_01c
par:ICON;ICON as set, defaults to xiaomi_multi;{ AttrVal('DEVICE','icon','xiaomi_multi') }
attr DEVICE icon ICON
attr DEVICE stateFormat H: humidity %
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_WSDCGQ11LM_Humidity_Sensor_20211015
# generic Motion Sensor, https://forum.fhem.de/index.php/topic,125416.msg1200527.html#msg1200527
name:Generic_Motion_Sensor
filter:TYPE=HUEDevice
desc: Might be suitable for all motion sensors without option to set duration...
order:F_01
set DEVICE attrTemplate Xiaomi_Aqara_RTCGQ11LM_Motion_Sensor
attr DEVICE configList /delay (.*)/:{"delay":$1}\
/ledindication (.*)/:true,false:{"ledindication":$1}\
/on (.*)/:true,false:{"on":$1}\
/sensitivity (.*)/:0,1,2:{"sensitivity":$1}
setreading DEVICE attrTemplateVersion Generic_Motion_Sensor_20220114
###########################################
# Xiaomi/Aqara RTCGQ11LM Motion Sensor
name:Xiaomi_Aqara_RTCGQ11LM_Motion_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara motion sensor is a multisensor, and is interpreted by ZigBee as two sensors that is motion sensor.<br><a href="https://www.aqara.com/en/motion_sensor.html">Manufacturer link: Klick me</a><br>Might be suitable for other motion sensors with option to set duration as well...
order:F_01a
par:ICON;ICON as set, defaults to motion_detector;{ AttrVal('DEVICE','icon','motion_detector') }
attr DEVICE icon ICON
attr DEVICE devStateIcon motion:people_sensor nomotion:message_presence
attr DEVICE configList /duration (.*)/:{"duration":$1}\
/delay (.*)/:{"delay":$1}\
/ledindication (.*)/:true,false:{"ledindication":$1}\
/on (.*)/:true,false:{"on":$1}\
/sensitivity (.*)/:0,1,2:{"sensitivity":$1}
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_RTCGQ11LM_Motion_Sensor_20220114
name:Xiaomi_Aqara_DJT11LM_Vibration_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara vibration sensor
order:F_01b
par:ICON;ICON as set, defaults to secur_alarm;{ AttrVal('DEVICE','icon','secur_alarm') }
attr DEVICE icon ICON
attr DEVICE devStateIcon motion:people_sensor nomotion:message_presence
attr DEVICE configList /sensitivity (.*)/:0,1,2,3:{"sensitivity":$1}
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_DJT11LM_Vibration_Sensor_20211215
# Xiaomi/Aqara RTCGQ11LM Lightlevel Sensor
name:Xiaomi_Aqara_RTCGQ11LM_Lightlevel_Sensor
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara motion sensor is a multisensor, and is interpreted by ZigBee as two sensors that is lightlevel sensor.<br><a href="https://www.aqara.com/en/motion_sensor.html">Manufacturer link: Klick me</a>
order:F_01a1
par:ICON;ICON as set, defaults to IR;{ AttrVal('DEVICE','icon','IR') }
attr DEVICE icon ICON
attr DEVICE stateFormat lux Lux
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_RTCGQ11LM_Lightlevel_Sensor_20211215
###########################################
# Xiaomi/Aqara WXKG02LM Double Switch
name:Xiaomi_Aqara_WXKG02LM_Double_Switch
filter:TYPE=HUEDevice
desc: The Xiaomi/Aqara Double Switch is double switch.<br><a href="https://www.aqara.com/en/86plug.html">Manufacturer link: Klick me</a>
order:G_01
par:ICON;ICON as set, defaults to taster_ch;{ AttrVal('DEVICE','icon','taster_ch') }
attr DEVICE icon ICON
attr DEVICE devStateIcon 100.:taster_ch6_1 200.:taster_ch6_2 300.:taster_ch6_3 400.:taster_ch6_4 500.:taster_ch6_5 600.:taster_ch6_6
attr DEVICE eventMap 1001:LeftLongPress\
1002:LeftShortPress \
1004:LeftDoublePress\
2001:RightLongPress \
2002:RightShortPress\
2004:RightDoublePress\
3001:DoubleLongPress\
3002:DoubleShortPress \
3004:DoubleDoublePress
attr DEVICE icon taster
setreading DEVICE attrTemplateVersion Xiaomi_Aqara_WXKG02LM_Double_Switch_20211015
###########################################
# Melinera (Lidl) Smarte Lichterkette
name:Melinera_LED_fairy_lights_ZigBee
filter:TYPE=HUEDevice
desc: Might fit for product distributed by Lidl; showcase how to hand oder dedicated or arbitrary values for setters.
order:X_01
par:ICON;ICON as set, defaults to light_fairy_lights;{ AttrVal('DEVICE','icon','light_fairy_lights') }
attr DEVICE icon ICON
attr DEVICE { usr => { 'effectSpeed\s+(.*)' => '{"effectSpeed":"$1"}', 'sparkles1' => '{"effect": "sparkles", "on": true,"effectColours": [[0,0,255],[0,255,0],[255,0,0]]}', 'sparkles2' => '{"effect": "sparkles", "on": true,"effectColours": [[0,255,0],[255,255,255],[255,0,0]]}', 'effectWColors(\w+)\s+(.*)' => '{"effect": "$1", "on": true,"effectColours": "$2" }', 'NormalWhite' => '{"sat": 0}' } }
attr DEVICE widgetOverride effect:steady,snow,rainbow,snake,twinkle,fireworks,flag,waves,updown,vintage,fading,collide,strobe,sparkles,carnival,glow effectSpeed:selectnumbers,0,1,10,0,lin sparkles1:noArg sparkles2:noArg
attr DEVICE webCmd bri:effect:effectSpeed:sparkles1:sparkles2:NormalWhite
setreading DEVICE attrTemplateVersion Melinera_LED_fairy_lights_ZigBee_20211222