File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,33 @@ $ curl --location --request GET 'https://<server>/api/v1/rr/?addr=500%20Queen%20
59
59
60
60
### Integrating with Home Assistant
61
61
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 ` :
63
64
64
65
``` yaml
65
66
sensor :
66
67
- platform : rest
67
- resource : https ://your_server /api/v1/rr/?addr=500%20Mystreet
68
+ resource : " http ://localhost:5010 /api/v1/rr/?addr=xx "
68
69
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
+
70
91
```
You can’t perform that action at this time.
0 commit comments