Add light using remotes (IR, RF, etc.) into Home Assistant.
The component and platforms in this repository are not meant to be used by a
user, but as a “blueprint” that custom component developers can build
upon, to make more awesome stuff.
HAVE FUN! 😎
This is simple, by having custom_components look (README + structure) the same
it is easier for developers to help each other and for users to start using them.
If you are a developer and you want to add things to this “blueprint” that you think more
developers will have use for, please open a PR to add it :)
This repository contains multiple files, here is a overview:
File | Purpose |
---|---|
.devcontainer/* |
Used for development/testing with VSCODE, more info in the readme file in that dir. |
.github/ISSUE_TEMPLATE/feature_request.md |
Template for Feature Requests |
.github/ISSUE_TEMPLATE/issue.md |
Template for issues |
.github/settings.yml |
Probot settings to control the repository settings. |
.vscode/tasks.json |
Tasks for the devcontainer. |
custom_components/integration_blueprint/translations/* |
Translation files. |
custom_components/integration_blueprint/__init__.py |
The component file for the integration. |
custom_components/integration_blueprint/api.py |
This is a sample API client. |
custom_components/integration_blueprint/binary_sensor.py |
Binary sensor platform for the integration. |
custom_components/integration_blueprint/config_flow.py |
Config flow file, this adds the UI configuration possibilities. |
custom_components/integration_blueprint/const.py |
A file to hold shared variables/constants for the entire integration. |
custom_components/integration_blueprint/manifest.json |
A manifest file for Home Assistant. |
custom_components/integration_blueprint/sensor.py |
Sensor platform for the integration. |
custom_components/integration_blueprint/switch.py |
Switch sensor platform for the integration. |
CONTRIBUTING.md |
Guidelines on how to contribute. |
example.png |
Screenshot that demonstrate how it might look in the UI. |
info.md |
An example on a info file (used by hacs). |
LICENSE |
The license file for the project. |
README.md |
The file you are reading now, should contain info about the integration, installation and configuration instructions. |
requirements.txt |
Python packages used by this integration. |
If you want to use all the potential and features of this blueprint template you
should use Visual Studio Code to develop in a container. In this container you
will have all the tools to ease your python development and a dedicated Home
Assistant core instance to run your integration. See .devcontainer/README.md
for more information.
If you need to work on the python library in parallel of this integration
(sampleclient
in this example) there are different options. The following one seems
easy to implement:
dev
on https://github.com/ludeeus/sampleclient
)manifest.json
file the requirements
key to point on your development branch"requirements": ["git+https://github.com/ludeeus/sampleclient.git@dev#devp==0.0.1beta1"]
)manifest.json
file"requirements": ["git+https://...==0.0.1beta2"]
).README content if this was a published component:
Component to integrate with integration_blueprint.
This component will set up the following platforms.
Platform | Description |
---|---|
binary_sensor |
Show something True or False . |
sensor |
Show info from blueprint API. |
switch |
Switch something True or False . |
configuration.yaml
).custom_components
directory (folder) there, you need to create it.custom_components
directory (folder) create a new folder called integration_blueprint
.custom_components/integration_blueprint/
directory (folder) in this repository.Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/integration_blueprint/translations/en.json
custom_components/integration_blueprint/translations/nb.json
custom_components/integration_blueprint/translations/sensor.nb.json
custom_components/integration_blueprint/__init__.py
custom_components/integration_blueprint/api.py
custom_components/integration_blueprint/binary_sensor.py
custom_components/integration_blueprint/config_flow.py
custom_components/integration_blueprint/const.py
custom_components/integration_blueprint/manifest.json
custom_components/integration_blueprint/sensor.py
custom_components/integration_blueprint/switch.py
If you want to contribute to this please read the Contribution guidelines