Hi all,
This is my first post in this forum \o/
I love this component and after some hours I got is (almost) to workā¦ Thanks for the great job done hereā¦
The firtst problem is that my municipale does not give a name to the paper collection the sensor is just called trash_
A piece of the json I get:
"ophaaldagen":{"response":"OK","data":[{"nameType":"","type":"papier","date":"2018-01-06"},{"nameType":"gft","type":"gft","date":"2018-01-08"},{"nameType":"plastic, blik en drankenkartons","type":"pmd","date":"2018-01-09"},{"nameType":"fijn huishoudelijk restafval","type":"restafval","date":"2018-01-15"},{"nameType":"gft","type":"gft","date":"2018-01-22"},{"nameType":"plastic, blik en drankenkartons","type":"pmd","date":"2018-01-23"},{"nameType":"","type":"papier","date":"2018-01-29"},{"nameType":"gft","type":"gft","date":"2018-02-05"},{"nameType":"plastic, blik en drankenkartons","type":"pmd","date":"2018-02-06"},{"nameType":"fijn huishoudelijk restafval","type":"restafval","date":"2018-02-12"},{"nameType":"gft","type":"gft","date":"2018-02-19"},{"nameType":"plastic, blik en drankenkartons","type":"pmd","date":"2018-02-20"},{"nameType":"","type":"papier","date":"2018-02-26"},{"nameType":"gft","type":"gft","date":"2018-03-05"},{"nameType":"plastic, blik en drankenkartons","type":"pmd","date":"2018-03-06"},{"nameType":"fijn huishoudelijk restafval","type":"restafval","date":"2018-03-12"},
I just use this sensor trash_, should not be a problem I think?
The real problems I have are
- I can not get my output to show custom icons.
I places a set in /www/mijnafvalwijzer/ and I can show them in my browser with: http://ip:8123/local/mijnafvalwijzer/gft.png
In customize.yaml I created entries like:
sensor.trash_gft:
friendly_name: 'GFT'
templates:
entity_picture: >
if (state === 'gft') return "/local/mijnafvalwijzer/gft.png";
return null;
_stateDisplay: >
if (state === 'gft') return 'GFT';
return null;
All I get is:
- I like to have the date in Dutch format. I searched for line 121 (stated in a previous post), but could not find it.
Any clues?
Thanks!
Kees
`