mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 23:36:51 +00:00
random.markdown: Add an examples section (#29281)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
f7a42da784
commit
c9fd1be325
@ -76,3 +76,18 @@ unit_of_measurement:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
{% endconfiguration %}
|
{% 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
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user