Skip to content

Commit

Permalink
install guide
Browse files Browse the repository at this point in the history
  • Loading branch information
pilotak committed Jul 10, 2019
1 parent babc446 commit 78c11ec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ Configuration variables:
- **unit_of_measurement** (*Optional*): Defines the units of measurement of the sensor, if any.
- **time_format** (*Optional*): **`strftime`** type string to beautify time attribute output. Applicable only when attribute `last_changed` or `last_triggered` is selected. Cheatsheet for strftime formatting [here](http://strftime.ninja/).

## Install via [HACS](https://github.com/custom-components/hacs)
You can find this integration in a store.

## Install manually
You need to clone this repo to the root folder of your configuration, file tree should look like this:
```
└── ...
└── configuration.yaml
└── custom_components
└── attributes
└── __init__.py
└── manifest.json
└── sensor.py
```

>**Note**: if the custom_components directory does not exist, you need to create it.
## Examples
This example shows how to extact `battery_level` attribute.

```yaml
Expand Down
2 changes: 1 addition & 1 deletion custom_components/attributes/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "attributes",
"name": "Attributes",
"documentation": "https://github.com/pilotak/homeassistant-attributes/blob/master/info.md",
"documentation": "https://github.com/pilotak/homeassistant-attributes",
"requirements": [],
"dependencies": [],
"codeowners": [
Expand Down

0 comments on commit 78c11ec

Please sign in to comment.