Giter Club home page Giter Club logo

Comments (7)

MaxvandeLaar avatar MaxvandeLaar commented on July 18, 2024

@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.

OllemGit avatar OllemGit commented on July 18, 2024

I checked yesterday and can confirm my OLED tv is also reporting 'screen saver' state as off.

from homey-webos-plus.

jonasvekeman avatar jonasvekeman commented on July 18, 2024

@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.

jonasvekeman avatar jonasvekeman commented on July 18, 2024

Hi @MaxvandeLaar

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.

MaxvandeLaar avatar MaxvandeLaar commented on July 18, 2024

@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.

jonasvekeman avatar jonasvekeman commented on July 18, 2024

First test proves to be succesfull, thank you very much.

from homey-webos-plus.

MaxvandeLaar avatar MaxvandeLaar commented on July 18, 2024

👍 No problem

from homey-webos-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.