HTTP to Fibaro command

HI Very new to this platform but have had a fibre for a while.
I am wanting to set up a switch to control a device on my Fibaro controller.
I have the URL that works fine when run in a browser
http://####:#####@192.168.#.##/api/callAction?deviceID=236&name=turnOn
I am hoping I can do this from home-assitant i.e. send and have it action immediately as it does in a browser

Have done some searching but nothing has worked
i.e. testing curl form the command line, any assistance would be greatly appreciated

Isn’t fibaro a z-wave device? There is a whole section on setting up z-wave in the docs.

Anyway you can probably use your url with the restful switch component.

Thanks will look into this, yes Fibaro is a z-wave controller so not looking to replace more make use of its function with HTTP commands

Well fibaro seems to fully document it’s restful api here.

https://manuals.fibaro.com/knowledge-base-browse/fibaro-system-api-documentation/

HI been trying to understand how the RESTful switch works as I am quite new to this.
I have successfully done the below
switch:

Would appreciate any help

thanks

I am reaching the limit of my knowledge here. There are other restful components though:

Thanks Have all that info hopefully someone else will be able to assist

Hi! Was Your issue solved?
I am also struggling with similar thing. I have a Virtual Device in my Fibaro Homecenter 2 which is turning on/off my garden flood light. I can turn the light on and off with http commands but I am not (yet) able to create a virtual switch in the Home Assistant Configuration.YAML file. Any help is more than welcome.

What have you tried? What are the http commands.

Luckily I was able to figure this thing out at the end by using curl command and Command Line type of Switch.
So if anyone needs to turn On/Off a Fibaro switch which was not imported to Home Assistant, here is an example:

switch:
  - platform: command_line
    switches:
      friendly_name_of_switch:
        command_on: "curl -X POST -u login:password -d '' http://Fibaro Homecenter 2 IP/api/devices/device_id/action/turnOn"
        command_off: "curl -X POST -u login:password -d '' http://Fibaro Homecenter 2 IP/api/devices/device_id/action/turnOff"

This works for me perfectly.

1 Like