HomeBridge and API url

255 views
Skip to first unread message

Geert Verbist

unread,
Nov 20, 2017, 12:56:55 PM11/20/17
to OpenRemote
Hi Everyone, I installed the openremote homebridge and got it up and running.

However, i am running into issues finding the correct API call to configure in config.json.

I found the device is in controller.xml...or at least I think so:

For example this:

<command id="2229" protocol="velbus">
      <property name="address" value="7" />
      <property name="networkId" value="1" />
      <property name="command" value="ON" />
      <property name="value" value="4" />
      <property name="name" value="Eettafel ON" />
      <property name="urn:openremote:device-command:device-name" value="VMB4RYNO" />
      <property name="urn:openremote:device-command:device-id" value="59522" />
    </command>


in the config.json

I have this:

{
     "bridge": {
        "name": "HomeBridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "My HomeBridge OpenRemote sample",

        "accessories": [{
            "accessory": "openremote",
            "name": "Eettafel Light",
                                "switchHandling": "realtime",
                                "http_method": "POST",
                                "on_url": "http://localhost:8688/controller/rest/control/59522/ON",
                                "off_url": "http://localhost:8688/controller/rest/control/59522/OFF",
                                "status_url": "http://localhost:8688/controller/rest/status/59522"
       }
           ]
}



I can see the switch but when I use it in homekit --- nothing happens.

I must be doing something wrong. 


someone got this running?

Thanks

Geert

Stuart Hanlon

unread,
Nov 26, 2017, 12:08:31 PM11/26/17
to OpenRemote
Hi Geert


How did you get on?

nitzan kappel

unread,
Nov 28, 2017, 2:31:56 AM11/28/17
to OpenRemote
Hi.
I am using too the homebridge and it working well. I think that your problem is indexing for both ON and OFF command the STATUS index (59522).
try to look in the controller.xml a unic command ID for the ON and OFF commands, and change the config.json accordingly.
Reply all
Reply to author
Forward
0 new messages