Custom integration to control an OpenMotics platform via HomeAssistant
This custom component is developed for controlling an OpenMotics platform by using the cloud-sdk, officailly maintained by the OpenMotics Developer Team.
Login to cloud.openmotics.com
Remember to use your e-mail address as login.
Make sure your installation is at a recent firmware. Update if needed.
Create an additional user
Make sure the Client type is Confidential
and the Grant type is Client credentials
.
The Redirect URI is not used right now and can have any value.
Copy the Client ID and Client secret as you'll need it to configure the integration in Home Assistant.
See Home Assistant Official Installation Guide to install Home Assistant Core.
!!! HACS will be added in a later phase, please copy the custom_components folder for now !!!
Option 1: Copy Method
- Download the openmotics-home-assistant repo.
- Unzip it and copy the
custom_components/openmotics
folder to the Home Assistant configuration directory, for example~/.homeassistant
.
The disadvantage of a manual installation is that you won't be notified about updates.
Option 2: HACS installation
- See HACS Official Installation Guide and install HACS.
- See Initial Configuration Guide and complete initial configuration.
- Open Home Assistant. Click HACS > Integrations > ⋮ > Custom repositories.
- Enter
https://github.com/openmotics/home-assistant.git
in the address bar at the bottom left of the window. Select Integration from the Category list and click ADD.
- In the dialog box that appears, click INSTALL.
Make sure you restart Home Assistant after the installation (in HACS). After the restart, go to Configuration in the side menu in Home Assistant and select Integrations. Click on Add Integrations in the bottom right corner and search for Openmotics to install. This will open the configuration menu with the default settings.
Fill in the user_id and secret_id you have created in the first step.
Depending on your installation, the modules should be added to your Home Assistant automatically within a few seconds till 10 minutes.