mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +00:00
HMCCUDEV: minor changes
git-svn-id: https://svn.fhem.de/fhem/trunk@9466 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6d98cd03ad
commit
926d56913b
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
################################################################
|
################################################################
|
||||||
#
|
#
|
||||||
# define <name> HMCCUDEV <hmccu> <ccudev> [ readonly ]
|
# define <name> HMCCUDEV <ccudev> [readonly]
|
||||||
#
|
#
|
||||||
# set <name> datapoint <channel>.<datapoint> <value>
|
# set <name> datapoint <channel>.<datapoint> <value>
|
||||||
# set <name> devstate <value>
|
# set <name> devstate <value>
|
||||||
@ -83,7 +83,6 @@ sub HMCCUDEV_Define ($$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Inform HMCCU device about client device
|
# Inform HMCCU device about client device
|
||||||
Log 1, "HMCCUDEV: Assigning IO Port";
|
|
||||||
AssignIoPort ($hash);
|
AssignIoPort ($hash);
|
||||||
|
|
||||||
readingsSingleUpdate ($hash, "state", "Initialized", 1);
|
readingsSingleUpdate ($hash, "state", "Initialized", 1);
|
||||||
@ -248,6 +247,10 @@ sub HMCCUDEV_Get ($@)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Set error status
|
||||||
|
#####################################
|
||||||
|
|
||||||
sub HMCCUDEV_SetError ($$)
|
sub HMCCUDEV_SetError ($$)
|
||||||
{
|
{
|
||||||
my ($hash, $text) = @_;
|
my ($hash, $text) = @_;
|
||||||
@ -268,7 +271,8 @@ sub HMCCUDEV_SetError ($$)
|
|||||||
<h3>HMCCUDEV</h3>
|
<h3>HMCCUDEV</h3>
|
||||||
<div style="width:800px">
|
<div style="width:800px">
|
||||||
<ul>
|
<ul>
|
||||||
The module implements client devices for HMCCU.
|
The module implements client devices for HMCCU. A HMCCU device must exist
|
||||||
|
before a client device can be defined.
|
||||||
</br></br>
|
</br></br>
|
||||||
<a name="HMCCUDEVdefine"></a>
|
<a name="HMCCUDEVdefine"></a>
|
||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
@ -303,8 +307,14 @@ sub HMCCUDEV_SetError ($$)
|
|||||||
<li>set <<i>Name</i>> <<i>StateValue</i>>
|
<li>set <<i>Name</i>> <<i>StateValue</i>>
|
||||||
<br/>
|
<br/>
|
||||||
State of a CCU device channel is set to state value. Channel must
|
State of a CCU device channel is set to state value. Channel must
|
||||||
be defined as attribute statechannel. State values can
|
be defined as attribute statechannel. State values can be replaced
|
||||||
be replaced by setting attribute stateval.
|
by setting attribute stateval.
|
||||||
|
<br/><br/>
|
||||||
|
<code>
|
||||||
|
attr myswitch statechannel 1
|
||||||
|
attr myswitch stateval on:true,off:false
|
||||||
|
set myswitch on
|
||||||
|
</code>
|
||||||
</li><br/>
|
</li><br/>
|
||||||
<li>set <<i>Name</i>> datapoint <<i>channel</i>.<i>datapoint</i>> <<i>Value</i>>
|
<li>set <<i>Name</i>> datapoint <<i>channel</i>.<i>datapoint</i>> <<i>Value</i>>
|
||||||
<br/>
|
<br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user