Closed jampez77 closed 2 years ago
The change from 2.7.9 to 2.7.10 didn't touch anywhere near this piece of code and unless you are installing via yaml will not have affected you at all.
That said, you shouldn't be getting this error in the log, so I'll try to identify what the issue is.
Thanks, I did think the changes for 2.7.10 sounded unrelated.
Not sure it will matter but I've manually set the IP address on the Sky Q box itself.
This has identified a bug (which in 99% of cases you'd never see), but when I look at that pair of errors it shows your SkyQ box has rejected the connection (which was to find out what the current app is that is running (usually the EPG). I'd change some coding around that some time back, and this has identified where I wasn't handling that failure.
I'll release a new version shortly which should remove the W0030M error, but the X0030U error looks valid.
This release will resolve the W0030M error. X0030U suggests your SkyQ box is rejecting websocket calls. If it happens every 5 seconds (or at least I think it is 5) then it is always rejecting. This is the only websocket call it makes, so I'll take a look and see if I can replace it with a restapi call, but I don't think that is possible.
https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/releases/tag/v2.7.11
This is the only websocket call it makes, so I'll take a look and see if I can replace it with a restapi call, but I don't think that is possible.
I can't see an alternative in the various apis that I am aware of.
Thanks for the quick turn around. I've updated it now, will keep an eye on it and let you know if it's happening. So far so good though.
So it's just happened again unfortunately, here are the logs:
2022-01-13 14:00:28 WARNING (MainThread) [custom_components.skyq.sensor] W0010S - Device is not available: Living Room Used Storage
2022-01-13 14:00:40 WARNING (MainThread) [custom_components.skyq.media_player] W0030M - Device is not available: Living Room
That suggests the connection to your SkyQ box is unstable., and I was wrong saying it would get rid of W0030M (sorry), it removed the error:
'AttributeError: 'str' object has no attribute 'appId'
W0030M means it can't access your box to check to see if it is switched on. You can check whether this is true using this query:-
http://192.168.x.xxx:9006/as/system/information
If it is momentary drops in connection, then you may need to automate it using the HA restful sensor - https://www.home-assistant.io/integrations/sensor.rest/
It is looking for an 'activeStandby' setting of true/false
It's definitely switched on as I'm currently watching it. I've looked at the system info and realised that it must be the powerline adapter I'm using that's dropping out. Will have a look to confirm if i can.
You wouldn't get that error, even if in standby. It means it can't contact the box, (which in Eco power mode you will get at 2:45 am as it goes into deep sleep), so there is a network problem. It could be your powerlines are going into some sort of power save. I use Devolo Magic 2 and they work fine.
I have a few TP link ones and they've been solid for the longest time. I did cut the power off the other day while putting a socket in so maybe that's related, I'm also seeing it with other devices on powerline adapters so pretty safe to say that's the culprit.
For anyone encountering similar problems. I eventually figured out that the Sky Q box itself was to blame for these issues.
To fix I reset the Network setup on the box and viola all is well now.
Describe the bug
Since updating to 2.7.10 my Sky Q box regularly becomes unavailable on HA.
To be precise it will report as playing then off, then unavailable and then back to playing.
To Reproduce
Steps to reproduce the behavior: There is no trick to reproducing this, It's not tied to any channel or time. I just watch TV for a while and the state will change from 'playing' to 'off' to 'unavailable' and then back to 'playing'.
In reality the state should always be 'playing'
Expected behavior
I would expected the correct state to be represented in HA.
Screenshots
Component versions
Your configuration
How have you setup your devices, by UI or YAML? UI
Output of HA logs
Paste the relavant output of the HA log here.