Unable to pass data option to select entity_id with action

Evening all, i am having great difficulty with what i imagine is the simplest of actions. I am trying to set my dishwasher program via the Actions in developer tools. But every time the action activates the dishwasher defaults to it’s current program.

-select.dishwasher_bsh_common_root_activeprogram has the following options from the device.

options:

  • Auto1
  • Auto2
  • Intensiv70
  • MachineCare
  • NightWash
  • Normal45
  • PreRinse
  • Quick45
  • Quick65
    friendly_name: dishwasher ActiveProgram

These also work perfectly if i set them from the States tab. But when i run it via the actions tab i get the follow log error.

2025-03-19 21:18:59.394 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities select.dishwasher_bsh_common_root_activeprogram are missing or not currently available

Can someone please tell me what i am doing wrong as i’ve been at this for hours now and i’m no closed to a solution.

You’re using an input_select action on a select entity.

You need to use a select action for a select entity, or an input_select action for an input_select entity.

Thank you for the feedback. I should have mentioned my original code was using select.select_option but that had the same issue.

But when that failed I just tried all sorts of variations.

Any ideas on what else I can’t try?

Well the response is telling you that entity doesn’t exist.

What happens if you use the UI editor instead of YAML?

Can you show proof screenshot of that entity existing in the developer-tools/states panel?

So this is the states that can be set from the states tab. They work and can be set manual and the device updates.

But using the action the device turns on (Which this function also does, it turns the device on and sets the program) but the program doesn’t update.

I checked the logs and i’m not getting any error when use select.select_option. I must have been confused earlier.

This is the log from MQTT as it’s sent via that to the dishwasher.

2025-03-19 22:09:54.883 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on homeassistant/dishwasher/state/bsh_common_root_activeprogram (qos=0): b’Auto1’

The UI editor has the same problem.

I figured out the problem in the end. As i was testing this from the States tab it was showing the MQTT control screen changing. But the code wasn’t performing the same action.

This was because the Dishwasher was already running and a program was loaded. The UI was showing that the states tab was changing the program but it wasn’t. It was only showing that change in the UI.

The code i had written originally works except if i want to change a program i need to clear the previous one first.