Comments (7)
@jonasvekeman Hmm interesting, if the state 'screen saver' is detected it is handled as 'on'. It is possible your tv is sending another state than I am expecting. If you can debug the app for me and check what 'state' and 'process' it is sending to the app I can change the logic accordingly.
You can debug the app by running homey app run
instead of homey app install
to see the logging. Keep open the terminal and make the tv turn its screen saver on. You should watch for something like _powerStateListener: Power state changed ...
and _powerStateListener: Called timeout ...
log lines to find the state and process the tv is in. If you could send me this information that would help a lot.
Thanks
from homey-webos-plus.
I checked yesterday and can confirm my OLED tv is also reporting 'screen saver' state as off.
from homey-webos-plus.
@MaxvandeLaar Thanks for the reply. I'll do the debugging tonight or tomorrow and get back to you. Do I need to uninstall the app first?
from homey-webos-plus.
I did a test with the screen saver, this is the output of the debug logging:
2020-05-19 16:58:02 [log] [ManagerDrivers] [webos_plus] [0] _handleResponse: ssap://com.webos.service.tvpower/power/getPowerState
2020-05-19 16:58:02 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Power state changed { returnValue: true,
state: 'Active',
processing: 'Request Screen Saver' }
2020-05-19 16:58:02 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Set timeout to 2000 ms and check the state
2020-05-19 16:58:03 [log] [ManagerDrivers] [webos_plus] [0] _handleResponse: ssap://com.webos.service.tvpower/power/getPowerState
2020-05-19 16:58:03 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Reset timer
2020-05-19 16:58:03 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Power state changed { returnValue: true, state: 'Screen Saver' }
2020-05-19 16:58:03 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Set timeout to 2000 ms and check the state
2020-05-19 16:58:05 [log] [ManagerDrivers] [webos_plus] [0] _powerStateListener: Called timeout screen saver null
2020-05-19 16:58:05 [log] [ManagerDrivers] [webos_plus] [0] powerStateListener: received on
2020-05-19 16:58:05 [log] [ManagerDrivers] [webos_plus] [0] powerStateListener: received off
from homey-webos-plus.
@jonasvekeman Thanks, I figured out why this is happening. I think this will fix it https://github.com/MaxvandeLaar/homey-webos-plus/releases/tag/v2.2.1
from homey-webos-plus.
First test proves to be succesfull, thank you very much.
from homey-webos-plus.
👍 No problem
from homey-webos-plus.
Related Issues (20)
- TV turns on when Of command is send HOT 4
- Sending toastmessage with gallery image not displayed on TV HOT 51
- Speaker track undefined
- Power on issue HOT 7
- Power off issue HOT 22
- WebOS Plus v1.3.1 crashing HOT 2
- App crash HOT 12
- TV started sending on/off signals randomly HOT 2
- Change input by variable HOT 1
- "App or input select" shows last fav website regardless of choice
- Screensaver State ? HOT 2
- App crashes right after authorized on TV
- Green download button is working but WebOS Plus app is not installed on Homey HOT 1
- SDK 3 HOT 9
- Many flow.conditions[*].titleFormatted is missing HOT 1
- App origin is unknown HOT 2
- TV turns on HOT 4
- Error occurred during npm prune
- Image on LG C2 TV HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homey-webos-plus.