diff --git a/atom.xml b/atom.xml index 0e20c4083d..87a1014af1 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 02dee445ff..ad1d1a79d3 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 08b32c33de..5f5d034350 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 936d75e909..1515d3d708 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index ee0299a6df..845c8644a1 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 38e8e6def2..2baccf5b3f 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index 419181585f..b754a66dd5 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index 052155ac76..17d6136005 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 36f9022bbd..7ab1fd9b54 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index b42cb44ecb..b7fc43324b 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index e372a86051..3ad3efb193 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index f89276d62b..56525e522d 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 1b43df6579..b5e904030b 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 58cb0a3513..70af69fd26 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 2720c8f276..cffb4d9e3d 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index e89d4e915f..727da610cc 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index de1f0e4438..1ba5ab1071 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index 73f93edbdb..2c60b57c0a 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 4ebda8ce44..b281c87aa9 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index f8cac0b3ee..daa7dfc16a 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index d4486f0925..1e5c5c1533 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-09-06T14:36:10+00:00 + 2016-09-07T07:07:53+00:00 https://home-assistant.io/ diff --git a/components/notify.nma/index.html b/components/notify.nma/index.html index bfd7b45038..1ed505006e 100644 --- a/components/notify.nma/index.html +++ b/components/notify.nma/index.html @@ -107,10 +107,10 @@
  • name (Optional): Setting the optional parameter name allows multiple notifiers to be created. The default value is notify. The notifier will bind to the service notify.NOTIFIER_NAME.
  • -
  • api_key (Required): Enter the API key for NMA.
  • +
  • api_key (Required): The API key for NMA.
-

Details for the (API)[https://www.notifymyandroid.com/api.jsp].

+

Details for the API.

To use notifications, please see the getting started with automation page.

diff --git a/developers/platform_example_light/index.html b/developers/platform_example_light/index.html index 5871d61e45..e99790b263 100644 --- a/developers/platform_example_light/index.html +++ b/developers/platform_example_light/index.html @@ -91,7 +91,7 @@

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 <config_dir>/custom_components/light/awesomelights.py.

+

Similar to Example Sensor Platform, copy the code below, and create it as a file in <config_dir>/custom_components/light/awesomelights.py.

Add the following to your configuration.yaml:

@@ -107,34 +107,40 @@
import logging
 
+import voluptuous as vol
+
 # Import the device class from the component that you want to support
-from homeassistant.components.light import ATTR_BRIGHTNESS, Light
+from homeassistant.components.light import ATTR_BRIGHTNESS, Light, PLATFORM_SCHEMA
 from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD
+import homeassistant.helpers.config_validation as cv
 
 # Home Assistant depends on 3rd party packages for API specific code.
 REQUIREMENTS = ['awesome_lights==1.2.3']
 
 _LOGGER = logging.getLogger(__name__)
 
+# Validation of the user's configuration
+PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
+    vol.Required(CONF_HOST): cv.string,
+    vol.Optional(CONF_USERNAME, default='admin'): cv.string,
+    vol.Optional(CONF_PASSWORD): cv.string,
+})
+
 
 def setup_platform(hass, config, add_devices, discovery_info=None):
     """Setup the Awesome Light platform."""
     import awesomelights
 
-    # Validate passed in config
+    # Assign configuration variables. The configuration check takes care they are
+    # present. 
     host = config.get(CONF_HOST)
     username = config.get(CONF_USERNAME)
     password = config.get(CONF_PASSWORD)
 
-    if host is None or username is None or password is None:
-        _LOGGER.error('Invalid config. Expected %s, %s and %s',
-                      CONF_HOST, CONF_USERNAME, CONF_PASSWORD)
-        return False
-
     # Setup connection with devices/cloud
     hub = awesomelights.Hub(host, username, password)
 
-    # Verify that passed in config works
+    # Verify that passed in configuration works
     if not hub.is_valid_login():
         _LOGGER.error('Could not connect to AwesomeLight hub')
         return False
diff --git a/sitemap.xml b/sitemap.xml
index 2717652623..f679cc10ad 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1980,62 +1980,62 @@
 
 
 https://home-assistant.io/demo/frontend.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/index.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-event.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-info.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-service.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-state.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-dev-template.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-history.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-iframe.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-logbook.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/demo/panels/ha-panel-map.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/googlef4f3693c209fe788.html
-2016-09-06T14:35:06+00:00
+2016-09-07T07:07:08+00:00
 
 
 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html
-2016-09-06T14:35:07+00:00
+2016-09-07T07:07:09+00:00
 
 
 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html
-2016-09-06T14:35:07+00:00
+2016-09-07T07:07:09+00:00
 
 
 https://home-assistant.io/static/mdi-demo.html
-2016-09-06T14:35:07+00:00
+2016-09-07T07:07:09+00:00