Tuya radiator valve (TS0601) calibration from external sensor (via zigbee2mqtt)

I found an issue with the second trigger. It never worked for me. I found that the variables are not visible in the trigger scope. So have added a workgorund.

trigger_variables:
  valve: !input valve
  temp_sensor: !input temp_sensor