Add a sensor with a numerical value

This commit is contained in:
Fabian Affolter 2018-03-13 16:30:28 +01:00
parent 6670c5382a
commit 3d1ce032bc
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -23,7 +23,7 @@ binary_sensor:
- platform: trend
sensors:
solar_angle:
entity_id: sun.sun
entity_id: sensor.cpu_speed
```
Configuration variables:
@ -59,7 +59,7 @@ binary_sensor:
- platform: trend
sensors:
sun_rising:
entity_id: sun.sun
entity_id: sensor.cpu_speed
```
This example creates two sensors to indicate whether the temperature is rising or falling at a rate of at least 3 degrees an hour, and collects samples over a two hour period: