Building a Home Assistant Custom Integration Part 1: Project Structure and Basics

Building a Home Assistant Custom Integration Part 1: Project Structure and Basics
制造商: Msly
库存信息: 有货
商品库存单位(SKU): custom Integration
¥96.45

This is the first part of a multi-part tutorial to create a Home Assistant custom Integration.

Part 1 - Project Structure and Basics (Reading Now!)
Part 2 - Unit Testing and Continuous Integration
Part 3 - Config Flow
Part 4 - Options Flow
Part 5 - Debugging

 

 

Introduction

This series of blog posts will be a tutorial for creating your own custom Integration for Home Assistant. At the end of the tutorial posts you will have a fully functional custom Integration.

 

Project Structure

Let’s focus on the custom_components directory

 

Project structure - Hardware

.
+-- rpi p3b+       

|   +--  Debain 11 -> Runing Debain 11 OS on rpi p3b+
|   +--  Py 3.10  ->Runing Py 3.10 on Debain 11 OS
|   +--  Ha core -> Runing Ha core on Py 3.10 env
|
+-- Aqara Hub M1S gen1   -> connetc zigbee sub devices to zigbee hub via zigbee
|   +-- sensor
|   +-- light
|   +-- ...
|+-- mijia home hub  -> connetc ble ble mesh sub devices to ble mesh hub via ble mesh
|   +-- sensor
|   +-- light
|   +-- ...
|
+-- Wifi router    -> connetc Wifi sub devices to Wifi hub via Wifi
|   +-- light
|   +-- plug

|   +-- washer
|   +-- ...
|
+-- pair mijia  hub and sub device in mi home app
+-- pair aqara  hub and sub device in aqara home app
+-- pair wifi sub device in itself own app

source:https://github.com/openhab/openhab-addons

 

Useful links

Building a Home Assistant Custom Component Part 1: Project Structure and Basics

https://aarongodfrey.dev/home%20automation/building_a_home_assistant_custom_component_part_1/

 

https://wwwmslycn/boards/topic/14510

商品标签(逗号隔开)
只有注册用户才能使用该功能