Switch with url string

Hello, I need your help.
I have a switch that can be switched on and off via a url command.
What is the best way to integrate it into the Home Assistant

ON

http://192.168.111.171/api/v1/var/lights/item4/scmd/set?value=1&username=admin&password=admin

OFF

http://192.168.111.171/api/v1/var/lights/item4/scmd/set?value=0&username=admin&password=admin

Hi, zoogara

Can you please send me an example?

Actually - although the RESTful switch says it supports the GET method - I think you will have issues implementing it as it only supports GET for retrieving state.

The method in this post looks like it might work: