2
0
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:
ntruchsess 2014-10-05 19:51:16 +00:00
parent d0f5cb7d2f
commit 715c913fa6
2 changed files with 11 additions and 11 deletions

View File

@ -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 &lt;name&gt; subscribeSet &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; subscribeSet &lt;topic&gt;</code><br>
configures a topic that will issue a 'set &lt;message&gt; whenever a message is received<br>
</li>
<li>
<code>attr &lt;name&gt; subscribeSet_&lt;reading&gt; &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; subscribeSet_&lt;reading&gt; &lt;topic&gt;</code><br>
configures a topic that will issue a 'set &lt;reading&gt; &lt;message&gt; whenever a message is received<br>
</li>
<li>
<code>attr &lt;name&gt; publishState &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; publishState &lt;topic&gt;</code><br>
configures a topic such that a message is sent to topic whenever the device state changes.<br>
</li>
<li>
<code>attr &lt;name&gt; publishReading_&lt;reading&gt; &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; publishReading_&lt;reading&gt; &lt;topic&gt;</code><br>
configures a topic such that a message is sent to topic whenever the device readings value changes.<br>
</li>
<li>
<code>attr &lt;name&gt; publish-topic-base &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; publish-topic-base &lt;topic&gt;</code><br>
this is used as base path when issueing 'get &lt;device&gt; readings' to construct topics to publish to based on the devices existing readings<br>
</li>
</ul>

View File

@ -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 &lt;name&gt; &lt;command&gt;/code><br>
<code>set &lt;name&gt; &lt;command&gt;</code><br>
sets reading 'state' and publishes the command to topic configured via attr publishSet
</li><br>
<li>
<code>set &lt;name&gt; &lth;reading&gt; &lt;value&gt;/code><br>
<code>set &lt;name&gt; &lth;reading&gt; &lt;value&gt;</code><br>
sets reading &lth;reading&gt; and publishes the command to topic configured via attr publishSet_&lth;reading&gt;
</li><br>
</ul>
@ -203,11 +203,11 @@ sub onmessage($$$) {
<b>Attributes</b><br>
<ul>
<li>
<code>attr &lt;name&gt; publishSet [&lt;commands&gt] &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; publishSet [&lt;commands&gt] &lt;topic&gt;</code><br>
configures set commands that may be used to both set reading 'state' and publish to configured topic<br>
</li>
<li>
<code>attr &lt;name&gt; publishSet_&lt;reading&gt; [&lt;values&gt] &lt;topic&gt;/code><br>
<code>attr &lt;name&gt; publishSet_&lt;reading&gt; [&lt;values&gt] &lt;topic&gt;</code><br>
configures reading that may be used to both set 'reading' (to optionally configured values) and publish to configured topic<br>
</li>
</ul>