diverse bugfixes für Player und Group
This commit is contained in:
parent
2f766e7c46
commit
ccf0731351
@ -36,7 +36,7 @@ use warnings;
|
||||
use JSON qw(decode_json);
|
||||
use Encode qw(encode_utf8);
|
||||
|
||||
my $version = "0.1.61";
|
||||
my $version = "0.1.62";
|
||||
|
||||
# Declare functions
|
||||
sub HEOSGroup_Initialize($);
|
||||
@ -216,7 +216,8 @@ sub HEOSGroup_Notify($$) {
|
||||
return if( !$events );
|
||||
readingsBeginUpdate($hash);
|
||||
|
||||
my %playerEevents = map { my ( $key, $value ) = split /:\s/; $value =~ s/^\s+//; ( $key, $value ) } @$events;
|
||||
#my %playerEevents = map { my ( $key, $value ) = split /:\s/; $value =~ s/^\s+//; ( $key, $value ) } @$events;
|
||||
my %playerEevents = map { my ( $key, $value ) = split /:\s/; ( $key, $value ) } @$events;
|
||||
|
||||
foreach my $key ( keys %playerEevents ) {
|
||||
|
||||
|
@ -47,7 +47,7 @@ use Encode qw(encode_utf8);
|
||||
use Net::Telnet;
|
||||
use Data::Dumper;
|
||||
|
||||
my $version = "0.1.61";
|
||||
my $version = "0.1.62";
|
||||
|
||||
my %heosCmds = (
|
||||
'enableChangeEvents' => 'system/register_for_change_events?enable=',
|
||||
|
@ -37,7 +37,7 @@ use JSON qw(decode_json);
|
||||
use Encode qw(encode_utf8);
|
||||
use Data::Dumper;
|
||||
|
||||
my $version = "0.1.61";
|
||||
my $version = "0.1.62";
|
||||
|
||||
# Declare functions
|
||||
sub HEOSPlayer_Initialize($);
|
||||
@ -272,7 +272,7 @@ sub HEOSPlayer_Set($$@) {
|
||||
my $rvalue;
|
||||
my $favoritcount = 1;
|
||||
my $qcount = 1;
|
||||
my $string = '';
|
||||
my $string = "pid=$pid";
|
||||
|
||||
|
||||
#print "cmd ###################################################\n".Dumper($cmd);
|
||||
@ -358,7 +358,7 @@ sub HEOSPlayer_Set($$@) {
|
||||
} elsif( $cmd eq 'groupWithMember' ) {
|
||||
return "usage: groupWithMember" if( @args != 1 );
|
||||
|
||||
$pid .= ",$defs{$args[0]}->{PID}";
|
||||
$string .= ",$defs{$args[0]}->{PID}";
|
||||
$heosCmd = 'createGroup';
|
||||
|
||||
} elsif( $cmd eq 'clearGroup' ) {
|
||||
@ -623,8 +623,7 @@ sub HEOSPlayer_Set($$@) {
|
||||
return "Unknown argument $cmd, choose one of $list";
|
||||
}
|
||||
|
||||
|
||||
$string .= "pid=$pid";
|
||||
|
||||
$string .= "&$action" if( defined($action));
|
||||
IOWrite($hash,"$heosCmd","$string");
|
||||
Log3 $name, 4, "HEOSPlayer ($name) - IOWrite: $heosCmd $string IODevHash=$hash->{IODev}";
|
||||
|
Loading…
Reference in New Issue
Block a user