Turn media_player on in scene

media_player.mpd: on

is not working, this is what I get in the log:

16-04-25 10:31:54 homeassistant.helpers.state: reproduce_state: Unable to reproduce state <state media_player.mpd=turn_on @ 2016-04-25T10:31:36.177977+02:00>

I’m trying to figure out how to use media_player as part of a scene too. Would love some info. :slight_smile:

Here a snippet from my config that’s working:

  - name: all_off_media
        state: paused
        state: off

thanks. It’s not yet working for me. I somehow have to start the scene twice. What did work however was creating a script

    alias: "Turn MPD on"
      - service: media_player.turn_on
          entity_id: media_player.mpd

and then switching on that script in the scene:

 - name: "Radio in the morning"
       switch.speaker_zipp: off
       switch.speaker_office: off
       switch.speaker_living: off
       switch.speaker_kitchen: on
       switch.speaker_loop: on
       switch.play_dlf: on
       switch.fibaro_system_fgs221_double_relay_switch_2x15kw_switch_25: on
       script.mpd_on: on

I’m responsible for the last refactor of the scene state helper. I’ve looked over this code now and also the code for the mpd component, but I couldn’t see anything suspicious.

The main logic for connecting a scene state with a service is here, if anyone wants to have a look:

This depends on the two dicts here: