mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
mqtt2.template: add z2m curtain
git-svn-id: https://svn.fhem.de/fhem/trunk@26626 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f21afabd59
commit
75b19de563
@ -685,6 +685,30 @@ set DEVICE attrTemplate speechcontrol_type_blind
|
||||
attr DEVICE model zigbee2mqtt_blind_drive
|
||||
setreading DEVICE attrTemplateVersion 20211113
|
||||
|
||||
# Aqara Curtain Driver E1
|
||||
# contributed by drhirn, https://forum.fhem.de/index.php/topic,94495.msg1241895.html#msg1241895
|
||||
name:zigbee2mqtt_curtain_driver
|
||||
desc:E.g. for Aqara curtain driver E1 via zigbee2mqtt.<br>Tested with: <a href="https://www.zigbee2mqtt.io/devices/ZNCLBL01LM.html">ZNCLBL01LM</a>.
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
order:L_05f1
|
||||
par:BASE_TOPIC;base topic set in configuration.yaml of the zigbee2mqtt bridge;{ AttrVal('DEVICE','devicetopic',AttrVal('DEVICE','readingList','')) =~ m,[\b]?([^/:]+)[/].+, ? $1 : undef }
|
||||
par:DEV_ID;name of the device in the zigbee2mqtt bridge;{ AttrVal('DEVICE','devicetopic',AttrVal('DEVICE','readingList','')) =~ m,[^/]+[/]([^/:]+).*, ? $1 : undef }
|
||||
attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC/availability:.* availability\
|
||||
$\DEVICETOPIC:.* { json2nameValue($EVENT,'',$JSONMAP)) }
|
||||
attr DEVICE event-on-change-reading .*
|
||||
attr DEVICE setList open:noArg $\DEVICETOPIC/set {"state": "OPEN"}\
|
||||
close:noArg $\DEVICETOPIC/set {"state": "CLOSE"}\
|
||||
stop:noArg $\DEVICETOPIC/set {"state": "STOP"}\
|
||||
pct:slider,0,1,100 $\DEVICETOPIC/set {"position": "$EVTPART1"}
|
||||
attr DEVICE jsonMap position:pct
|
||||
attr DEVICE stateFormat pct
|
||||
attr DEVICE devStateIcon 0:fts_shutter_100 (\d|1\d):fts_shutter_90 2\d:fts_shutter_80 3\d:fts_shutter_70 4\d:fts_shutter_60 5\d:fts_shutter_50 6\d:fts_shutter_40 7\d:fts_shutter:30 8\d:fts_shutter_20 9\d:fts_shutter_10 100:fts_window_2w
|
||||
attr DEVICE webCmd open:close:stop:pct
|
||||
deletereading -q DEVICE (?!associatedWith|IODev).*
|
||||
attr DEVICE model zigbee2mqtt_curtain_driver
|
||||
setreading DEVICE attrTemplateVersion 20221028
|
||||
|
||||
|
||||
name:zigbee2mqtt_ContactSensor
|
||||
desc: Contact sensor via zigbee2mqtt <br>Tested with: Xiaomi models Aqara and Mijia
|
||||
|
Loading…
x
Reference in New Issue
Block a user