jdeath / Hubspace-Homeassistant

Hubspace Integration for Home Assistant
MIT License
187 stars 35 forks source link
home-assistant homeassistant

Stargazers repo roster for @jdeath/Hubspace-Homeassistant

Please ask support questions in homeassistant forums: https://community.home-assistant.io/t/add-support-for-hubspace-by-afero/306645

Background

HubSpace is reliant on a cloud connection which means this integration could break at any point. Not all devices may be supported with and developer time will be required to add new devices. Supported device types:

Breaking Change:

@Expl0dingBanana did amazing work to allow configuration via the UI, async calls, robust autoscan, and treating devices correctly instead of everything as a light. A few devices are left to be tested.

Configuration is done through the Add Integrations rather than configuration.yaml. Some devices may not work after moving the configuration to the integration. Please review the docs on how to gather the device data to send to the developer.

No longer supports services. Many often used services are incorperated into the device types. Hopefully will be added back

Thanks to @dloveall and now @Expl0dingBanana this release will automatically discover most devices. Post an issue, if your device is no longer found.

Since some of the internals were changed, so your light name may change. locks will now be locks, fans actual fans, etc

To solve this, go to Settings->Devices and Services->Entities find the light.friendlyname and delete it. then find the light.friendlyname_2 and rename it light.friendlyname

Information :

This integration talks to the HubSpace API to set and retrieve states for all of your registered devices. Once the devices are discovered, it will determine device capability and show correctly within Home Assistant.

Thanks to everyone who starred my repo! To star it click on the image below, then it will be on top right. Thanks!

Stargazers repo roster for @jdeath/Hubspace-Homeassistant

Installation

UI (Preferred)

Add this repo as a custom repository in HACS. Add the hubspace integration.

Clicking this badge should add the repo for you: Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Manual

Manually add repo: Adding a custom repo directions https://hacs.xyz/docs/faq/custom_repositories/ Use the custom repo link https://github.com/jdeath/Hubspace-Homeassistant Select the category type integration Then once it's there (still in HACS) click the INSTALL button

Manual method: copy the hubspace/ folder in the repo to <config_dir>/custom_components/hubspace/.

Configuration

After HubSpace has been added through HACs, the configuration continues within the UI like other integrations. First select Settings on the navigation bar, then select Devices & services, ensure you are on the Integrations tab, then finally select ADD INTEGRATION at the bottom right of the page. Search for HubSpace and enter your username and password and click SUBMIT. Entities should start appearing shortly after clicking submit.

If your username or password is incorrect, the form will not be submitted.

Troubleshooting

Support for a new model

To support a new model, the states and metadata will need to be gathered. To accomplish this, you will need to gather the data. There are two ways to grab this information:

Shell

Gathering this information through the shell is preferred as you can target the device you want. You must have a python interpreter installed for this to work. After it is installed, the following setup steps must be run:

Through the UI

Gathering data through the UI provides a less targeted approach to gathering data as it will pull all devices. This may be required if a device cannot be fixed with a normal data dump, or you are not comfortable running python on your system. It requires the add-on File Editor or a similar add-on / integration that enables you to download files from Home Assistant. After the file downloader has been installed onto Home Assistant, the following steps are required to gather the data:

Star History Chart