It’s always worth looking on the integrations GitHub repository (you can get to it via HACS), where someone has reported the same problem with an LG tv. I would guess there had been a change in the core that has caused this. If you could add you details to the issue already there, I will look at it when I get back from holiday.
Sorry if this is not the right place to ask this, but I’ve just started playing with Home Assistant again and installed the custom Sky Q Integration from HACS. It works great, allowing me to power the sky boxes on and off, show the current media channel/media being played, allows me to change the channels, etc.
Is there a way to get a list of recordings and be able to play those too at all?
Not within the integration as it stands. It is possible to extract them from the api on the box and indeed the pyskyqremote library supports retrieving them. I forget if there is a way to initiate playback, my suspicion is the answer is no, it would need to be done via remote control button commands.
Hello,
Skip to the bottom if you’re not interested in a short-ish story, apologies.
I am a wheelchair user, just upgraded to Sky Q from Sky HD, which I had previously put off as the original Sky Q box/remote didn’t have ir mode.
For years I have been using a Harmony hub, more recently I had invested in a Broadlink RM 4 Pro, and have been getting on fine with voice commands through Amazon Echo originally with the Harmony skill and more recently through Amazon’s Scenes.
When I wake up in the morning I want to put sky sports news on, a Harmony activity used to power on my bedroom TV and turn on the sky box, dialling 409 afterwards.
This relied on the old Magic Eye through aerial, despite me having upgraded years ago to a HDMI split over CAT6. However, no sky HD box means no aerial port, so now I can view what I want upstairs, but I need to use HA/Broadlink to control the skybox downstairs and therefore view it upstairs.
The real question:
After compiling a script which chooses a Harmony activity, presses the Sky Q power button, then exit and 409 I was fairly happy. But had recently realised that this relied on the box having switched off overnight. So I started thinking is there a way to access the one-off state of the box through HA. This brought me here!
Can I, as I had hoped, use the state on/off of the box in my current scripts to decide if I need to power the box on or not as part of my button command.
I see this in the documentation: Box State - Powered on/off state
I’ve been through all the installation et cetera, but don’t want to be using HA as my remote control as I control most of this via voice, so ideally I want everything accessible through a script which I can expose through Amazon Echo.
I use my PC by voice, iPhone with a stylus.
Gareth
The integration provides the state to HA, so it depends if your script can use the state presented in HA.
That said, whether you press the Sky Q button from powered off, or switched on should make no difference as far as I am aware. I think in both situations you will end up at the same place.
It doesn’t appear to be able to, unless I’m doing it incorrectly of course:
tv_sky_q_test:
alias: TV Sky Q test
sequence:
- if:
- condition: state
entity_id: media_player.skyq
state: 'off'
then:
- data:
command: poweron
num_repeats: 1
device: sky_q
action: remote.send_command
target:
entity_id: remote.ir_remote
- action: media_player.turn_on
target:
entity_id: media_player.skyq
data: {}
enabled: false
description: ''
I disabled the media player turn on function as it didn’t appear to work, before I realised it’s probably the state it’s not matching, as the script still reports as Never for last run.
It doesn’t seem to recognise the state as off, despite me viewing it in developer tools > states:
I also tried it with the extra attributes specified:
- condition: state
entity_id: media_player.skyq
state: 'off'
attribute: skyq_media_type
Any suggestions greatly appreciated…
The state of the box should report correctly. I’m afraid I can’t help with your automation script, I don’t use HA automation I use node red, so haven’t followed the convoluted way ha automations are done.
Perhaps at the least, you might be able to tell me how to enable the defaulted disabled sensor sky_q_schedule? I can try that instead then.
Either way, I will contribute towards a coffee for you when I’m back in my wheelchair tomorrow. (2FA not possible when I’m not in it)
The work you have done is invaluable to many no doubt.
EDIT, duh! I just click on it and click enable…
. I’m happy to help with many things . But when I look at your script it looks like it should work, but obviously it doesn’t. I don’t see a trigger for it to run maybe, it has a condition of when it shouldn’t run, but nothing to initiate it running. In Node Red you’d have to initiate from a state change or a scheduled action, I don’t see either of those in your script.
I can’t believe how stupid [I think] I’ve been. Well, I can believe I can be stupid, I can’t believe I didn’t realise the problem sooner. Ever heard the phrase PICNIC?
Problem in chair, not on computer… Though ironically on this occasion the problem, me, is on a bed not in a chair.
Having earlier pointed out I use my computer by voice, interaction with HA can be frustrating at times so I try and use keyboard shortcuts where possible. I was clicking on the three dots then say “move down two” followed by “enter”. Nothing was happening…
When I clicked the three dots with the mouse, positioning it and uttering the command “click” and move the mouse down to Run script then clicking again it worked.
However before I got to this point, I had made a template sensor, which I don’t fully understand anyway, tried an automation (to test your theory) and then Googled some more!
Tomorrow’s task, check if the original script would have worked if I’d used the mouse in the first place.
It must be a real challenge for you, and most of us could not possibly comprehend how difficult it is when you don’t have easy use of a mouse to get around.
Sorry, I can’t help with the scripts much, I think node red would be harder for you than the text based ha scripts.