-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest.yaml
61 lines (60 loc) · 2.48 KB
/
rest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
- scan_interval: 600
method: GET
headers:
Content-Type: application/json
X-API-KEY: 2CD114509703F6E0A976C32FCB79C4F62966EEC6
User-Agent: Drivstoffappen/1.3.8 (com.raskebiler.drivstoff.appen; build:130; iOS 15.2.1) Alamofire/5.4.4
Accept-Language: nb-NO;q=1.0, en-GB;q=0.9
Accept-Encoding: br;q=1.0, gzip;q=0.9, deflate;q=0.8
Connection: keep-alive
resource: https://api.drivstoffappen.no/api/stations?stationType=0&countryCode=NO
sensor:
- name: "Fuel Uno-X Levanger"
json_attributes_path: "$..[?(@.name=='Uno-X Levanger')].stationDetails..[?(@.type=='D')]"
value_template: "{{ state_attr('sensor.fuel_uno_x_levanger', 'price') }}"
force_update: true
json_attributes:
- "price"
- "lastUpdated"
- name: "Fuel YX Levanger"
json_attributes_path: "$..[?(@.name=='YX 7-Eleven Levanger')].stationDetails..[?(@.type=='D')]"
value_template: "{{ state_attr('sensor.fuel_yx_levanger', 'price') }}"
force_update: true
json_attributes:
- "price"
- "lastUpdated"
- name: "Fuel YX Gråmyra"
json_attributes_path: "$..[?(@.name=='YX Gråmyra')].stationDetails..[?(@.type=='D')]"
value_template: "{{ state_attr('sensor.fuel_yx_gramyra', 'price') }}"
force_update: true
json_attributes:
- "price"
- "lastUpdated"
- name: "Fuel Cirkle-K Moan"
json_attributes_path: "$..[?(@.id==63)].stationDetails..[?(@.type=='D')]"
value_template: "{{ state_attr('sensor.fuel_cirkle_k_moan', 'price') }}"
force_update: true
json_attributes:
- "price"
- "lastUpdated"
- name: "Fuel Cirkle-K Magneten"
json_attributes_path: "$..[?(@.id==57)].stationDetails..[?(@.type=='D')]"
value_template: "{{ state_attr('sensor.fuel_cirkle_k_magneten', 'price') }}"
force_update: true
json_attributes:
- "price"
- "lastUpdated"
# - name: "Uno-X Rustad"
# json_attributes_path: "$..[?(@.name=='Uno-X Rustad')].stationDetails..[?(@.type=='D')]"
# force_update: true
# value_template: "{{ state_attr('sensor.uno_x_rustad', 'price') }}"
# json_attributes:
# - "price"
# - "lastUpdated"
# - name: "Circle K Abildsø"
# json_attributes_path: "$..[?(@.name=='Circle K Abildsø')].stationDetails..[?(@.type=='D')]"
# force_update: true
# value_template: "{{ state_attr('sensor.circle_k_abildso', 'price') }}"
# json_attributes:
# - "price"
# - "lastUpdated"