Home Assistant HKO Integration

New
Python Open source
Home Assistant HKO integration

In this project, I worked on an unofficial weather integration for the most popular open source home automation platform Home Assistant, using the Hong Kong Observatory public API. First, I retrieved, processed, and transformed the data to acceptable and readable formats to be displayed. Moreover, I integrated the data retrieval pipeline into the pre-existing architecture of Home Assistant, ensuring compatibility.

During the development, I followed the development best practices with reference to the developer docs of Home Assistant, such as coding style, and documentation. For code testing, I implemented rigorous tests for multiple failure modes, such as network errors, data inconsistencies, or API changes. Finally, I went through multiple rounds of code reviews and made revisions for better performance, and handling edge cases.

My integration was integrated in to the Home Assistant ecosystem in the 2024.2 update.

Features

  • Set up via the Home Assistant UI
  • One click set up
  • Auto update weather data
  • Support for multiple weather stations
  • Support for multiple units of measurement