File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,19 @@ Another use case could be using temperature and humidity from one weather platfo
20
20
21
21
To enable a Template Weather provider in your installation, add the following to your ` configuration.yaml ` file:
22
22
23
+ (Note, be sure to update my_region in the condition and forecast templates to an appropriate value for your setup).
24
+
23
25
{% raw %}
24
26
25
27
``` yaml
26
28
# Example configuration.yaml entry
27
29
weather :
28
30
- platform : template
29
- name : " my very own weather station "
30
- condition_template : " sunny "
31
- temperature_template : " {{ states('sensor.temperature') | float}}"
32
- humidity_template : " {{ states('sensor.humidity')| float }}"
33
- forecast_template : " {{ states. weather.my_region.attributes. forecast }}"
31
+ name : " My Weather Station "
32
+ condition_template : " {{ states('weather.my_region') }} "
33
+ temperature_template : " {{ states('sensor.temperature') | float }}"
34
+ humidity_template : " {{ states('sensor.humidity') | float }}"
35
+ forecast_template : " {{ state_attr(' weather.my_region', ' forecast') }}"
34
36
` ` `
35
37
36
38
{% endraw %}
You can’t perform that action at this time.
0 commit comments