mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 23:06:37 +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:
parent
0b809cefed
commit
a530977a0e
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- feature: 74_AMADDevice: add media support for YouTubeKids
|
||||||
- bugfix: 74_AMADautomagicFlowset_4.0.9.xml: fix restore volume bug
|
- bugfix: 74_AMADautomagicFlowset_4.0.9.xml: fix restore volume bug
|
||||||
- feature: 73_GardenaSmartBridge: add syntax check for disabledForIntervals
|
- feature: 73_GardenaSmartBridge: add syntax check for disabledForIntervals
|
||||||
|
@ -247,7 +247,7 @@ sub onmessage($$$) {
|
|||||||
<p><code>attr <name> subscribeSet [{Perl-expression}] [qos:?] [retain:?] <topic></code><br/>
|
<p><code>attr <name> subscribeSet [{Perl-expression}] [qos:?] [retain:?] <topic></code><br/>
|
||||||
configures a topic that will issue a 'set <message> whenever a message is received<br/>
|
configures a topic that will issue a 'set <message> whenever a message is received<br/>
|
||||||
QOS and ratain can be optionally defined for this topic. <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>
|
||||||
<p>Example:<br/>
|
<p>Example:<br/>
|
||||||
<code>attr mqttest subscribeSet {fhem("do somethin")} /topic/cmd</code>
|
<code>attr mqttest subscribeSet {fhem("do somethin")} /topic/cmd</code>
|
||||||
@ -258,7 +258,7 @@ sub onmessage($$$) {
|
|||||||
configures a topic that will issue a 'set <reading> <message> whenever a message is received. see above
|
configures a topic that will issue a 'set <reading> <message> whenever a message is received. see above
|
||||||
for Perl-Expression/QOS/retain</p>
|
for Perl-Expression/QOS/retain</p>
|
||||||
<p>Example:<br/>
|
<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>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user