diff --git a/atom.xml b/atom.xml index 2240e3d73e..b2e7a99e58 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ @@ -13,6 +13,22 @@ Octopress + + <![CDATA[Home Assistant moving to YAML]]> + + 2015-03-01T11:38:00-08:00 + https://home-assistant.io/blog/2015/03/01/home-assistant-migrating-to-yaml + Home Assistant is now using YAML for it’s configuration file. +YAML allows the use of lists, which should make the configuration file a bit more flexible and useful. The new configuration file format is backwards compatible with existing components. Because of this, there is no need for component developers to update their components.

+ +

The new file is named configuration.yaml and if it can’t be found in your config directory, Home Assistant will instead try to find the old configuration file, home-assistant.conf.

+ +

The home-assistant.conf.example has been replaced with an updated configuration.yaml.example.

+ +

Users of Home Assistant should migrate as the old configuration format is deprecated.

+]]>
+
+ <![CDATA[Streaming updates]]> diff --git a/blog/2014/12/18/website-launched/index.html b/blog/2014/12/18/website-launched/index.html index 4c28e6c49a..3e73a97933 100644 --- a/blog/2014/12/18/website-launched/index.html +++ b/blog/2014/12/18/website-launched/index.html @@ -203,6 +203,12 @@ diff --git a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html index c621b75540..45ca72b707 100644 --- a/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html +++ b/blog/2014/12/26/home-control-home-automation-and-the-smart-home/index.html @@ -265,6 +265,12 @@ This article will try to explain how they all relate.

diff --git a/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html b/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html index 2bb6cf4b24..ce25fee8de 100644 --- a/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html +++ b/blog/2015/01/04/hey-pushbullet-nice-talking-to-you/index.html @@ -247,6 +247,12 @@ diff --git a/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html b/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html index c5a87338c6..341c7ed1d5 100644 --- a/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html +++ b/blog/2015/01/11/bootstrapping-your-setup-with-discovery/index.html @@ -215,6 +215,12 @@ diff --git a/blog/2015/01/13/nest-in-da-house/index.html b/blog/2015/01/13/nest-in-da-house/index.html index a9c26c9079..0955cf51f9 100644 --- a/blog/2015/01/13/nest-in-da-house/index.html +++ b/blog/2015/01/13/nest-in-da-house/index.html @@ -222,6 +222,12 @@ diff --git a/blog/2015/01/24/release-notes/index.html b/blog/2015/01/24/release-notes/index.html index 1460840f5d..1d692c3747 100644 --- a/blog/2015/01/24/release-notes/index.html +++ b/blog/2015/01/24/release-notes/index.html @@ -227,6 +227,12 @@ Home Assistant now supports --open-ui and --demo-mode diff --git a/blog/2015/02/08/looking-at-the-past/index.html b/blog/2015/02/08/looking-at-the-past/index.html index 9e23e10a76..ff88d61188 100644 --- a/blog/2015/02/08/looking-at-the-past/index.html +++ b/blog/2015/02/08/looking-at-the-past/index.html @@ -245,6 +245,12 @@ Events are saved in a local database. Google Graphs is used to draw the graph. D diff --git a/blog/2015/02/24/streaming-updates/index.html b/blog/2015/02/24/streaming-updates/index.html index cbc8542e7a..8b12234459 100644 --- a/blog/2015/02/24/streaming-updates/index.html +++ b/blog/2015/02/24/streaming-updates/index.html @@ -223,6 +223,12 @@ diff --git a/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html new file mode 100644 index 0000000000..627454d615 --- /dev/null +++ b/blog/2015/03/01/home-assistant-migrating-to-yaml/index.html @@ -0,0 +1,294 @@ + + + + + + + + + + + + Home Assistant moving to YAML - Home Assistant + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+
+ +
+ + +
+
+ +

Home Assistant moving to YAML

+ + + +
+ + + + + + + + + + + + + + + + + + + less than one minute reading time + + + + Comments + +
+ +
+ + + + +

Home Assistant is now using YAML for it’s configuration file. +YAML allows the use of lists, which should make the configuration file a bit more flexible and useful. The new configuration file format is backwards compatible with existing components. Because of this, there is no need for component developers to update their components.

+ +

