The implementation sends /<name>?params=1 for turn_on and /<name>?params=0 for turn_off It uses the return value of the function to determine the current state. 0=Off, 1=On