example-custom-config/custom_components/example_light
Erik Montnemery 3a94f67c40
Sort manifests (#41)
2023-02-27 08:14:48 +01:00
..
README.md readme example light 2022-07-02 20:31:52 +02:00
__init__.py Add example light/sensor from dev docs 2019-04-05 21:03:43 -07:00
light.py Type detailed_hello_world_push platforms (#28) 2021-09-10 08:29:26 +02:00
manifest.json Sort manifests (#41) 2023-02-27 08:14:48 +01:00

README.md

Awesome Lights

This integration shows how you would go ahead and integrate a physical light into Home Assistant.

If you use this integration as a template, make sure you tweak the following places:

  • manifest.json: update the requirements to point at your Python library
  • light.py: update the code to interact with your library

Installation

Copy this folder to <config_dir>/custom_components/example_light/.

Add the following entry in your configuration.yaml:

light:
  - platform: example_light
    host: HOST_HERE
    username: USERNAME_HERE
    password: PASSWORD_HERE_OR_secrets.yaml