mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Minimize configuration sample
This commit is contained in:
parent
f88ac5ed0a
commit
e4a4ad21a4
@ -19,20 +19,32 @@ To use Dweet.io in your installation, add the following to your `configuration.y
|
|||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: dweet
|
- platform: dweet
|
||||||
name: Dweet.io Temperature
|
device: THING_NAME
|
||||||
device: THING_NAME
|
value_template: '{% raw %}{{ value_json.VARIABLE }}{% endraw %}'
|
||||||
value_template: '{% raw %}{{ value_json.VARIABLE }}{% endraw %}'
|
|
||||||
unit_of_measurement: "°C"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
Configuration variables:
|
||||||
|
|
||||||
- **device** (*Required*): Identification of the device (also known as `thing`).
|
- **device** (*Required*): Identification of the device (also known as `thing`).
|
||||||
- **name** (*Optional*): Let you overwrite the the name of the device in the frontend.
|
|
||||||
- **value_template** (*Required*): The variable to extract a value from the content.
|
- **value_template** (*Required*): The variable to extract a value from the content.
|
||||||
|
- **name** (*Optional*): Let you overwrite the the name of the device in the frontend.
|
||||||
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
|
- **unit_of_measurement** (*Optional*): Defines the unit of measurement of the sensor, if any.
|
||||||
|
|
||||||
|
### {% linkable_title Full configuration sample %}
|
||||||
|
|
||||||
|
A ful configuration entry could look like the sample below.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
sensor:
|
||||||
|
- platform: dweet
|
||||||
|
name: Temperature
|
||||||
|
device: THING_NAME
|
||||||
|
value_template: '{% raw %}{{ value_json.VARIABLE }}{% endraw %}'
|
||||||
|
unit_of_measurement: "°C"
|
||||||
|
```
|
||||||
|
|
||||||
### {% linkable_title Interacting with Dweet.io %}
|
### {% linkable_title Interacting with Dweet.io %}
|
||||||
|
|
||||||
You can easily send dweets from the commandline to test your sensor with `curl`.
|
You can easily send dweets from the commandline to test your sensor with `curl`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user