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:

scene:
  - name: all_off_media
    entities:
      media_player.kodi:
        state: paused
      media_player.samsungtv:
        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

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

and then switching on that script in the scene:

scene: 
 - name: "Radio in the morning"
     entities:
       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: