From cade3fac3b02c70728b014c8e84ccbcfc510d7fc Mon Sep 17 00:00:00 2001 From: clach04 Date: Sun, 17 Jul 2016 23:24:09 -0700 Subject: [PATCH] Flesh out example light awesomelights on config (#655) Document where source code should go along with simple config sample to match Example Sensor Platform demo. --- source/developers/platform_example_light.markdown | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/developers/platform_example_light.markdown b/source/developers/platform_example_light.markdown index 7d022c024da..ab0341d5f17 100644 --- a/source/developers/platform_example_light.markdown +++ b/source/developers/platform_example_light.markdown @@ -11,6 +11,18 @@ footer: true This example is for adding support for the imaginary Awesome Lights. It shows the different best practices for developing a platform. +Similar to Example Sensor Platform, Copy the code below and create it as a file in `/custom_components/light/awesomelights.py`. + +Add the following to your configuration.yaml: + + light: + - platform: awesomelights + host: HOST_HERE + username: USERNAME_HERE + password: PASSWORD_HERE_OR_secrets.yaml + +Note the `platform` name matches the filename for the source code. + ```python import logging