Provide clearer explanation of the sensor.random (#8598)

* Provide clearer explanation of the sensor.random

These changes provide a clearer explanation of:
 - what sensor.random is,
 - why we're creating one,
 - what to edit to make it
 - how to know when it worked

* ✏️ Tweak
This commit is contained in:
mastakebob 2019-03-06 16:17:22 -05:00 committed by Franck Nijhof
parent 34bc30185a
commit cc99ce67f3

View File

@ -98,11 +98,15 @@ Now that you are able to edit the configuration, it's time to set up some of you
<p class='note'>YAML can be a little daunting at first. A lot is possible! [Here is some more info.](/docs/configuration/devices/)</p>
For a sensor that is showing [random values](/components/sensor.random/), the entry would look like the sample below:
For your first integration, you'll create a virtual sensor that generates a random integer value between 0 and 20 every 30 seconds.
To create this random value sensor [random values](/components/sensor.random/), enter the following to the bottom of your `configuration.yaml` file, and restart Home Assistant (remember it may take up to a minute for the service to restart):
```yaml
sensor:
- platform: random
```
You'll know it worked when you see the new random sensor in your overview page. On the next page, we'll create an automation that uses this sensor to take an action.
### [Next step: Automate Home Assistant &raquo;](/getting-started/automation/)