The new file is named configuration.yaml and if it can’t be found in your config directory, Home Assistant will instead try to find the old configuration file, home-assistant.conf.

+ +

The home-assistant.conf.example has been replaced with an updated configuration.yaml.example.

+ +

Users of Home Assistant should migrate as the old configuration format is deprecated.

+ + +
+ + +
+

Comments

+
+
+
+ + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/blog/archives/index.html b/blog/archives/index.html index 46d7c6816d..52b77ef91a 100644 --- a/blog/archives/index.html +++ b/blog/archives/index.html @@ -22,7 +22,7 @@ - + @@ -105,6 +105,27 @@ + + + +
+ +
@@ -461,6 +482,12 @@ diff --git a/blog/categories/architecture/atom.xml b/blog/categories/architecture/atom.xml index 9c9ecbf011..3979973255 100644 --- a/blog/categories/architecture/atom.xml +++ b/blog/categories/architecture/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: architecture | Home Assistant]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ diff --git a/blog/categories/architecture/index.html b/blog/categories/architecture/index.html index 3ad4aef178..bc7ed77bdd 100644 --- a/blog/categories/architecture/index.html +++ b/blog/categories/architecture/index.html @@ -197,6 +197,12 @@ diff --git a/blog/categories/component/atom.xml b/blog/categories/component/atom.xml index b55981026e..f978f4ea08 100644 --- a/blog/categories/component/atom.xml +++ b/blog/categories/component/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: component | Home Assistant]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ diff --git a/blog/categories/component/index.html b/blog/categories/component/index.html index e52d1c948b..0d89833d48 100644 --- a/blog/categories/component/index.html +++ b/blog/categories/component/index.html @@ -310,6 +310,12 @@ diff --git a/blog/categories/frontend/atom.xml b/blog/categories/frontend/atom.xml index 3395d4fe17..bae03cc5c7 100644 --- a/blog/categories/frontend/atom.xml +++ b/blog/categories/frontend/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: frontend | Home Assistant]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ diff --git a/blog/categories/frontend/index.html b/blog/categories/frontend/index.html index 26ea421907..cc9813e5b6 100644 --- a/blog/categories/frontend/index.html +++ b/blog/categories/frontend/index.html @@ -236,6 +236,12 @@ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index afe1f6b4b8..2c6e6d1342 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]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/index.html b/blog/categories/release-notes/index.html index 7739f12d19..71403c457f 100644 --- a/blog/categories/release-notes/index.html +++ b/blog/categories/release-notes/index.html @@ -197,6 +197,12 @@ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index b599a397cc..7b1d498014 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: website | Home Assistant]]> - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 https://home-assistant.io/ diff --git a/blog/categories/website/index.html b/blog/categories/website/index.html index 6d4a525fb4..813ebb1bb6 100644 --- a/blog/categories/website/index.html +++ b/blog/categories/website/index.html @@ -197,6 +197,12 @@ diff --git a/blog/index.html b/blog/index.html index e07a29b620..9ffa89133f 100644 --- a/blog/index.html +++ b/blog/index.html @@ -22,7 +22,8 @@ - + @@ -87,6 +88,63 @@ +
+
+ +

+ Home Assistant moving to YAML +

+ + + +
+ + + + + + + + + + + + + + + + + + + less than one minute reading time + + + + Comments + +
+ +
+ + + + +

Home Assistant is now using YAML for it’s configuration file. +YAML allows the use of lists, which should make the configuration file a bit more flexible and useful. The new configuration file format is backwards compatible with existing components. Because of this, there is no need for component developers to update their components.

+ +

The new file is named configuration.yaml and if it can’t be found in your config directory, Home Assistant will instead try to find the old configuration file, home-assistant.conf.

+ +

The home-assistant.conf.example has been replaced with an updated configuration.yaml.example.

+ +

Users of Home Assistant should migrate as the old configuration format is deprecated.

+ + +
+
+ +
diff --git a/components/automation.html b/components/automation.html index 239e82ca9f..bc7bb02061 100644 --- a/components/automation.html +++ b/components/automation.html @@ -112,19 +112,19 @@ 11 12 13 -
[automation]
-# Optional alias that the logs will use to refer to the entry
-alias=Sunset notification
+
automation:
+  # Optional alias that the logs will use to refer to the entry
+  alias: Sunset notification
 
