Skip to content

Commit

Permalink
Merge branch 'current' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Feb 26, 2020
2 parents 17397d7 + a81a3e8 commit 0aeedbd
Show file tree
Hide file tree
Showing 98 changed files with 309 additions and 518 deletions.
2 changes: 2 additions & 0 deletions .textlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@
["colour", "color"],
["config\\b", "configuration"],
["DarkSky", "Dark Sky"],
["e\\.g\\.", "e.g.,"],
["end ?to ?end", "end-to-end"],
["FRITZ!? ?Box", "FRITZ!Box"],
["grey", "gray"],
Expand All @@ -313,6 +314,7 @@
["he or she", "they"],
["he/she", "they"],
["Home-?Ass?s?iss?tt?ant", "Home Assistant"],
["i\\.e\\.", "i.e.,"],
["IFF?TTT?T?", "IFTTT"],
["ISY ?994", "ISY994"],
["JSONRPC", "JSON-RPC"],
Expand Down
10 changes: 8 additions & 2 deletions source/_docs/automation/trigger.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ The `for` template(s) will be evaluated when an entity changes as specified.

Triggers when the state of any of given entities changes. If only `entity_id` is given trigger will activate for all state changes, even if only state attributes change.

<div class='note'>

The values you see in your overview will often not be the same as the actual state of the entity. For instance, the overview may show `Connected` when the underlying entity is actually `on`. You should check the state of the entity by looking in the _States_ menu under _Developer tools_.

</div>

```yaml
automation:
trigger:
Expand Down Expand Up @@ -176,9 +182,9 @@ Use quotes around your values for `from` and `to` to avoid the YAML parser inter

#### Sunset / Sunrise trigger

Triggers when the sun is setting or rising, i.e. when the sun elevation reaches 0°.
Triggers when the sun is setting or rising, i.e., when the sun elevation reaches 0°.

An optional time offset can be given to have it trigger a set time before or after the sun event (e.g. 45 minutes before sunset).
An optional time offset can be given to have it trigger a set time before or after the sun event (e.g., 45 minutes before sunset).

<div class='note'>

Expand Down
2 changes: 1 addition & 1 deletion source/_docs/backend/database.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Details about the database used by Home Assistant."
redirect_from: /details/database/
---

Database is used in by Home Assistant as history and tracker only, to store the events and its parameters. The default database used by Home Assistant is [SQLite](https://www.sqlite.org/), and the database file is stored in your [configuration directory](/getting-started/configuration/) (e.g., `<path to config dir>/.homeassistant/home-assistant_v2.db`). If you prefer to run a database server (e.g. PostgreSQL), use the [`recorder` component](/integrations/recorder/).
Database is used in by Home Assistant as history and tracker only, to store the events and its parameters. The default database used by Home Assistant is [SQLite](https://www.sqlite.org/), and the database file is stored in your [configuration directory](/getting-started/configuration/) (e.g., `<path to config dir>/.homeassistant/home-assistant_v2.db`). If you prefer to run a database server (e.g., PostgreSQL), use the [`recorder` component](/integrations/recorder/).

To work with the SQLite database manually from the command-line, you will need an [installation](http://www.sqlitetutorial.net/download-install-sqlite/) of `sqlite3`. Alternatively [DB Browser for SQLite](http://sqlitebrowser.org/) provides a viewer for exploring the database data and an editor for executing SQL commands.
First load your database with `sqlite3`:
Expand Down
2 changes: 1 addition & 1 deletion source/_docs/configuration/templating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ The same thing can also be expressed as a filter:
- For specific values: `utcnow().second`, `utcnow().minute`, `utcnow().hour`, `utcnow().day`, `utcnow().month`, `utcnow().year`, `utcnow().weekday()` and `utcnow().isoweekday()`.
- `as_timestamp()` converts datetime object or string to UNIX timestamp. This function also be used as a filter.
- `strptime(string, format)` parses a string based on a [format](https://docs.python.org/3.8/library/datetime.html#strftime-and-strptime-behavior) and returns a datetime object.
- `relative_time` converts datetime object to its human-friendly "age" string. The age can be in second, minute, hour, day, month or year (but only the biggest unit is considered, e.g. if it's 2 days and 3 hours, "2 days" will be returned). Note that it only works for dates _in the past_.
- `relative_time` converts datetime object to its human-friendly "age" string. The age can be in second, minute, hour, day, month or year (but only the biggest unit is considered, e.g., if it's 2 days and 3 hours, "2 days" will be returned). Note that it only works for dates _in the past_.
- Filter `timestamp_local` converts an UNIX timestamp to its string representation as date/time in your local timezone.
- Filter `timestamp_utc` converts a UNIX timestamp to its string representation representation as date/time in UTC timezone.
- Filter `timestamp_custom(format_string, local_time=True)` converts an UNIX timestamp to its string representation based on a custom format, the use of a local timezone is default. Supports the standard [Python time formatting options](https://docs.python.org/3/library/time.html#time.strftime).
Expand Down
2 changes: 1 addition & 1 deletion source/_docs/ecosystem/appdaemon/api.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ A list of split devices with 1 or more entries.

```python
for sensor in self.split_device_list(self.args["sensors"]):
do_something(sensor) # e.g. make a state subscription
do_something(sensor) # e.g., make a state subscription
```


Expand Down
2 changes: 1 addition & 1 deletion source/_docs/ecosystem/backup/backup_github.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Creating a `.gitignore` file in your repository will tell Git which files NOT to

<div class='note'>

If you are creating the `.gitignore` file on Windows, make sure that you save the file with Unix line endings (i.e. by using an editor like Notepad++).
If you are creating the `.gitignore` file on Windows, make sure that you save the file with Unix line endings (i.e., by using an editor like Notepad++).

</div>

Expand Down
116 changes: 0 additions & 116 deletions source/_docs/ecosystem/hass-configurator.markdown

This file was deleted.

7 changes: 0 additions & 7 deletions source/_docs/ecosystem/notebooks/api.markdown

This file was deleted.

7 changes: 0 additions & 7 deletions source/_docs/ecosystem/notebooks/database.markdown

This file was deleted.

7 changes: 0 additions & 7 deletions source/_docs/ecosystem/notebooks/graph.markdown

This file was deleted.

45 changes: 0 additions & 45 deletions source/_docs/ecosystem/notebooks/installation.markdown

This file was deleted.

7 changes: 0 additions & 7 deletions source/_docs/ecosystem/notebooks/stats.markdown

This file was deleted.

2 changes: 1 addition & 1 deletion source/_docs/installation/updating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ For a Raspberry Pi Docker container, simply pull the latest one:
sudo docker pull homeassistant/raspberrypi3-homeassistant:latest
```

After updating, you must start/restart Home Assistant for the changes to take effect. This means that you will have to restart `hass` itself or the [autostarting](/docs/autostart/) daemon (if applicable). Startup can take considerable amount of time (i.e. minutes) depending on your device. This is because all requirements are updated as well.
After updating, you must start/restart Home Assistant for the changes to take effect. This means that you will have to restart `hass` itself or the [autostarting](/docs/autostart/) daemon (if applicable). Startup can take considerable amount of time (i.e., minutes) depending on your device. This is because all requirements are updated as well.

[BRUH automation](https://www.bruhautomation.io/) has created [a tutorial video](https://www.youtube.com/watch?v=tuG2rs1Cl2Y) explaining how to upgrade Home Assistant.

Expand Down
Loading

0 comments on commit 0aeedbd

Please sign in to comment.