Skip to content

Commit 7e35f33

Browse files
committed
readme update
1 parent 3d0f7fa commit 7e35f33

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,33 @@ $ curl --location --request GET 'https://<server>/api/v1/rr/?addr=500%20Queen%20
5959

6060
### Integrating with Home Assistant
6161

62-
Add the following to your `configuration.yaml`:
62+
Assuming your aklapi API server running on localhost:5010, add the following
63+
to your `configuration.yaml`:
6364

6465
```yaml
6566
sensor:
6667
- platform: rest
67-
resource: https://your_server/api/v1/rr/?addr=500%20Mystreet
68+
resource: "http://localhost:5010/api/v1/rr/?addr=xx"
6869
name: Recycle
69-
value_template: '{{ value_json.recycle }}'
70+
scan_interval: 300
71+
value_template: "{{ value_json.recycle }}"
72+
method: GET
73+
unique_id: recycle_date
74+
75+
- platform: rest
76+
resource: "http://localhost:5010/api/v1/rr/?addr=xx"
77+
name: Food Scraps
78+
scan_interval: 300
79+
value_template: "{{ value_json.foodscraps }}"
80+
method: GET
81+
unique_id: foodscraps_date
82+
83+
- platform: rest
84+
resource: "http://localhost:5010/api/v1/rr/?addr=xx"
85+
name: Rubbish
86+
scan_interval: 300
87+
value_template: "{{ value_json.rubbish }}"
88+
method: GET
89+
unique_id: rubbish_date
90+
7091
```

0 commit comments

Comments
 (0)