Howto trigger

Hi,
I want to turn-on my Raumfeld Speakers when I switch on my television. I used to to this via the following automation:

alias: Raumfeld Boxen Automatic start
description: Starten der Raumfeld Boxen wenn der LG Fernseher eingeschaltet wird
trigger:
  - platform: device
    device_id: xxxxxxxxxxxxxxxxxxxxxxxx
    domain: media_player
    entity_id: media_player.lg_webos_smart_tv
    type: turned_on
condition: []
action:
  - service: select.room_wohnzimmer_powerstate
    data:
      entity_id: sensor.room_wohnzimmer_powerstate
      power_state: "on"
mode: single

However, now after an update, the Raumfeld plugin changed. The changelog states that the set_power_state service was replace by the corresponding selector entity. I see that in my configuration, because now at the frontend, the selector looks like this:

image

I can activate it manually by clicking on “off” or “on”, but I cannot figure out which service to call to activate it with my automation above.

Can anybody help? Which service do I have to execute to turn my speakers on or off via this selector interface?

Thanks for your help and best regards,
Phil

Use developer tools → service calls and see what you need.
Just input what you need in the GUI and switch over to yaml.

Use the select.select_option service call.

Hi,
yes thats it. Just for reference, this is the complete call which worked for me:

service: select.select_option
target:
  entity_id: select.room_wohnzimmer_powerstate
data:
  option: "eco"

thanks for your help!

Yes, I tried that. Unfortunately, the automatic fill in did not work there. It did not suggest anything. For this reason I had to figure out the YAML command directy.