Minimizing of the configuration sample (#1008)
This commit is contained in:
parent
a09ede5b63
commit
de7c1d5ac9
22 changed files with 143 additions and 127 deletions
|
@ -13,7 +13,7 @@ ha_release: 0.28
|
|||
ha_iot_class: "Local Push"
|
||||
---
|
||||
|
||||
The `trend` platform allows you to create sensors which show the trend of numeric `state` or`state_attributes` from other entities. This sensor requires two updates of the underlying sensor to establish a trend - so it can take some time to show an accurate state. It can be useful as part of automations, where you want to base an action on a trend.
|
||||
The `trend` platform allows you to create sensors which show the trend of numeric `state` or`state_attributes` from other entities. This sensor requires two updates of the underlying sensor to establish a trend. Thus it can take some time to show an accurate state. It can be useful as part of automations, where you want to base an action on a trend.
|
||||
|
||||
To enable Trend binary sensors in your installation, add the following to your `configuration.yaml` file:
|
||||
|
||||
|
@ -23,10 +23,7 @@ binary_sensor:
|
|||
- platform: trend
|
||||
sensors:
|
||||
solar_angle:
|
||||
friendly_name: 'Sun rising'
|
||||
entity_id: sun.sun
|
||||
sensor_class: light
|
||||
attribute: elevation
|
||||
```
|
||||
|
||||
Configuration variables:
|
||||
|
@ -35,7 +32,7 @@ Configuration variables:
|
|||
- **friendly_name** (*Optional*): Name to use in the Frontend.
|
||||
- **sensor_class** (*Optional*): The [type/class](/components/binary_sensor/) of the sensor to set the icon in the frontend.
|
||||
- **entity_id** (*Required*): The entity that this sensor tracks.
|
||||
- **attribute** (*Optional*): The attribute of the entity that this sensor tracks. If no attribute is specified - the sensor will track the state.
|
||||
- **attribute** (*Optional*): The attribute of the entity that this sensor tracks. If no attribute is specified then the sensor will track the state.
|
||||
- **invert** (*Optional*): Invert the result (so `true` means decending rather than ascending)
|
||||
|
||||
## {% linkable_title Examples %}
|
||||
|
@ -44,7 +41,7 @@ In this section you find some real life examples of how to use this sensor.
|
|||
|
||||
### {% linkable_title Temperature trend %}
|
||||
|
||||
This example indicates true if the temperture is rising:
|
||||
This example indicates `true` if the temperture is rising:
|
||||
|
||||
```yaml
|
||||
binary_sensor:
|
||||
|
@ -56,7 +53,7 @@ binary_sensor:
|
|||
sensor_class: heat
|
||||
```
|
||||
|
||||
And this one indicates true if the temperture is falling:
|
||||
And this one indicates `true` if the temperture is falling:
|
||||
|
||||
```yaml
|
||||
binary_sensor:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue