Giter VIP home page Giter VIP logo

Comments (6)

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024 1

Fixed with - https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/releases/tag/v2.5.9

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

EDIT: After change to UI setup

Ok, it worked!
It seems that devices are not duplicated, with UI setup.
This morning i found the same entities, all of them available.
This is the log (3AM):

Logger: custom_components.skyq.media_player
Source: custom_components/skyq/media_player.py:185 
Integration: Sky Q (documentation, issues) 
First occurred: 3:00:57 (3 occurrences) 
Last logged: 3:00:57

W0010M - Device is not available: Sky Q - Mini Taverna
W0010M - Device is not available: Sky Q - Mini Camera
W0010M - Device is not available: Sky Q - Platinum

then (5AM)

Logger: homeassistant.helpers.entity
Source: custom_components/skyq/media_player.py:447 
First occurred: 5:02:15 (2 occurrences) 
Last logged: 5:02:22

Update for media_player.sky_q_mini_taverna fails
Update for media_player.sky_q_mini_camera fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 292, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 490, in async_device_update
    raise exc
  File "/config/custom_components/skyq/media_player.py", line 353, in async_update
    await self._async_updateState()
  File "/config/custom_components/skyq/media_player.py", line 447, in _async_updateState
    powerState = await self.hass.async_add_executor_job(self._remote.powerStatus)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pyskyqremote/skyq_remote.py", line 92, in powerStatus
    self._setupRemote()
  File "/usr/local/lib/python3.8/site-packages/pyskyqremote/skyq_remote.py", line 486, in _setupRemote
    self._channels = self._getChannels()
  File "/usr/local/lib/python3.8/site-packages/pyskyqremote/skyq_remote.py", line 466, in _getChannels
    return channels["services"]
KeyError: 'services'

followed by


Logger: custom_components.skyq.media_player
Source: custom_components/skyq/media_player.py:586 
Integration: Sky Q (documentation, issues) 
First occurred: 5:02:21 (3 occurrences) 
Last logged: 5:02:34

W0020M - Device is now available: Sky Q - Mini Taverna
W0020M - Device is now available: Sky Q - Mini Camera
W0020M - Device is now available: Sky Q - Platinum

The ‘id codes’ are different (w0010m - w0020M) but there are no ‘duplicates’ and they are available, both in the UI and in the status page.

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

Do you reboot your HASS instance overnight at 3am by any chance? The only way you should get W0010M (and then W0020M) is at HASS startup.

from home_assistant_skyq_mediaplayer.

KataGit avatar KataGit commented on August 15, 2024

Do you reboot your HASS instance overnight at 3am by any chance? The only way you should get W0010M (and then W0020M) is at HASS startup.

Yes!
I forgot it, but there is an automation for rebooting, exactly at 3AM.
Now it's disabled.

from home_assistant_skyq_mediaplayer.

RogerSelwyn avatar RogerSelwyn commented on August 15, 2024

Yes!
I forgot it, but there is an automation for rebooting, exactly at 3AM.
Now it's disabled.

Well I'm working a solution for the error you were getting in the logs, so it handles unavailable devices better. Can't get a full resolution for YAML based. I expect there is a way, but I can't figure it out. So just take the next update, and those errors should go, or schedule the reboot for earlier (UK sleep times are 2.45-5.45).

from home_assistant_skyq_mediaplayer.

KataGit avatar KataGit commented on August 15, 2024

Ok!
Thanks a lot for the help....

For the moment, i'm not interested in resuming the reboot, so i'll leave the situation as it is.

from home_assistant_skyq_mediaplayer.

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.