resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 278 forks source link

Feature Request: Turn_on_action for media_players #25

Closed Kaahbal closed 6 years ago

Kaahbal commented 6 years ago

For my TV i use a command called Turn_on_action which basicly launches a WOL script i wrote.

Can this field be implemented into a media_player as optional?

turn_on_action:
  service: switch.turn_on
  data:
    entity_id: switch.LGTV

Cheers

vassilis-panos commented 6 years ago

Sorry to jump in but I think that we need a turn on/off button at first

resoai commented 6 years ago

Let us leave it for now unless someone wishes to implement it. As for the WOL switch I would suggest making a simple SWITCH tile next to it as implementing custom logic for it would be kind of unnatural.

Kaahbal commented 6 years ago

well that works for turning it on, but turn off becomes a dummy basicly and does nothing.

resoai commented 6 years ago

You can create a template switch in HA that has different tun_on and turn_off actions.

Kaahbal commented 6 years ago

I know, still need to shut done media_player through a curl or so.

resoai commented 6 years ago

I've implemented the ability to turn media_player on and off and also made a few changes to back, forward, play and mute buttons. Those will now be hidden if player if off.

resoai commented 6 years ago

I've added checks to see if player supports certain features. Could you please confirm turning player on and off works fine for you?

Kaahbal commented 6 years ago

In a car atm, will post resultat later tonight when i can.

Kaahbal commented 6 years ago

Power buttons show for LGTV (still need to be able to bind turn_on to run script tho, see OP). Power-Off works just fine. WOW!

resoai commented 6 years ago

Good! I'm happy we had it sorted.