Binary Sensor State to Curl

Hi, pardon if this is too easy but couldn’t find what I am looking for by searching.
I am trying to have the Eight Sleep integration change a variable on my ISY 994i Rest interface. I know the sensors I am looking at is called binary_sensor.eight_left_bed_presence. The Curl command I would need to invoke to change the variable is; http://user:[email protected]/rest/vars/set/2/53/0 or 1. I would essential need the sensor to keep the variable in sync.

How can I do that with my newly installed home assistant?
Thanks in advance.