-# Type of trigger and informatino for the trigger
-platform=state
-state_entity_id=sun.sun
-state_from=above_horizon
-state_to=below_horizon
+  # Type of trigger and informatino for the trigger
+  platform: state
+  state_entity_id: sun.sun
+  state_from: above_horizon
+  state_to: below_horizon
 
-# Action to be done when trigger activated
-execute_service=notify.notify
-service_data={"message":"The sun has set"}
+ # Action to be done when trigger activated + execute_service: notify.notify + service_data: {"message":"The sun has set"}

Setting up triggers

@@ -145,17 +145,16 @@ 8 9 10 -
# Match at the start of every hour
-platform=time
-time_minutes=0
-time_seconds=0
+
  # Match at the start of every hour
+  platform: time
+  time_minutes: 0
+  time_seconds: 0
 
-# Match at 4pm
-platform=time
-time_hours=16
-time_minutes=0
-time_seconds=0
-
+ # Match at 4pm + platform: time + time_hours: 16 + time_minutes: 0 + time_seconds: 0

State-based automation

@@ -180,22 +179,22 @@ 16 17
# Match when the sun sets
-platform=state
-state_entity_id=sun.sun
-state_from=above_horizon
-state_to=below_horizon
+  platform: state
+  state_entity_id: sun.sun
+  state_from: above_horizon
+  state_to: below_horizon
 
-# Match when a person comes home
-platform=state
-state_entity_id=device_tracker.Paulus_OnePlus_One
-state_from=not_home
-state_to=home
+  # Match when a person comes home
+  platform: state
+  state_entity_id: device_tracker.Paulus_OnePlus_One
+  state_from: not_home
+  state_to: home
 
-# Match when a light turns on
-platform=state
-state_entity_id=light.Ceiling
-state_from=off
-state_to=on
+ # Match when a light turns on + platform: state + state_entity_id: light.Ceiling + state_from: off + state_to: on

Setting up the action

@@ -214,23 +213,23 @@ 10 11 12 -
# Turn the lights Ceiling and Wall on.
-execute_service=light.turn_on
-service_entity_id=light.Ceiling,light.Wall
+
  # Turn the lights Ceiling and Wall on.
+  execute_service: light.turn_on
+  service_entity_id: light.Ceiling,light.Wall
 
-# Turn the lights Ceiling and Wall on and turn them red.
-execute_service=light.turn_on
-service_entity_id=light.Ceiling,light.Wall
-service_data={"rgb_color": [255, 0, 0]}
+  # Turn the lights Ceiling and Wall on and turn them red.
+  execute_service: light.turn_on
+  service_entity_id: light.Ceiling,light.Wall
+  service_data: {"rgb_color": [255, 0, 0]}
 
-# Notify the user
-execute_service=notify.notify
-service_data={"message":"YAY"}
+ # Notify the user + execute_service: notify.notify + service_data: {"message":"YAY"}

Putting it all together

-

For every combination of a trigger and an action we will have to combine the configuration lines and add it to an automation component entry in home-assistant.conf. You can add an optional alias key to the configuration to make the logs more understandable. To setup multiple entries, append 2, 3 etc to the section name. An example of a home-assistant.conf file:

+

For every combination of a trigger and an action we will have to combine the configuration lines and add it to an automation component entry in configuration.yaml. You can add an optional alias key to the configuration to make the logs more understandable. To setup multiple entries, append 2, 3 etc to the section name. An example of a configuration.yaml file:

1
 2
@@ -263,43 +262,43 @@
 29
 30
 31
-
[automation]
-alias=Sunset notification
+
automation:
+  alias: Sunset notification
 
-platform=state
-state_entity_id=sun.sun
-state_from=above_horizon
-state_to=below_horizon
+  platform: state
+  state_entity_id: sun.sun
+  state_from: above_horizon
+  state_to: below_horizon
 
-execute_service=notify.notify
-service_data={"message":"The sun has set"}
+  execute_service: notify.notify
+  service_data: {"message":"The sun has set"}
 
-[automation 2]
-alias=Turn lights off at 8am in the morning
+automation 2:
+  alias: Turn lights off at 8am in the morning
 
