2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 14:04:15 +00:00

MAX: update commandref

git-svn-id: https://svn.fhem.de/fhem/trunk@2732 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-02-15 03:20:47 +00:00
parent 5e9f17e51b
commit 4d0a47712a
2 changed files with 11 additions and 8 deletions

View File

@ -3,8 +3,6 @@
# Written by Matthias Gehre, M.Gehre@gmx.de, 2012-2013
#
# TODO:
# - Bounds checking in "fake", allow temperature above 25.5
# - Defer updating of state until Ack
# - Send RemoveGroupId packet if groupid is set to 0
package main;
@ -333,7 +331,7 @@ MAX_Set($@)
return ($hash->{IODev}{Send})->($hash->{IODev},"SetDisplayActualTemperature",$hash->{addr},
sprintf("%02x",$args[0] ? 4 : 0), callbackParam => "$setting,$args[0]");
} elsif($setting eq "fake") {
} elsif($setting eq "fake") { #Deprecated, use fakeWT and fakeSC of CUL_MAX
#Resolve first argument to address
return "Invalid number of arguments" if(@args == 0);
my $dest = $args[0];
@ -839,10 +837,6 @@ MAX_Parse($$)
WallMountedThermostat for control.</li>
<li>deassociate &lt;value&gt;<br>
Removes the association set by associate.</li>
<li>fake &lt;device&gt; &lt;parameters...&gt;<br>
Sends a fake state message of this device over the air to &lt;device&gt;. Works only with CUL_MAX as IODev. For ShutterContacts, sends
a ShutterContactState message; &lt;parameters...&gt; must be 0 or 1 for "window closed" or "window opened". For WallMountedThermostats.
sends a WallThermostatControl message; &lt;parameters...&gt; must be "$desiredTemperature $measuredTemperature" (both may have one digit after the decimal point, for desiredTemperature it may only by 0 or 5). Make sure you associate the target device with the source device beforehand.</li>
<li>weekProfile [&lt;day&gt; &lt;temp1&gt;,&lt;until1&gt;,&lt;temp2&gt;,&lt;until2&gt;] [&lt;day&gt; &lt;temp1&gt;,&lt;until1&gt;,&lt;temp2&gt;,&lt;until2&gt;] ...<br>
Allows setting the week profile. For devices of type HeatingThermostat or WallMountedThermostat only. Example:<br>
<code>set MAX_12345 weekProfile Fri 24.5,6:00,12,15:00,5 Sat 7,4:30,19,12:55,6</code><br>

View File

@ -494,7 +494,16 @@ CUL_MAX_BroadcastTime(@)
<br>
<a name="CUL_MAXset"></a>
<b>Set</b> <ul>N/A</ul><br>
<b>Set</b>
<ul>
<li>pairmode<br>
Sets the CUL_MAX into pairing mode for 60 seconds where it can be paired with other devices (Thermostats, Buttons, etc.). You also have to set the other device into pairing mode manually. (For Thermostats, this is pressing the "Boost" button for 3 seconds, for example).</li>
<li>fakeSC &lt;device&gt; &lt;open&gt;<br>
Sends a fake ShutterContactState message; &lt;open&gt; must be 0 or 1 for "window closed" or "window opened". Make sure you associate the target device with fakeShutterContact beforehand.</li>
<li>fakeWT &lt;device&gt; &lt;desiredTemperature&gt; &lt;measuredTemperature&gt;<br>
Sends a fake WallThermostatControl message (parameters both may have one digit after the decimal point, for desiredTemperature it may only by 0 or 5). Make sure you associate the target device with fakeWallThermostat beforehand.</li>
</ul>
<br>
<a name="CUL_MAXget"></a>
<b>Get</b> <ul>N/A</ul><br>