Refresh number select/slider on set_value?

Update: I went with a separate input_text notification, which is fine.

This is not unsimilar to this post where you want to dynamically limit/validate an input number.

The question is if there a way to refresh the slider back to the current state?

For example, in this case I tried to select 88 but the validation reset it to what it was before.

This is not about setting the ranges on the input_number. Might want to allow just odd numbers, for example.

I’m not exactly clear on the best UI for this, but is there any way to get the slider to refresh back to the 65?

Of course, I could have a text field show up that says the selected value is invalid, but having the slider snap back might be more of a clue.

And, there’s no other way to do the validation other than in that post linked above that uses two entities or with an automation like this, right?

input_number:
  some_other_number:
    min: 50
    max: 100

automation:
  - id: validate_some_number
    mode: single
    triggers:
      - trigger: state
        entity_id:
          - input_number.some_other_number
    conditions: []
    actions:
      - if:
          - condition: template
            value_template: "{{ trigger.to_state.state|int(60) > 75 }}"
        then:
          - action: input_number.set_value
            target:
              entity_id: input_number.some_other_number
            data:
              value: "{{ trigger.from_state.state|int(60) }}"

That is, no way to do self-validation, correct?

This is just a non-working example: this won’t allow setting value w/o a state, and you cannot set self (it warns Template Number set_value: Already running).

  - number:
      - default_entity_id: number.some_number
        min: 50
        max: 75
        variables:
          # From some other entity
          max: 60
        set_value:
          - action: number.set_value
            target:
              entity_id: number.some_number
            data:
              value: "{{ value if value|int <= max else this.state }}"