-platform=time
-time_hours=8
-time_minutes=0
-time_seconds=0
+  platform: time
+  time_hours: 8
+  time_minutes: 0
+  time_seconds: 0
 
-execute_service=light.turn_off
+  execute_service: light.turn_off
 
-[automation 3]
-alias=Turn lights in study room on when Paulus comes home
+automation 3:
+  alias: Turn lights in study room on when Paulus comes home
 
-platform=state
-state_entity_id=device_tracker.Paulus_OnePlus
-state_from=not_home
-state_to=home
+  platform: state
+  state_entity_id: device_tracker.Paulus_OnePlus
+  state_from: not_home
+  state_to: home
 
-execute_service=homeassistant.turn_on
-service_entity_id=group.Study_Room
+ execute_service: homeassistant.turn_on + service_entity_id: group.Study_Room

-All configuration entries have to be sequential. If you have [automation], [automation 2] and [automation 4] then the last one will not be processed. +All configuration entries have to be sequential. If you have automation:, automation 2: and automation 4: then the last one will not be processed.

diff --git a/components/browser.html b/components/browser.html index a82b6cbdc8..331e6ebc55 100644 --- a/components/browser.html +++ b/components/browser.html @@ -97,10 +97,10 @@

The browser component provides a service to open urls in the default browser on the host machine.

-

To load this component, add the following lines to your home-assistant.conf:

+

To load this component, add the following lines to your configuration.yaml:

1
-
[browser]
+
browser:

Service browser/browse_url

diff --git a/components/chromecast.html b/components/chromecast.html index 5e050485fc..072cc6f9d4 100644 --- a/components/chromecast.html +++ b/components/chromecast.html @@ -102,10 +102,10 @@ Chromecasts have recently received a new API which is not yet supported by Home

-

Interacts with Chromecasts on your network. Will be automatically discovered if you setup the discovery component. Can also be forced to load by adding the following lines to your home-assistant.conf:

+

Interacts with Chromecasts on your network. Will be automatically discovered if you setup the discovery component. Can also be forced to load by adding the following lines to your configuration.yaml:

1
-
[chromecast]
+
chromecast:

Services

diff --git a/components/device_sun_light_trigger.html b/components/device_sun_light_trigger.html index b127a1ecc6..14b07c9fc2 100644 --- a/components/device_sun_light_trigger.html +++ b/components/device_sun_light_trigger.html @@ -106,7 +106,7 @@

This component requires the components sun, device_tracker and light to be enabled.

-

To enable this component, add the following lines to your home-assistant.conf:

+

To enable this component, add the following lines to your configuration.yaml:

1
 2
@@ -115,13 +115,13 @@
 5
 6
 7
-
[device_sun_light_trigger]
-# Specify a specific light/group of lights that has to be turned on
-light_group=group.living_room
-# Specify which light profile to use when turning lights on
-light_profile=relax
-# Disable lights being turned off when everybody leaves the house
-disable_turn_off=1
+
device_sun_light_trigger:
+  # Specify a specific light/group of lights that has to be turned on
+  light_group: group.living_room
+  # Specify which light profile to use when turning lights on
+  light_profile: relax
+  # Disable lights being turned off when everybody leaves the house
+  disable_turn_off: 1

The options light_group, light_profile and disable_turn_off are optional.

diff --git a/components/device_tracker.html b/components/device_tracker.html index abea8f0d60..27d666aad7 100644 --- a/components/device_tracker.html +++ b/components/device_tracker.html @@ -95,18 +95,18 @@
-

Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: tomato, netgear and luci (OpenWRT). To get started add the following lines to your home-assistant.conf (example for Netgear):

+

Home Assistant can get information from your wireless router to track which devices are connected. There are three different types of supported wireless routers: tomato, netgear and luci (OpenWRT). To get started add the following lines to your configuration.yaml (example for Netgear):

1
 2
 3
 4
 5
-
[device_tracker]
-platform=netgear
-host=192.168.1.1
-username=admin
-password=MY_PASSWORD
+
device_tracker:
+  platform: netgear
+  host: 192.168.1.1
+  username: admin
+  password: MY_PASSWORD
@@ -130,9 +130,9 @@ Before the Luci scanner can be used you have to install the luci RPC package on
1
 2
 3
