diff --git a/package.json b/package.json index 268f9f6..67d2649 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "LG webOS TV", "name": "homebridge-lgwebos-tv", - "version": "2.18.2", + "version": "2.18.3", "description": "Homebridge plugin to control LG webOS TV.", "license": "MIT", "author": "grzegorz914", diff --git a/src/lgwebossocket.js b/src/lgwebossocket.js index 5552d44..4373aa2 100644 --- a/src/lgwebossocket.js +++ b/src/lgwebossocket.js @@ -416,6 +416,7 @@ class LgWebOsSocket extends EventEmitter { this.emit('powerState', this.power, this.screenState); const disconnect = !this.power ? socket.emit('powerOff') : false; + const emit = this.screenState === 'Screen Saver' ? this.emit('currentApp', 'com.webos.app.screensaver') : this.emit('currentApp', this.appId); //restFul this.emit('restFul', 'power', messageData);