2
0
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:
rudolfkoenig 2018-02-03 18:34:23 +00:00
parent 087a4e0bc5
commit 52b460338c
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> </code></ul>
The explicit variant of this attribute has the following syntax: The explicit variant of this attribute has the following syntax:
<ul><code> <ul><code>
attr store eventMap { dev=>{"on"=>"open"}, usr=>{"open"=>"on"} }<br> attr store eventMap { dev=>{'on'=>'open'}, usr=>{'open'=>'on'} }<br>
attr store eventMap { dev=>{"^on(-for-timer)?(.*)"=>"open$2"}, attr store eventMap { dev=>{'^on(-for-timer)?(.*)'=>'open$2'},
usr=>{"^open(.*)"=>"on$1"}, usr=>{'^open(.*)'=>'on$1'},
fw=>{"^open(.*)"=>"open"} } fw=>{'^open(.*)'=>'open'} }
</code></ul> </code></ul>
This variant must be used, if the mapping is not symmetrical, the first 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 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> </code></ul>
Die explizite Variante dieses Attributes hat folgenden Syntax: Die explizite Variante dieses Attributes hat folgenden Syntax:
<ul><code> <ul><code>
attr store eventMap { dev=>{"on"=>"open"}, usr=>{"open"=>"on"} }<br> attr store eventMap { dev=>{'on'=>'open'}, usr=>{'open'=>'on'} }<br>
attr store eventMap { dev=>{"^on(-for-timer)?(.*)"=>"open$2"}, attr store eventMap { dev=>{'^on(-for-timer)?(.*)'=>'open$2'},
usr=>{"^open(.*)"=>"on$1"}, usr=>{'^open(.*)'=>'on$1'},
fw=>{"^open(.*)"=>"open"} } fw=>{'^open(.*)'=>'open'} }
</code></ul> </code></ul>
Diese Variante muss dann verwendet werden, falls das Mapping nicht Diese Variante muss dann verwendet werden, falls das Mapping nicht
symmetrisch ist. Der erste Teil (dev) spezifiziert dabei die Richtung symmetrisch ist. Der erste Teil (dev) spezifiziert dabei die Richtung