mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
10_MQTT2_DEVICE: enhance the setStateList attribute (Forum #133750)
git-svn-id: https://svn.fhem.de/fhem/trunk@27627 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
df75120e8f
commit
84d39b9eda
@ -417,7 +417,7 @@ MQTT2_DEVICE_Set($@)
|
|||||||
if(!$ssl) {
|
if(!$ssl) {
|
||||||
readingsSingleUpdate($hash, "state", $cmdSE, 1);
|
readingsSingleUpdate($hash, "state", $cmdSE, 1);
|
||||||
|
|
||||||
} else {
|
} elsif($ssl ne "ignore") {
|
||||||
if($ssl =~ m/\b$cmdName\b/) {
|
if($ssl =~ m/\b$cmdName\b/) {
|
||||||
$hash->{skipStateFormat} = 1;
|
$hash->{skipStateFormat} = 1;
|
||||||
readingsSingleUpdate($hash, "state", "set_$cmdSE", 1);
|
readingsSingleUpdate($hash, "state", "set_$cmdSE", 1);
|
||||||
@ -1141,7 +1141,9 @@ zigbee2mqtt_devStateIcon255($;$$)
|
|||||||
in the list will set a reading named after the command, with the word set
|
in the list will set a reading named after the command, with the word set
|
||||||
and the command parameters as its value.<br><br>
|
and the command parameters as its value.<br><br>
|
||||||
If this attribute is not defined, then a set command will set the state
|
If this attribute is not defined, then a set command will set the state
|
||||||
reading to the name of the command.
|
reading to the name of the command.<br>
|
||||||
|
If this attribute is set to ignore, then a set command will not affect any
|
||||||
|
reading in the device.
|
||||||
</li><br>
|
</li><br>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user