I am fairly new to Home Assistant and I wish to be able to make URL API calls via either buttons on my Home Assistant home page OR trigger these URL API calls via an automation.
For example, if I wish to detach a Shelly relay, I may wish to call:
if you want to follow this path, it is a valid one.
If you want an easier one, you can try Shelly integration. This integration will create switch entities automatically for you and will handle all commands too.
Thanks for your reply. I am using the Shelly integration already for normal light function, but the integration module does not currently offer a way to change the switch mode - hence why I am looking at making a direct API call.