@therealdb & @toggledbits it wasn't that easy... I finally got this working, but it took a couple of iterations. Correct version below:
pool_set_temp: capabilities: [ hvac_heating_unit ] primary_attribute: hvac_heating_unit.setpoint actions: hvac_heating_unit: set_setpoint: topic: "pool/set" payload: type: json expr: '{ "command": 4, "value": min( 30, max( 20, int( parameters.setpoint ) ) ), "time": 0, "interval": 0 }'Devil is in the details I guess.