5.4 KiB
title | description |
---|---|
Adding integrations | Instructions to add an integration. |
Let's start by adding your first {% term integration %}. In this tutorial, we will use the Workday integration. It can be used to automate based on workdays, days off, or holidays. No smart device is needed for this tutorial.
Prerequisites
This tutorial assumes that you have installed Home Assistant and have at least completed the onboarding steps.
Adding integrations
-
Go to {% my integrations title="Settings > Devices & services" %}.
- The integrations page shows all the integrations you have already installed. Some of them were installed automatically.
- If devices were discovered in your network, you will see them in the Discovered section.
-
If there are any devices discovered for you, you can add them now.
- Under Discovered, on the integration, select Add.
- Follow the steps in the UI if additional configuration is required.
- If no devices were discovered, don't worry, we will add an integration in the next step.
-
In the bottom-right corner, select Add integration.
-
Type
workd
and select the Workday integration. -
Give it a name, for example
Workday tomorrow
, and select the country.- The country is used to determine the local Holidays.
- Select Submit, then Finish.
-
Configure the options.
- For example, if Monday is not a workday for you, select the "x" to remove it.
- To check if tomorrow is workday, under Offset, enter
1
. - Fill in all other options as needed. At a minimum, define the Holidays and Language.
- Select Submit.
-
Select the {% term area %}, for example, office, and select Finish.
-
You now see the Workday integration in the list.
- {% icon "mdi:party-popper" %} Congratulations! You've added your first integration. Job done.
Looking at integration details
-
Select the integration.
- This opens the integration details page.
- We see that this integration has one {% term service %} and one {% term entity %}.
- Documentation opens the documentation page of this integration.
- Known issues opens the GitHub issue tracker, filtered for issues related to this integration.
- This allows you to see if other users reported issues related to that integration.
- Enable debug logging lets you activate the debug logs for that integration.
-
Select Service, to open the service info page.
- In the Logbook, you can see the timeline of that {% term sensor %}.
- Under Sensors, you can see all the sensors an integration provides. Here, we have only one, but if you have a climate device, for example, you might see temperature, humidity, and battery status here.
- You can also see that Workday is not used (yet) in any {% term automations %}, {% term scripts %}, or {% term scenes %}.
-
Select the back button {% icon "mdi:arrow-back" %}. Then, select Entity to open the list of {% term entities %}.
- Although your Home Assistant already has many entities, you see only 1 entry in the entities table.
- This is because it is filtered.
- You see the entity ID, which consist of the domain (a technical term for device type) and the entity name, in the following format:
domain.entity_name
.
Modifying the integration
-
To change the name, select the three dots {% icon "mdi:dots-vertical" %} menu, and select Rename.
-
You can also add another Workday {% term sensor %}. For example, if you want to know when your colleagues have a holiday.
- Select Add entry, give it a name and define your options.
- Select the country of interest.
-
That's it! {% icon "mdi:party-popper" %}
- {% icon "mdi:checkbox-outline" %} You have gained an overview of the integrations page and know where to find the integration details page, the sensor info page, and the entities table.
- {% icon "mdi:checkbox-outline" %} You have learned to rename, modify, and delete an integration.
- If you want to find more integrations, checkout the integration documentation.
- We are now ready to use Workday in an automation.
{% include getting-started/next_step.html step="Automate Home Assistant" link="/getting-started/automation/" %}