Question on remote calling a switch

Hey im thinking of moving to HA from my domotiga and domotics setups
however i got a AIY (google assistant) running on a RPI with like 300 custom commands that calls upon the domoticz server with commands like this
“#!/bin/bash
curl “http://192.168.1.99:8080/json.htm?type=command&param=switchlight&idx=1&switchcmd=On””

i havent been able to find out if there is something simple like this in HA ?
is it possible to curl a url on the HA server to turn on or off a switch ?

Most definitely yes. HA’s REST API is documented here.

1 Like

Ahh thanks!