Problem create switch

Hello, i have a problem with my configuration, id have one remote contron in web interface (NODEMCU ESP8266, with ir sensor). i wish power on and off my climate with home assistant but i don’t know to create the switch.
E.S.:
command_on: “curl -s -X GET http://192.168.1.x/XXXXXX#is the command for power_on the clima
command_off: “curl -s -X GET http://192.168.1.x/YYYYYY#is the command for power_off the clima.
Sorry for my english :slight_smile:

You could probably use a template switch to make that work for you.