mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
73_AMADCommBridge: fix utf8 character in set mode
git-svn-id: https://svn.fhem.de/fhem/trunk@15099 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7f4ed0896f
commit
c71eaf1327
@ -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: 73_AMADCommBridge: fix utf8 character in set mode
|
||||
- feature: 82_LGTV_WebOS: version 1.0.0 add WakeOnLAN function
|
||||
- bugfix: 00_MQTT: fix Undef
|
||||
- feature: 83_IOhomecontrol: new attribute setCmds
|
||||
|
@ -74,7 +74,7 @@ eval "use Encode qw(encode encode_utf8);1" or $missingModul .= "Encode ";
|
||||
eval "use JSON;1" or $missingModul .= "JSON ";
|
||||
|
||||
|
||||
my $modulversion = "4.0.6";
|
||||
my $modulversion = "4.0.7";
|
||||
my $flowsetversion = "4.0.9";
|
||||
|
||||
|
||||
@ -806,7 +806,7 @@ sub AMADCommBridge_ResponseProcessing($$) {
|
||||
}
|
||||
|
||||
elsif ( $fhemcmd eq 'set' ) {
|
||||
my $fhemCmd = $decode_json->{payload}{setcmd};
|
||||
my $fhemCmd = encode_utf8($decode_json->{payload}{setcmd});
|
||||
AnalyzeCommandChain($bhash, 'set '.$fhemCmd) if( AttrVal( $bname, 'fhemControlMode', 'trigger' ) eq 'setControl' );
|
||||
readingsSingleUpdate( $bhash, "receiveFhemCommand", "set ".$fhemCmd, 1 ) if( AttrVal( $bname, 'fhemControlMode', 'trigger' ) eq 'trigger' );
|
||||
Log3 $bname, 4, "AMADCommBridge ($name) - AMADCommBridge_CommBridge: set reading receive fhem command";
|
||||
|
Loading…
x
Reference in New Issue
Block a user