2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

10_MQTT_BRIDGE: fix comandref

git-svn-id: https://svn.fhem.de/fhem/trunk@15150 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
eisler 2017-09-28 20:39:00 +00:00
parent 0b809cefed
commit a530977a0e
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 10_MQTT_BRIDGE: fix comandref $device
- feature: 74_AMADDevice: add media support for YouTubeKids
- bugfix: 74_AMADautomagicFlowset_4.0.9.xml: fix restore volume bug
- feature: 73_GardenaSmartBridge: add syntax check for disabledForIntervals

View File

@ -247,7 +247,7 @@ sub onmessage($$$) {
<p><code>attr &lt;name&gt; subscribeSet [{Perl-expression}] [qos:?] [retain:?] &lt;topic&gt;</code><br/>
configures a topic that will issue a 'set &lt;message&gt; whenever a message is received<br/>
QOS and ratain can be optionally defined for this topic. <br/>
Furthermore, a Perl statement can be provided which is executed when the message is received. The following variables are available for the expression: $hash, $name, $topic, $message, $devname (linked device). Return value decides whether reading is set (true (e.g., 1) or undef) or discarded (false (e.g., 0)).
Furthermore, a Perl statement can be provided which is executed when the message is received. The following variables are available for the expression: $hash, $name, $topic, $message, $device (linked device). Return value decides whether reading is set (true (e.g., 1) or undef) or discarded (false (e.g., 0)).
</p>
<p>Example:<br/>
<code>attr mqttest subscribeSet {fhem("do somethin")} /topic/cmd</code>
@ -258,7 +258,7 @@ sub onmessage($$$) {
configures a topic that will issue a 'set &lt;reading&gt; &lt;message&gt; whenever a message is received. see above
for Perl-Expression/QOS/retain</p>
<p>Example:<br/>
<code>attr mqttest subscribeSet_cmd {if ($message eq "config") fhem("set $devname getconfig");; 0} /topic/cmd</code>
<code>attr mqttest subscribeSet_cmd {if ($message eq "config") fhem("set $device getconfig");; 0} /topic/cmd</code>
</p>
</li>
<li>