RogerSelwyn / Home_Assistant_SkyQ_MediaPlayer

Home Assistant SkyQ Media player component
MIT License
103 stars 17 forks source link

[Feature Request] Control SkyQ box via automations #154

Closed mogusbi-motech closed 1 year ago

mogusbi-motech commented 1 year ago

Is your feature request related to a problem? Please describe.
I am unable to control my SkyQ box via an automation.

Describe the solution you'd like
I would like to be able to automate certain actions such as turning my box on and off

Describe alternatives you've considered
I have tried to add an action but no options are available

image

Additional context
See above

RogerSelwyn commented 1 year ago

This is perfectly possible with the current media_player.turn_on/off services. I don’t use HA default automations (I use Node Red), but I know it works from the services view in the Developer Tools dialogue, so I’m 100% sure you can make the same service call from an HA automation.

RogerSelwyn commented 1 year ago

If you go to Services in Developer Tools, and go to YAML mode it will full example data for you.

RogerSelwyn commented 1 year ago

You need to do a service call action rather than a device action.

RogerSelwyn commented 1 year ago

However I will look to see if I can add device actions as well.

mogusbi-motech commented 1 year ago

Amazing (I say this as a total HA novice). That is exactly what I needed to do so thanks. Yeah an action would probably assist anyone new to this like me

RogerSelwyn commented 1 year ago

Device Actions added with this release - https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/releases/tag/v2.11.5