An Oh Dear sensor for Home Assistant
- Install the Home Assistant Community Store (HACS)
- Add Oh Dear as a custom repository. See the HACS FAQs and
add
https://github.com/owenvoke/hass-ohdear
- Select
integration
as the category - You should now be able to install Oh Dear via HACS
- Once installation is complete, restart Home Assistant
- In the HA UI, go to
Configuration -> Integrations
, click+
and search forOh Dear
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
) - If you do not have a
custom_components
directory there, you need to create it - Add the
ohdear
directory and its contents from this repository to thecustom_components
directory in your Home Assistant configuration directory - Restart Home Assistant
- In the HA UI, go to
Configuration -> Integrations
, click+
and search forOh Dear
This component relies on my ohdear-sdk
Python package, an unofficial
client for the Oh Dear API.
This can be configured fully via the Integrations interface. Click the following link to add a new Oh Dear site.
You'll need an API key from Oh Dear, you can generate one here. You'll also need to know the id of the site, you can do this by browsing to the sites page, selecting the site you want to monitor, and copying the id from the URL. Alternatively, this is shown at the bottom of the settings page under the API section.
The "Scan interval" can also be configured, this defaults to polling the API every 5 minutes.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
You're free to use this package, but if it makes it to your production environment please consider buying the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here.
Read more about Treeware at treeware.earth.