I’m no expert but don’t you need to supply an on and off command?
Also to aid in debugging please format your code as explained in the blue banner at the top of the page or highlight your code and use the </> button in the post toolbar.
Given the little you’ve said about how to interact with this switch, I would think the RESTful Switch is probably not the right component for you to use. E.g., this component seems to only use GET to check the state of the switch, and PUT or POST to change the state of the switch. But it would seem your switch needs to be changed via GET requests. (This probably explains why the switch keeps going back on. I.e., whenever HA periodically tries to update the state of the corresponding HA entity, it’s sending a GET request using the URL you provided, which doesn’t get the state of the switch, but turns it on.)
You may be better off trying to use the Command Line Switch (e.g., using curl commands.)
Thanks for the response,
I was able to get the results I want using command line and it is working well,
Would be great if the Fibaro controller could be added like a Vera one