mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 04:36:02 +00:00
187 lines
10 KiB
Plaintext
187 lines
10 KiB
Plaintext
###########################################
|
|
# $Id$
|
|
#
|
|
# 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 }\
|
|
/offset (.*)/:{"offset": $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
|
|
|