mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
10_MQTT_DEVICE: fix set arguments
git-svn-id: https://svn.fhem.de/fhem/trunk@15202 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1f44464a6c
commit
7efb59634d
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 10_MQTT_DEVICE: fix set arguments
|
||||
- feature: 49_SSCam: V3.2.2, new command get listLog (SVS-Devs), minor fixes
|
||||
- change: 77_SMAEM: V3.0.0, make SMAEM ready for multimeter usage
|
||||
- new /www/pgm2/fhemweb_icon*.js: new widgets for FHEMWEB iconButtons,
|
||||
|
@ -103,12 +103,13 @@ sub Set($$$@) {
|
||||
readingsSingleUpdate($hash,$command,$value,1);
|
||||
$mark=1;
|
||||
} elsif(defined($hash->{publishSets}->{""})) {
|
||||
my $value = join (" ", ($command, @values));
|
||||
my $retain = $hash->{".retain"}->{""};
|
||||
$retain = $hash->{".retain"}->{'*'} unless defined($retain);
|
||||
my $qos = $hash->{".qos"}->{""};
|
||||
$qos = $hash->{".qos"}->{'*'} unless defined($qos);
|
||||
#Log3($hash->{NAME},1,">>>>>>>>>>>>>>>>>> RETAIN: ".$retain); $retain=0; ### TEST
|
||||
$msgid = send_publish($hash->{IODev}, topic => $hash->{publishSets}->{""}->{topic}, message => $command, qos => $qos, retain => $retain);
|
||||
$msgid = send_publish($hash->{IODev}, topic => $hash->{publishSets}->{""}->{topic}, message => $value, qos => $qos, retain => $retain);
|
||||
readingsSingleUpdate($hash,"state",$command,1);
|
||||
$mark=1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user