mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
MQTT: fix commandref
git-svn-id: https://svn.fhem.de/fhem/trunk@6692 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d0f5cb7d2f
commit
715c913fa6
@ -195,7 +195,7 @@ sub onmessage($$$) {
|
||||
=begin html
|
||||
|
||||
<a name="MQTT_BRIDGE"></a>
|
||||
<h3>MQTT</h3>
|
||||
<h3>MQTT_BRIDGE</h3>
|
||||
<ul>
|
||||
acts as a bridge in between an fhem-device and <a href="http://mqtt.org">mqtt</a>-topics.
|
||||
<br><br>
|
||||
@ -226,23 +226,23 @@ sub onmessage($$$) {
|
||||
<b>Attributes</b><br>
|
||||
<ul>
|
||||
<li>
|
||||
<code>attr <name> subscribeSet <topic>/code><br>
|
||||
<code>attr <name> subscribeSet <topic></code><br>
|
||||
configures a topic that will issue a 'set <message> whenever a message is received<br>
|
||||
</li>
|
||||
<li>
|
||||
<code>attr <name> subscribeSet_<reading> <topic>/code><br>
|
||||
<code>attr <name> subscribeSet_<reading> <topic></code><br>
|
||||
configures a topic that will issue a 'set <reading> <message> whenever a message is received<br>
|
||||
</li>
|
||||
<li>
|
||||
<code>attr <name> publishState <topic>/code><br>
|
||||
<code>attr <name> publishState <topic></code><br>
|
||||
configures a topic such that a message is sent to topic whenever the device state changes.<br>
|
||||
</li>
|
||||
<li>
|
||||
<code>attr <name> publishReading_<reading> <topic>/code><br>
|
||||
<code>attr <name> publishReading_<reading> <topic></code><br>
|
||||
configures a topic such that a message is sent to topic whenever the device readings value changes.<br>
|
||||
</li>
|
||||
<li>
|
||||
<code>attr <name> publish-topic-base <topic>/code><br>
|
||||
<code>attr <name> publish-topic-base <topic></code><br>
|
||||
this is used as base path when issueing 'get <device> readings' to construct topics to publish to based on the devices existing readings<br>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -170,7 +170,7 @@ sub onmessage($$$) {
|
||||
=begin html
|
||||
|
||||
<a name="MQTT_DEVICE"></a>
|
||||
<h3>MQTT</h3>
|
||||
<h3>MQTT_DEVICE</h3>
|
||||
<ul>
|
||||
acts as a fhem-device that is mapped to <a href="http://mqtt.org">mqtt</a>-topics.
|
||||
<br><br>
|
||||
@ -189,11 +189,11 @@ sub onmessage($$$) {
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
<li>
|
||||
<code>set <name> <command>/code><br>
|
||||
<code>set <name> <command></code><br>
|
||||
sets reading 'state' and publishes the command to topic configured via attr publishSet
|
||||
</li><br>
|
||||
<li>
|
||||
<code>set <name> <h;reading> <value>/code><br>
|
||||
<code>set <name> <h;reading> <value></code><br>
|
||||
sets reading <h;reading> and publishes the command to topic configured via attr publishSet_<h;reading>
|
||||
</li><br>
|
||||
</ul>
|
||||
@ -203,11 +203,11 @@ sub onmessage($$$) {
|
||||
<b>Attributes</b><br>
|
||||
<ul>
|
||||
<li>
|
||||
<code>attr <name> publishSet [<commands>] <topic>/code><br>
|
||||
<code>attr <name> publishSet [<commands>] <topic></code><br>
|
||||
configures set commands that may be used to both set reading 'state' and publish to configured topic<br>
|
||||
</li>
|
||||
<li>
|
||||
<code>attr <name> publishSet_<reading> [<values>] <topic>/code><br>
|
||||
<code>attr <name> publishSet_<reading> [<values>] <topic></code><br>
|
||||
configures reading that may be used to both set 'reading' (to optionally configured values) and publish to configured topic<br>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user