Hello to all,
I decided to create my own FastApi service so that I could integrate not only HA services
There is a problem with the fact that there are no normal instructions on how to create a new component inside the div container from scratch (there are only pieces in the documentation)
Therefore, there will be a short instruction below on how I did it, and I hope it will help you. The instructions may contain errors, as the steps were taken during several days of anger that nothing was working(
Instructions
- You need to do step “Developing with Visual Studio Code + devcontainer” from this website
Set up development environment | Home Assistant Developer Docs - After entering inside devcontainer you need to check if setup was configured correctly
hass -c config
- Than you need to write this command in main folder and do all steps to create folder with you custom component
Your new component now inpython3 -m script.scaffold integration
/homeassistant/components/<your component>
- Now create new folder
mkdir /config/custom_components
- Copy you new folder
after Step 3
into/config/custom_components/<your component>
- Add in
manifest.json
key-value"version": "0.0.1"
After this steps your service must be shown in Setting -> Devices & services -> + ADD INTEGRATION