-
[device_tracker]
-platform=nmap_tracker
-hosts=192.168.1.1/24
+
device_tracker:
+  platform: nmap_tracker
+  hosts: 192.168.1.1/24
diff --git a/components/discovery.html b/components/discovery.html index 0ab62ddb34..1adb5f22bf 100644 --- a/components/discovery.html +++ b/components/discovery.html @@ -106,10 +106,10 @@

It will be able to add Google Chreomcasts and Belkin WeMo switches automatically, for Philips Hue it will require some configuration from the user.

-

To load this component, add the following lines to your home-assistant.conf:

+

To load this component, add the following lines to your configuration.yaml:

1
-
[discovery]
+
discovery:

If you are developing a new platform, please read how to make your platform discoverable.

diff --git a/components/downloader.html b/components/downloader.html index 709a7ee355..01bb68b346 100644 --- a/components/downloader.html +++ b/components/downloader.html @@ -97,12 +97,12 @@

The downloader component provides a service to download files. It will raise an error and not continue to set itself up when the download directory does not exist.

-

To enable it, add the following lines to your home-assistant.conf:

+

To enable it, add the following lines to your configuration.yaml:

1
 2
-
[downloader]
-download_dir=downloads
+
downloader:
+  download_dir: downloads

Service downloader/download_file

diff --git a/components/keyboard.html b/components/keyboard.html index 98bbd1d74a..789b7f3bd2 100644 --- a/components/keyboard.html +++ b/components/keyboard.html @@ -107,10 +107,10 @@ -

To load this component, add the following lines to your home-assistant.conf:

+

To load this component, add the following lines to your configuration.yaml:

1
-
[keyboard]
+
keyboard:
diff --git a/components/light.html b/components/light.html index 68dbb9351e..5aabf58d04 100644 --- a/components/light.html +++ b/components/light.html @@ -109,18 +109,18 @@

Preferred way to setup the Philips Hue platform is through the the discovery component. For the Wink light platform enable the wink component.

-

If you really feel like enabling the light component directly, add the following lines to your home-assistant.conf:

+

If you want to enable the light component directly, add the following lines to your configuration.yaml:

1
 2
-
[light]
-platform=hue
+
light:
+  platform: hue

-The light component supports multiple entries in home-assistant.conf by appending a sequential number to the section: [light 2], [light 3] etc. +The light component supports multiple entries in configuration.yaml by appending a sequential number to the section: light 2:, light 3: etc.

diff --git a/components/notify.html b/components/notify.html index 179d13b2a6..08a8e3d730 100644 --- a/components/notify.html +++ b/components/notify.html @@ -99,19 +99,19 @@

Home Assistant currently supports the awesome PushBullet, a free service to send information between your phones, browsers and friends.

-

To add PushBullet to your installation, add the following to your home-assistant.conf file:

+

To add PushBullet to your installation, add the following to your configuration.yaml file:

1
 2
 3
-
[notify]
-platform=pushbullet
-api_key=YOUR_API_KEY
+
notify:
+  platform: pushbullet
+  api_key: YOUR_API_KEY

Automation example

-

Notifications are great to be used within Home Automation. Below is a an example configuration that you can add to your home-assistant.conf to be notified when the sun sets.

+

Notifications are great to be used within Home Automation. Below is a an example configuration that you can add to your configuration.yaml to be notified when the sun sets.

1
 2
@@ -123,16 +123,16 @@
 8
 9
 10
-
[automation]
-alias=Sun set notification
+
automation:
+  alias: Sun set notification
 
-platform=state
-state_entity_id=sun.sun
-state_from=above_horizon
-state_to=below_horizon
+  platform: state
+  state_entity_id: sun.sun
+  state_from: above_horizon
+  state_to: below_horizon
 
-execute_service=notify.notify
-service_data={"message":"YAY"}
+ execute_service: notify.notify + service_data: {"message":"YAY"}

For more automation examples, see the getting started with automation page.

diff --git a/components/simple_alarm.html b/components/simple_alarm.html index 2d78829e03..f713d7b988 100644 --- a/components/simple_alarm.html +++ b/components/simple_alarm.html @@ -99,18 +99,18 @@

This component depends on the compoments device_tracker and light being setup.

-

To set it up, add the following lines to your home-assistant.conf:

+

To set it up, add the following lines to your configuration.yaml:

