IR controlled AC switch state ON/OFF by Power Consuption Plug

Hello!

I just havent find ready automation / script / config how to make this easiest.
I have Tuya Scenes which can send commands to AC unit by Infrared. ( On, OFF , etc etc ).
“OFF scene: scene.tuya_ilmastointilaite_ir_remote_p_off”
“ON scene: scene.tuya_ilmastointilaite_ir_remote_ac25_full”

I have just bouth Tuya Smart Plug with power consution meter
"sensor.tuya_ilmastointilaite_virta_power "

Question is how i can have Switch in HA what shows state ON / OFF by smart plug power consuption ( OFF: below 10w and ON above 20w )

Thank you