Get value and insert into another enitity

No it wont.

Firstly to format your post correctly use the </> button, not the quote button, or do this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Second, when you want to know how do do something look it up in the docs. If you go to the integrations search page and search for “number” it will lead you here: https://www.home-assistant.io/integrations/number/ Which has the details of the actions you need:

Unfortunately no example this time but most pages have them. So you want the number.set_value action

triggers:
  - trigger: state # this trigggers on all valid temperature changes
    entity_id: sensor.temperature # this is where your Aqara sensor goes
    not_to:
      - unavailable
      - unknown
actions:
  - action: number.set_vaue
    target:
      entity_id: number.thermostat_hc2_room_temperature_from_remote
    data:
      value: "{{ trigger.to_state.state }}"