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.
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
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.
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:
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.
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…