Update input_number.set_value in automation not working

This is my conf:

alias: Grzanie nocne
description: ""
triggers:
  - trigger: state
    entity_id:
      - schedule.grzanie_nocne
    from: "off"
    to: "on"
    id: "on"
  - trigger: state
    entity_id:
      - schedule.grzanie_nocne
    from: "on"
    to: "off"
    id: "off"
conditions:
  - condition: state
    entity_id: input_boolean.grzanie_nocne
    state: "on"
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "on"
        sequence:
          - wait_for_trigger:
              - trigger: state
                entity_id:
                  - light.tz3000_yl3zuyaw_ts0001_light
                to: "off"
          - action: input_number.set_value
            metadata: {}
            data:
              value: "{{ states('sensor.grzanie_w_nocy') }}"
            target:
              entity_id: input_number.wlacz_grzanie
      - conditions:
          - condition: trigger
            id:
              - "off"
        sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value: "{{ states('sensor.grzanie_w_dzien') }}"
            target:
              entity_id: input_number.wlacz_grzanie
mode: single

========================
Part of this dont work

- conditions:
          - condition: trigger
            id:
              - "on"
        sequence:
          - wait_for_trigger:
              - trigger: state
                entity_id:
                  - light.tz3000_yl3zuyaw_ts0001_light
                to: "off"
          - action: input_number.set_value
            metadata: {}
            data:
              value: "{{ states('sensor.grzanie_w_nocy') }}"
            target:
              entity_id: input_number.wlacz_grzanie
      - conditions:
          - condition: trigger
            id:
              - "off"
        sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value: "{{ states('sensor.grzanie_w_dzien') }}"
            target:
              entity_id: input_number.wlacz_grzanie

=====================
Especially

sequence:
          - action: input_number.set_value
            metadata: {}
            data:
              value: "{{ states('sensor.grzanie_w_dzien') }}"
            target:
              entity_id: input_number.wlacz_grzanie

In traces got something like this:

Please help.

Are you sure your states are numeric values?

{{ states('sensor.grzanie_w_dzien') }}

{{ states('sensor.grzanie_w_nocy') }}

I’d try changing them to

{{ states('sensor.grzanie_w_dzien') | float(0) }}

{{ states('sensor.grzanie_w_nocy') | float(0) }}

You are looking in the wrong place. There is (as far as I can tell at least) nothing wrong with the number.set_value action. It is more than likely the preceding wait_for_trigger which never, well, triggers:

As I and many others have to repeat almost daily in these forums, a state trigger will only ever fire if the state changes. If the state of light.tz3000_yl3zuyaw_ts0001_light is already off before reaching this block, the trigger will never fire until the state flips to on and then back to off again. To avoid this issue, instead use a wait_template:

- wait_template: "{{ is_state('light.tz3000_yl3zuyaw_ts0001_light', 'off') }}"

Still the same
My input (its a template)

and input that should be changed.

Oh… My my. It so logical that I feel like full. Thank you very much.