1
 2
 3
 4
 5
-
[simple_alarm]
-# Which light/light group has to flash when a known device comes home
-known_light=light.Bowl
-# Which light/light group has to flash red when light turns on while no one home
-unknown_light=group.living_room
+
simple_alarm:
+  # Which light/light group has to flash when a known device comes home
+  known_light: light.Bowl
+  # Which light/light group has to flash red when light turns on while no one home
+  unknown_light: group.living_room
diff --git a/components/sun.html b/components/sun.html index 0a8efbb5a7..6960ed355c 100644 --- a/components/sun.html +++ b/components/sun.html @@ -97,18 +97,18 @@

The sun component will use your current location to track if the sun is above or below the horizon. This is a common ingredient within Home Automation.

-

To set it up, add the following lines to your home-assistant.conf:

+

To set it up, add the following lines to your configuration.yaml:

1
 2
 3
 4
 5
-
[homeassistant]
-latitude=32.87336
-longitude=-117.22743
+
homeassistant:
+  latitude: 32.87336
+  longitude: -117.22743
 
-[sun]
+sun: diff --git a/components/tellstick_sensor.html b/components/tellstick_sensor.html index a7e4bc8a92..5d7fd5ac36 100644 --- a/components/tellstick_sensor.html +++ b/components/tellstick_sensor.html @@ -97,10 +97,10 @@

Shows the values of that sensors that is connected to your Tellstick.

-

To enable it, add the following lines to your home-assistant.conf:

+

To enable it, add the following lines to your configuration.yaml:

1
-
[tellstick_sensor]
+
tellstick_sensor:
diff --git a/components/thermostat.html b/components/thermostat.html index 9d827081bc..971667eb45 100644 --- a/components/thermostat.html +++ b/components/thermostat.html @@ -97,16 +97,16 @@

Thermostats offer Home Assistant a peek into the current and target temperature in a house. Some thermostats will also offer an away mode that will lower use of heating/cooling. The only supported thermostat right now is the Nest thermostat.

-

To set it up, add the following information to your home-assistant.conf file:

+

To set it up, add the following information to your configuration.yaml file:

1
 2
 3
 4
-
[thermostat]
-platform=nest
-username=myemail@mydomain.com
-password=mypassword
+
thermostat:
+  platform: nest
+  username: myemail@mydomain.com
+  password: mypassword
diff --git a/components/wink.html b/components/wink.html index f18e644c57..fb5c5f544f 100644 --- a/components/wink.html +++ b/components/wink.html @@ -108,12 +108,12 @@ style='width: 100%; height: 200px; border: 0; margin: 0 auto 15px; border-left: 2px solid #049cdb; padding-left: 15px;'> -

After you have gotten your access token, add the following to your home-assitant.conf:

+

After you have gotten your access token, add the following to your configuration.yaml:

1
 2
-
[wink]
-access_token=YOUR_ACCESS_TOKEN
+
wink:
+  access_token: YOUR_ACCESS_TOKEN

This will connect to the Wink hub and automatically set up any lights, switches and sensors that it finds.

diff --git a/developers/api.html b/developers/api.html index 06a4cf7712..a5386f9b8e 100644 --- a/developers/api.html +++ b/developers/api.html @@ -105,7 +105,7 @@

In the package homeassistant.remote a Python API on top of the HTTP API can be found.

-

The API accepts and returns only JSON encoded objects. All API calls have to be accompanied by the header X-HA-Access: YOUR_PASSWORD (as specified in your home-assistant.conf).

+

The API accepts and returns only JSON encoded objects. All API calls have to be accompanied by the header X-HA-Access: YOUR_PASSWORD (YOUR_PASSWORD as specified in your configuration.yaml).

You can append ?api_password=YOUR_PASSWORD to any url to log in automatically. diff --git a/developers/creating_components.html b/developers/creating_components.html index 4371b26e36..54a7498cf8 100644 --- a/developers/creating_components.html +++ b/developers/creating_components.html @@ -100,16 +100,16 @@ is easy to built your own. If you are the kind of person that likes to learn fro

The first is hello_world.py, which is the classic Hello World example for Home Assistant. The second one is example.py which showcases various ways you can tap into Home Assistant to be notified when certain events occur.

-

If you want to load these components in Home Assistant, add the following lines to your home-assistant.conf file:

+

If you want to load these components in Home Assistant, add the following lines to your configuration.yaml file:

1
 2
 3
 4
-
[hello_world]
+
hello_world:
 
-[example]
-target=TARGET_ENTITY
+example: + target: TARGET_ENTITY

TARGET_ENTITY should be one of your devices that can be turned on and off, ie a light or a switch. Example value could be light.Ceiling or switch.AC (if you have these devices with those names).

@@ -196,8 +196,8 @@ Home Assistant will use the directory that contains your config file as the dire
1
 2
-
[example]
-host=paulusschoutsen.nl
+
example:
+  host: paulusschoutsen.nl

Then in the setup-method of your component you will be able to refer to config['example']['host'] to get the value paulusschoutsen.nl.

diff --git a/developers/frontend.html b/developers/frontend.html index 139824734c..c30031694c 100644 --- a/developers/frontend.html +++ b/developers/frontend.html @@ -99,14 +99,12 @@

Turning on development mode

-

Home Assistant will by default serve the compiled version of the frontend. To change it so that the components are served separately, update your home-assistant.conf to have these lines:

+

Home Assistant will by default serve the compiled version of the frontend. To change it so that the components are served separately, update your configuration.yaml to have these lines:

1
 2
-3
-
[http]
-api_password=YOUR_PASSWORD
-development=1
+
http:
+  development: 1

After turning on development mode, you will have to install the webcomponents that the frontend depends on. You can do this by running the build_frontend script.

diff --git a/getting-started/index.html b/getting-started/index.html index b8e1d45128..17d53337a9 100644 --- a/getting-started/index.html +++ b/getting-started/index.html @@ -239,27 +239,23 @@ NOTE: the rest of the commands are not being run as sudo and will install python

Configuring Home Assistant

-

The configuration for Home Assistant lives by default in the config folder. The file home-assistant.conf is the main file that contains which components will be loaded and what their configuration is. An example configuration file is located at config/home-assistant.conf.example.

+

The configuration for Home Assistant lives by default in the config folder. The file configuration.yaml is the main file that contains which components will be loaded and what their configuration is. An example configuration file is located at config/configuration.yaml.example.

When launched for the first time, Home Assistant will write a default configuration enabling the web interface and device discovery. It can take up to a minute for your devices to be discovered and show up in the interface.

- You will have to restart Home Assistant for changes in home-assistant.conf to take effect. + You will have to restart Home Assistant for changes in configuration.yaml to take effect.

Password protecting the web interface

-

The first thing you want to add is a password for the web interface. Use your favourite text editor to open the file /config/home-assistant.conf. Look for the line that says [http] and add the line api_password=YOUR_PASSWORD below. Your configuration should now look like this:

+

The first thing you want to add is a password for the web interface. Use your favourite text editor to open the file /config/configuration.yaml and add the following to the bottom:

1
 2
-3
-4
-
[http]
-api_password=YOUR_PASSWORD
-
-[discovery]
+
http:
+  api_password: YOUR_PASSWORD
 
diff --git a/sitemap.xml b/sitemap.xml index 7c9b74c40b..d0f098bdf8 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1,5 +1,10 @@ + + https://home-assistant.io/blog/2015/03/01/home-assistant-migrating-to-yaml/ + 2015-03-01T11:38:00-08:00 + 0.8 + https://home-assistant.io/blog/2015/02/24/streaming-updates/ 2015-02-24T22:41:27-08:00 @@ -42,169 +47,169 @@ https://home-assistant.io/developers/add_new_platform.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/developers/api.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/developers/architecture.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/automation.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/browser.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/chromecast.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/developers/creating_components.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/device_sun_light_trigger.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/device_tracker.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/discovery.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/downloader.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/developers/frontend.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/blog/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 1.0 https://home-assistant.io/blog/archives/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/developers/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/getting-started/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/ - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/keyboard.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/light.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/notify.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/simple_alarm.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/sun.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/switch.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/tellstick_sensor.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/thermostat.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/getting-started/troubleshooting.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7 https://home-assistant.io/components/wink.html - 2015-02-25T18:05:00-08:00 + 2015-03-01T11:49:20-08:00 weekly 0.7