File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ sensor:
291
291
292
292
` ` ` yaml
293
293
rest:
294
- - resource: http://date.jsontest.com/
294
+ - resource: " http://date.jsontest.com/"
295
295
sensor:
296
296
- name: "Time"
297
297
value_template: "{{ value_json.time }}"
@@ -331,7 +331,7 @@ This sample fetches a weather report from [OpenWeatherMap](https://openweatherma
331
331
332
332
` ` ` yaml
333
333
rest:
334
- - resource: https://api.openweathermap.org/data/2.5/weather?zip=80302,us&APPID=VERYSECRETAPIKEY
334
+ - resource: " https://api.openweathermap.org/data/2.5/weather?zip=80302,us&APPID=VERYSECRETAPIKEY"
335
335
sensor:
336
336
- name: "Report"
337
337
value_template: "{{ value_json['weather'][0]['description'].title() }}"
@@ -385,7 +385,7 @@ This configuration shows how to extract multiple values from a dictionary. This
385
385
386
386
` ` ` yaml
387
387
rest:
388
- resource: http://<address_to_rest_service>
388
+ resource: " http://<address_to_rest_service>"
389
389
sensor:
390
390
- name: "Bedroom1 Temperature"
391
391
value_template: "{{ value_json['bedroom1']['temperature'] }}"
@@ -414,11 +414,11 @@ The example below shows how to extract multiple values from a dictionary from th
414
414
` ` ` yaml
415
415
rest:
416
416
# Steam Controller
417
- - resource: http://192.168.1.105/status.xml
417
+ - resource: " http://192.168.1.105/status.xml"
418
418
scan_interval: 15
419
419
420
420
sensor:
421
- - name: Steam Temp
421
+ - name: " Steam Temp"
422
422
value_template: "{{ json_value['response']['temp0'] | regex_findall_index('([0-9]+)XF') }}"
423
423
unit_of_measurement: "°F"
424
424
You can’t perform that action at this time.
0 commit comments