Closed Liese2007 closed 4 years ago
I wonder what provides the sensor's state value and attributes as the Garbage Collection platform (https://github.com/bruxy70/Garbage-Collection/) doesn't set device_class and unit_of_measurment.
My test sensor with card config set to similar values shows up in yellow:
(ha_venv3_7) pi@raspberrypi:~/homeassistant_conf $tail -5 ui-lovelace.yaml
- type: custom:garbage-collection-card
entity: sensor.test_garbage_weekly
icon_color: yellow
icon_size: 35px
hide_date: true
(ha_venv3_7) pi@raspberrypi:~/homeassistant_conf $
Moreover please check the state value of sensor..stadtreinigung_hamburg_xxxx_gelbe_wertstofftonne_sack. According to the dates it should be 2, while the colors indicate 1 or 0.
The state of the sensors is a timestamp like:
2020-05-06T00:00:00
for Biotonne
The custom card was written to process state and attributes from Garbage Collection platform ((https://github.com/bruxy70/Garbage-Collection/), so it expects attributes like next_date and days [till the collection]. Your sensor doesn't seem to have these.
Any update on this issue? Is the sensor provided by Garbage Collection custom platform?
Sorry, my mistake. You are right, that my waste disposal provider has different interface not in line with your component.
Thanks for your effort. Greetz
Hi, with my code
The Card works fine in Manual Card of Lovelace. But all icons are red.
I installed via HACS. Resources are set in Lovelace Dashboard (with Resources Tab shown). I hope I have not missed a setting...
Regards Jörg
Amendment: These are the attributes shown in Developer Tools: