diff --git a/config/configuration.yaml.example b/config/configuration.yaml.example
index c758833d336..49886682507 100644
--- a/config/configuration.yaml.example
+++ b/config/configuration.yaml.example
@@ -120,4 +120,22 @@ sensor:
- type: 'memory_free'
- type: 'processor_use'
- type: 'process'
- arg: 'octave-cli'
\ No newline at end of file
+ arg: 'octave-cli'
+
+script:
+ # Turns on the bedroom lights and then the living room lights 1 minute later
+ wakeup:
+ alias: Wake Up
+ sequence:
+ # alias is optional
+ - alias: Bedroom lights on
+ execute_service: light.turn_on
+ service_data:
+ entity_id: group.bedroom
+ - delay:
+ # supports seconds, milliseconds, minutes, hours, etc.
+ minutes: 1
+ - alias: Living room lights on
+ execute_service: light.turn_on
+ service_data:
+ entity_id: group.living_room
diff --git a/homeassistant/__init__.py b/homeassistant/__init__.py
index 354898c0319..0d41e7dd2e6 100644
--- a/homeassistant/__init__.py
+++ b/homeassistant/__init__.py
@@ -115,6 +115,7 @@ class HomeAssistant(object):
action(now)
self.bus.listen(EVENT_TIME_CHANGED, point_in_time_listener)
+ return point_in_time_listener
# pylint: disable=too-many-arguments
def track_time_change(self, action,
@@ -154,6 +155,7 @@ class HomeAssistant(object):
action(event.data[ATTR_NOW])
self.bus.listen(EVENT_TIME_CHANGED, time_listener)
+ return time_listener
def stop(self):
""" Stops Home Assistant and shuts down all threads. """
diff --git a/homeassistant/components/frontend/www_static/polymer/layouts/home-assistant-main.html b/homeassistant/components/frontend/www_static/polymer/layouts/home-assistant-main.html
index 73be6cb166d..3a8730dac8b 100644
--- a/homeassistant/components/frontend/www_static/polymer/layouts/home-assistant-main.html
+++ b/homeassistant/components/frontend/www_static/polymer/layouts/home-assistant-main.html
@@ -93,6 +93,13 @@
+
+