Helper dropdown number to set a entity value

Hi I have created a dropdown helper which I have on the dashboard which I would like to use to change the value of an entity. The entity is a number.power-setpoint. How would be the best way to do this ? Thanks

In general the way to set the state value of an Input Select from the value of a number entity is to use a template in the action like:

action: number.set_value
target:
  entity_id: number.power_setpoint
data:
  value: '{{ states("input_select.EXAMPLE")|float(0)}}'

For your use case, you would set up an automation that triggers on the state change of the Input Select and then performs the action. Since the trigger will already have the new value in its data, you can use the trigger variable instead of querying the state like in the general example above:

alias: 'Set Power Setpoint to value of Input Select helper'
triggers:
  - trigger: select.selection_changed
    target:
      entity_id: input_select.EXAMPLE
    options: {}
conditions: []
actions:
  - action: number.set_value
    target:
      entity_id: number.power_setpoint
    data:
      value: '{{ trigger.to_state.state|float(0) }}'
mode: queued

This could also be solved by using a Template Select instead of an Input Select.

Number entities can be directly changed by you, so you can put a number entity on your dashboard, unless you meant that you want the options restricted to a specific set of values — then the intermediary input select makes sense.

Thanks, when I put the number entity on the dashboard I can only change it with the up and down arrows which takes a lot of pressing to get from 60 to 5000. I’ll give this a try

Thanks works perfectly, not sure why but I had to remove the last line, mode: queued it was coming up with a duplicate error ?

That’s odd, because normally they show up with a slide or box.

In this case, the integration is specifying the behaviour, but you might also be able to override it like this:

homeassistant:
  customize:
    number. power_setpoint:
      # options: 'box' or 'slider'
      mode: box