mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
commandref_frame.html: fix eventMap example (Forum #83752)
git-svn-id: https://svn.fhem.de/fhem/trunk@16072 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
087a4e0bc5
commit
52b460338c
@ -368,10 +368,10 @@ Device specific attributes are documented in the corresponding device section.
|
||||
</code></ul>
|
||||
The explicit variant of this attribute has the following syntax:
|
||||
<ul><code>
|
||||
attr store eventMap { dev=>{"on"=>"open"}, usr=>{"open"=>"on"} }<br>
|
||||
attr store eventMap { dev=>{"^on(-for-timer)?(.*)"=>"open$2"},
|
||||
usr=>{"^open(.*)"=>"on$1"},
|
||||
fw=>{"^open(.*)"=>"open"} }
|
||||
attr store eventMap { dev=>{'on'=>'open'}, usr=>{'open'=>'on'} }<br>
|
||||
attr store eventMap { dev=>{'^on(-for-timer)?(.*)'=>'open$2'},
|
||||
usr=>{'^open(.*)'=>'on$1'},
|
||||
fw=>{'^open(.*)'=>'open'} }
|
||||
</code></ul>
|
||||
This variant must be used, if the mapping is not symmetrical, the first
|
||||
part (dev) representing the device to user mapping, i.e. if the device
|
||||
|
@ -371,10 +371,10 @@ Gerät dokumentiert.
|
||||
</code></ul>
|
||||
Die explizite Variante dieses Attributes hat folgenden Syntax:
|
||||
<ul><code>
|
||||
attr store eventMap { dev=>{"on"=>"open"}, usr=>{"open"=>"on"} }<br>
|
||||
attr store eventMap { dev=>{"^on(-for-timer)?(.*)"=>"open$2"},
|
||||
usr=>{"^open(.*)"=>"on$1"},
|
||||
fw=>{"^open(.*)"=>"open"} }
|
||||
attr store eventMap { dev=>{'on'=>'open'}, usr=>{'open'=>'on'} }<br>
|
||||
attr store eventMap { dev=>{'^on(-for-timer)?(.*)'=>'open$2'},
|
||||
usr=>{'^open(.*)'=>'on$1'},
|
||||
fw=>{'^open(.*)'=>'open'} }
|
||||
</code></ul>
|
||||
Diese Variante muss dann verwendet werden, falls das Mapping nicht
|
||||
symmetrisch ist. Der erste Teil (dev) spezifiziert dabei die Richtung
|
||||
|
Loading…
Reference in New Issue
Block a user