random.markdown: Add an examples section (#29281)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Sam Reed 2023-10-10 07:31:59 +01:00 committed by GitHub
parent f7a42da784
commit c9fd1be325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,3 +76,18 @@ unit_of_measurement:
required: false
type: string
{% endconfiguration %}
### Examples
In this section you find am example of how this sensor can be used.
Create a random sensor called "My random sensor" which will return a number between 10 (minimum) and 500 (maximum).
```yaml
# Example configuration.yaml entry
sensor:
- platform: random
name: "My random sensor"
minimum: 10
maximum: 500
```