Updated documentation

This commit is contained in:
Paulus Schoutsen committed 2014-09-26 14:27:28 -07:00
1 parent 6164895bc9
commit 1ce48ece10
3 files changed
+182 -113

No files matched your search

+7 -2
View File
@@ -5,7 +5,11 @@ custom_components.example
Bare minimum what is needed for a component to be valid.
"""
# The domain of your component. Should be equal to the name of your component
DOMAIN = "example"
# List of component names (string) your component depends upon
# If you are setting up a group but not using a group for anything, don't depend on group
DEPENDENCIES = []
# pylint: disable=unused-argument
@@ -13,13 +17,14 @@ def setup(hass, config):
""" Register services or listen for events that your component needs. """
# Example of a service that prints the service call to the command-line.
hass.services.register(DOMAIN, "service_name", print)
hass.services.register(DOMAIN, "example_service_name", print)
# This prints a time change event to the command-line twice a minute.
hass.track_time_change(print, second=[0, 30])
# See also:
# See also (defined in homeassistant/__init__.py):
# hass.track_state_change
# hass.track_point_in_time
# Tells the bootstrapper that the component was succesfully initialized
return True
+17 -11
View File
@@ -1,4 +1,5 @@
[homeassistant]
# Location required to calculate the time the sun rises and sets
latitude=32.87336
longitude=-117.22743
@@ -9,37 +10,42 @@ api_password=mypass
type=hue
[device_tracker]
# The following types are available: netgear, tomato, luci
type=netgear
host=192.168.1.1
username=admin
password=PASSWORD
# http_id is needed for Tomato routers only
# http_id=ABCDEFGHH
[chromecast]
# Optional: hard code the hosts to find chromecasts instead of scanning the network
# Optional: hard code the hosts (comma seperated) to find chromecasts
# instead of scanning the network
# hosts=192.168.1.9,192.168.1.12
[wemo]
# Optional: hard code the hosts to find WeMos instead of scanning the network
# Optional: hard code the hosts (comma seperated) to find WeMos
# instead of scanning the network
# hosts=192.168.1.9,192.168.1.12
[downloader]
download_dir=downloads
[device_sun_light_trigger]
# Example how you can specify a specific group that has to be turned on
# light_group=group.living_room
# Example how you can specify which light profile to use when turning lights on
# light_profile=relax
# Optional: specify a specific light/group of lights that has to be turned on
light_group=group.living_room
# Optional: specify which light profile to use when turning lights on
light_profile=relax
# A comma seperated list of states that have to be tracked as a single group
# Grouped states should share the same states (ON/OFF or HOME/NOT_HOME)
# [group]
# living_room=light.Bowl,light.Ceiling,light.TV_back_light
# bedroom=light.Bed_light
# Grouped states should share the same type of states (ON/OFF or HOME/NOT_HOME)
[group]
living_room=light.Bowl,light.Ceiling,light.TV_back_light
children=device_tracker.child_1,device_tracker.child_2
[process]
# items are which processes to look for: <entity_id>=<search string within ps>
# xbmc=XBMC.App
xbmc=XBMC.App
[example]