Trello integration for Home Assistant.
- Sensors to track the number of cards in the lists on any Trello board.
- Services for creating, updating, and deleting cards, lists, and boards.
- OAuth support (as soon as Trello adds support for OAuth2)
- Moving to a push model rather than polling for improved responsiveness.
- Anything you'd like to request that this integration doesn't do!
First add this repository as a custom repository.
Before setting up this integration, you need to get credentials by creating an Integration in Trello's Power-Up Admin Portal.
Create Integration and associated API key and Token
- Ensure you're logged in to Trello in your browser.
- Visit the Power-Up Admin Portal and select New near the top right.
- Fill out all fields except the Iframe connector URL.
- Select Create near the bottom right.
- You should be taken to the API key page. Select Generate a new API key and select Generate API key if a dialog pops up.
- Record the API key at the top of the page. This will be the first of two credentials you'll need.
- At the end of the paragraph to the right of your API key, select the Token link to "... manually generate a Token."
- You should be taken to a page with text at the top saying "Would you like to give the following application access to your account?". Select the "Allow" button near the bottom right of the page.
- On the following page, record your Token. This will be the last credential you'll need.
After you have both your API Key and Token you can start the integration setup.
Run the following to set up your development environment
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements_test.txtTo run Home Assistant with this integration loaded:
hass -c configTo run unit tests with coverage:
pytest tests --cov=custom_components.trello --cov-report term-missingCreate a new GitHub release. The release workflow takes care of the rest. When finished, it will be available to download via HACS.
Ensure pip is at the latest version:
pip3 install -r requirements_test.txt