mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
82_LGTV_WebOS: fix Forum #966380
git-svn-id: https://svn.fhem.de/fhem/trunk@19994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b697bb3855
commit
67aab66dbf
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 82_LGTV_WebOS: fix Forum #966380
|
||||||
- feature: 93_DbLog: new attr DbLogValueFn propagated as device specific
|
- feature: 93_DbLog: new attr DbLogValueFn propagated as device specific
|
||||||
attribute if DbLog is used
|
attribute if DbLog is used
|
||||||
- bugfix: 70_ZoneMinder: json parsing - again
|
- bugfix: 70_ZoneMinder: json parsing - again
|
||||||
|
@ -1142,8 +1142,11 @@ sub LGTV_WebOS_WriteReadings($$) {
|
|||||||
|
|
||||||
elsif ( defined( $decode_json->{payload}{appId} ) ) {
|
elsif ( defined( $decode_json->{payload}{appId} ) ) {
|
||||||
|
|
||||||
if ( $decode_json->{payload}{appId} =~ /com.webos.app.externalinput/
|
if ( ( $decode_json->{payload}{appId} =~ /com.webos.app.externalinput/
|
||||||
or $decode_json->{payload}{appId} =~ /com.webos.app.hdmi/ )
|
or $decode_json->{payload}{appId} =~ /com.webos.app.hdmi/ )
|
||||||
|
and defined ($hash->{helper}{device}{inputapps}{ $decode_json->{payload}{appId} } )
|
||||||
|
and $hash->{helper}{device}{inputapps}{ $decode_json->{payload}{appId} }
|
||||||
|
)
|
||||||
{
|
{
|
||||||
|
|
||||||
readingsBulkUpdateIfChanged( $hash, 'input',
|
readingsBulkUpdateIfChanged( $hash, 'input',
|
||||||
@ -1152,12 +1155,16 @@ sub LGTV_WebOS_WriteReadings($$) {
|
|||||||
readingsBulkUpdateIfChanged( $hash, 'launchApp', '-' );
|
readingsBulkUpdateIfChanged( $hash, 'launchApp', '-' );
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
elsif ( defined ( $openAppsPackageName{ $decode_json->{payload}{appId} } )
|
||||||
|
and $openAppsPackageName{ $decode_json->{payload}{appId} } )
|
||||||
|
{
|
||||||
|
|
||||||
readingsBulkUpdateIfChanged( $hash, 'launchApp',
|
readingsBulkUpdateIfChanged( $hash, 'launchApp',
|
||||||
$openAppsPackageName{ $decode_json->{payload}{appId} } );
|
$openAppsPackageName{ $decode_json->{payload}{appId} } );
|
||||||
readingsBulkUpdateIfChanged( $hash, 'input', '-' );
|
readingsBulkUpdateIfChanged( $hash, 'input', '-' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( defined( $decode_json->{type} ) ) {
|
if ( defined( $decode_json->{type} ) ) {
|
||||||
@ -1999,7 +2006,7 @@ sub LGTV_WebOS_WakeUp_Udp($@) {
|
|||||||
],
|
],
|
||||||
"release_status": "stable",
|
"release_status": "stable",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v3.2.0",
|
"version": "v3.2.1",
|
||||||
"author": [
|
"author": [
|
||||||
"Marko Oldenburg <leongaultier@gmail.com>"
|
"Marko Oldenburg <leongaultier@gmail.com>"
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user