Home Assistant bridge to Indigo

Howdy all,

I developed this over the past year and wanted to start to make it available. Its started off as a modification of another MQTT plugin but Ive turned it into a lot more. I wanted to start getting user feedback.


HassBridge

This is an plugin for Indigo Domotics to bridge to Home Assistant using its inbuild MQTT discovery and events system.

It provides a bi-directional bridge for the devices directly controlled by Indigo and allows Home Assistant to be able to be able to control and use those devices. It is able to send actions, like button presses, to Home Assistant to be able to be handled as events. It also allows for Indigo Variables to be displayed as Sensors in Home Assistant.

Features

  • Home Assistant Auto Discovery of published Indigo devices.
  • Bi Directional control of Indigo connected devices.
  • Expose keypad and remote button presses as Home Assistant Events and Device Actions.
  • Expose Indigo Variables as Home Assistant Sensors.
  • Allows for customization how Indigo devices are represented in Home Assistant

Release
The current Beta release is available at: https://github.com/wonderslug/hassbridge/releases
Source: https://github.com/wonderslug/hassbridge
Issues/Bugs: https://github.com/wonderslug/hassbridge/issues

For more info, please see the Readme: https://github.com/wonderslug/hassbridge/blob/c9fb9d8e47058cd302111dc651aefc5f78cf7e67/README.md

Please note: This is a plugin for the Indigo Domotics server that run on mac. It is not an plugin for Home Assistant. It interfaces to Home Assistant using MQTT and the MQTT Discovery.

3 Likes

The Indigo forum indicates that hassbridge can communicate via Home Assistant REST api. Specifically, to deliver certain events generated by Indigo that aren’t supported by MQTT.

From the Indigo forum, this description of communication between Home Assistant and Indigo:

The direct connection with the authentication token is an HTTP rest based connection that allows HassBridge to submit events to Home Assistant from Indigo. Things like an Insteon Double click on or off do not have an equivalent in Home Assistant MQTT and need to be exposed as an event that can be caught and handled by Home Assistant automations. Information about entity names and such are also pulled into Indigo via the direct HTTP connection.

While the MQTT portion of hassbridge is up and working well, I can’t figure how to capture the REST events in Home Assistant. I’ve found many examples of REST requests that Home Assistant submits, but not how to handle external requests.

From Indigo I’ve determined a sample of what’s being sent to Home Assistant:

https://192.168.1.60:8123/api/events/indigo_hassbridge_instant_on`
'{"group": 1, "address": "49.97.6F", "sender_id": "office_up-(6)", "name": "Office Up-(6)", "id": 1151444175}

Thanks for any insights.
Greg

HassBridge uses the rest API to send events, such as indigo_hassbridge_instant_on, as well as to pull information from home assistant about the entity names for its internal mapping.

The events it fires in HA is dependent on the “Event Prefix” in the HassBridge config but by default it is indigo_hassbridge

So it will send the following events:

  • indigo_hassbridge_on
  • indigo_hassbridge_off
  • indigo_hassbridge_instant_on (double click on)
  • indigo_hassbridge_instant_off (double click off)
  • indigo_hassbridge_start_brighten
  • indigo_hassbridge_stop_brighten
  • indigo_hassbridge_start_dim
  • indigo_hassbridge_stop_dim

You can use the events as triggers for automations for example.

platform: event
event_type: indigo_hassbridge_on
event_data:
  sender_id: master_bedroom_remote_button_f

You can see the events using the Developer Tools Events Tab in your Home Assistant instance.

Open your Home Assistant instance and show your event developer tools.

Brian,

I clearly have some work ahead in understanding Home Assistant. Had I asked for help sooner, I could have saved myself a lot of time and frustration.

Thank you for developing hassbridge and helping me to get things working.

Greg

BTW, I looked for a “buy me a cup of coffee” link on GitHub, but didn’t see one.

wonderslug - Any chance this will get updated for the python3 integration in indigo so it can keep working?

I have not had time to get to it yet, best I can say is I will when I can. But I am also happy to take PRs for anyone who wants to work on it.

I have personally been thinking about trying to move over to the updated Insteon integration, but have not had time for that either.

Any chance you found the time to update this. I am happy to help test it but I am pretty sure I dont have the background to update the plugin myself…