mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
98_ModbusElsnerWS: minor function and commandref changes
git-svn-id: https://svn.fhem.de/fhem/trunk@23308 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b69b222588
commit
cda5eccd1b
@ -565,6 +565,13 @@ sub ModbusElsnerWS_Attr(@) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} elsif ($attrName eq "customCmdPriority") {
|
||||||
|
if (!defined $attrVal) {
|
||||||
|
|
||||||
|
} elsif ($attrVal !~ m/^down|up$/) {
|
||||||
|
$err = "attribute-value [$attrName] = $attrVal wrong";
|
||||||
|
CommandDeleteAttr(undef, "$name $attrName");
|
||||||
|
}
|
||||||
} elsif ($attrName eq "signOfLife") {
|
} elsif ($attrName eq "signOfLife") {
|
||||||
if (!defined $attrVal) {
|
if (!defined $attrVal) {
|
||||||
|
|
||||||
@ -907,10 +914,10 @@ sub ModbusElsnerWS_Delete($$) {
|
|||||||
<li>Day/night signal</li>
|
<li>Day/night signal</li>
|
||||||
<li>Display of date, time, sun azimuth, sun elevation, longitude and latitude</li>
|
<li>Display of date, time, sun azimuth, sun elevation, longitude and latitude</li>
|
||||||
<li>Execution of custom alarm commands, see <a href="#ModbusElsnerWS_customCmdAlarmOff">customCmdAlarmOff</a> and
|
<li>Execution of custom alarm commands, see <a href="#ModbusElsnerWS_customCmdAlarmOff">customCmdAlarmOff</a> and
|
||||||
<a href="#ModbusElsnerWS_customCmdAlarmOn">customCmdAlarmOn</a></li>
|
<a href="#ModbusElsnerWS_customCmdAlarmOn">customCmdAlarmOn</a>.</li>
|
||||||
<li>Execution of custom up and down commands that can be triggered by the readings dayNight, isRaining, isStormy,
|
<li>Execution of custom up and down commands that can be triggered by the readings dayNight, isRaining, isStormy,
|
||||||
isSunny, isSunnyEast, isSunnySouth, isSunnyWest and isWindy, see <a href="#ModbusElsnerWS_customCmdDown">customCmdDown</a> and
|
isSunny, isSunnyEast, isSunnySouth, isSunnyWest and isWindy, see <a href="#ModbusElsnerWS_customCmdDown">customCmdDown</a> and
|
||||||
<a href="#ModbusElsnerWS_customCmdUp">customCmdUp</a></li>
|
<a href="#ModbusElsnerWS_customCmdUp">customCmdUp</a>.</li>
|
||||||
</ul><br>
|
</ul><br>
|
||||||
|
|
||||||
<b>Prerequisites</b>
|
<b>Prerequisites</b>
|
||||||
@ -1018,8 +1025,8 @@ sub ModbusElsnerWS_Delete($$) {
|
|||||||
else it is a "plain" fhem.pl command (chain). In the <command> you can access the name of the device by using $NAME, $TYPE
|
else it is a "plain" fhem.pl command (chain). In the <command> you can access the name of the device by using $NAME, $TYPE
|
||||||
and the current readings<br>
|
and the current readings<br>
|
||||||
$BRIGHTNESS, $DATE, $DAYNIGHT, $HEMISPHERE, $ISRAINING, $ISSTORMY, $ISSUNNY, $ISSUNNYEAST, $ISSUNNYSOUTH",
|
$BRIGHTNESS, $DATE, $DAYNIGHT, $HEMISPHERE, $ISRAINING, $ISSTORMY, $ISSUNNY, $ISSUNNYEAST, $ISSUNNYSOUTH",
|
||||||
$ISSUNNYWEST, $ISWINDY, $LATITUDE, $LONGITUDE, $SUNAZIMUTH, $SUNEAST, $SUNELAVATION, $SUNSOUTH, $SUNWEST, $TEMPERATURE, $TIME,
|
$ISSUNNYWEST, $ISWINDY, $LATITUDE, $LONGITUDE, $NAME, $SUNAZIMUTH, $SUNEAST, $SUNELAVATION, $SUNSOUTH, $SUNWEST, $TEMPERATURE, $TIME,
|
||||||
$TIMEZONE, $TWILIGHT, $WEEKDAY, $WINDAVG2MIN, $WINDGUST10MIN, $WINDGUSTCURRNT, $WINDPEAK10MIN, $WINDSPEED, $WINDSTENGTH.<br>
|
$TIMEZONE, $TWILIGHT, $TYPE, $WEEKDAY, $WINDAVG2MIN, $WINDGUST10MIN, $WINDGUSTCURRNT, $WINDPEAK10MIN, $WINDSPEED, $WINDSTENGTH.<br>
|
||||||
The <a href="#eventMap">eventMap</a> replacements are taken into account. This data
|
The <a href="#eventMap">eventMap</a> replacements are taken into account. This data
|
||||||
is available as a local variable in perl, as environment variable for shell
|
is available as a local variable in perl, as environment variable for shell
|
||||||
scripts, and will be textually replaced for Fhem commands.<br>
|
scripts, and will be textually replaced for Fhem commands.<br>
|
||||||
@ -1033,8 +1040,8 @@ sub ModbusElsnerWS_Delete($$) {
|
|||||||
else it is a "plain" fhem.pl command (chain). In the <command> you can access the name of the device by using $NAME, $TYPE
|
else it is a "plain" fhem.pl command (chain). In the <command> you can access the name of the device by using $NAME, $TYPE
|
||||||
and the current readings<br>
|
and the current readings<br>
|
||||||
$BRIGHTNESS, $DATE, $DAYNIGHT, $HEMISPHERE, $ISRAINING, $ISSTORMY, $ISSUNNY, $ISSUNNYEAST, $ISSUNNYSOUTH",
|
$BRIGHTNESS, $DATE, $DAYNIGHT, $HEMISPHERE, $ISRAINING, $ISSTORMY, $ISSUNNY, $ISSUNNYEAST, $ISSUNNYSOUTH",
|
||||||
$ISSUNNYWEST, $ISWINDY, $LATITUDE, $LONGITUDE, $SUNAZIMUTH, $SUNEAST, $SUNELAVATION, $SUNSOUTH, $SUNWEST, $TEMPERATURE, $TIME,
|
$ISSUNNYWEST, $ISWINDY, $LATITUDE, $LONGITUDE, $NAME, $SUNAZIMUTH, $SUNEAST, $SUNELAVATION, $SUNSOUTH, $SUNWEST, $TEMPERATURE, $TIME,
|
||||||
$TIMEZONE, $TWILIGHT, $WEEKDAY, $WINDAVG2MIN, $WINDGUST10MIN, $WINDGUSTCURRNT, $WINDPEAK10MIN, $WINDSPEED, $WINDSTENGTH.<br>
|
$TIMEZONE, $TWILIGHT, $TYPE, $WEEKDAY, $WINDAVG2MIN, $WINDGUST10MIN, $WINDGUSTCURRNT, $WINDPEAK10MIN, $WINDSPEED, $WINDSTENGTH.<br>
|
||||||
The <a href="#eventMap">eventMap</a> replacements are taken into account. This data
|
The <a href="#eventMap">eventMap</a> replacements are taken into account. This data
|
||||||
is available as a local variable in perl, as environment variable for shell
|
is available as a local variable in perl, as environment variable for shell
|
||||||
scripts, and will be textually replaced for Fhem commands.<br>
|
scripts, and will be textually replaced for Fhem commands.<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user