ESP home automation in HA - how to update value?

Hi, I have a SLWF-01pro (v.2.1) module inserted in my Samsung AC. It came with preloaded YAML so I need only to connect it and have it in my HA. Now it works and it have a function called “follow me”. It “tells” AC what temperature is instead to AC use it own sensor. Creator of SLWF-01pro use this ESPhome code to enable automation in HA:

# Enable Home Assistant API
api:
  services:
    - service: follow_me
      variables:
        temperature: float
      then:
        midea_ac.follow_me:
          temperature: !lambda "return temperature;"
          beeper: false

Now I have this Action in my HA:


I don’t know to use this action in some automation because there is a field “temperature” which must be filled with some number.
So, I want to create automation which will transfer value from my temperature sensor into this “temperature” field in that action, but don’t know how to do that :relieved: