2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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:
rudolfkoenig 2023-05-29 08:42:31 +00:00
parent df75120e8f
commit 84d39b9eda

View File

@ -417,7 +417,7 @@ MQTT2_DEVICE_Set($@)
if(!$ssl) {
readingsSingleUpdate($hash, "state", $cmdSE, 1);
} else {
} elsif($ssl ne "ignore") {
if($ssl =~ m/\b$cmdName\b/) {
$hash->{skipStateFormat} = 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
and the command parameters as its value.<br><br>
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>
</ul>