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:
rudolfkoenig
2018-02-03 18:34:23 +00:00
parent ef40ce5109
commit 7cbff9b30a
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -371,10 +371,10 @@ Ger&auml;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