Could someone help me out,
Code below are my configuration.yaml corosponding pictures are present… it works… BUT see picture below, picture template are Black,
sensor:
sensors:
mond:
entity_id: sensor.moon
friendly_name: 'Mond'
value_template: >
{% if is_state('sensor.moon_phase', 'new_moon') %}
New Mond
{% elif is_state('sensor.moon_phase', 'waxing_crescent') %}
zunehmender Mond
{% elif is_state('sensor.moon_phase', 'first_quarter') %}
erstes Viertel
{% elif is_state('sensor.moon_phase', 'waxing_gibbous') %}
wachsende Sichel
{% elif is_state('sensor.moon_phase', 'full_moon') %}
Vollmond
{% elif is_state('sensor.moon_phase', 'waning_gibbous') %}
schwindende Sichel
{% elif is_state('sensor.moon_phase', 'last_quarter') %}
letztes Viertel
{% elif is_state('sensor.moon_phase', 'waning_crescent') %}
abnehmender Mond
{% endif %}
entity_picture_template: >
{% if is_state('sensor.moon_phase', 'new_moon') %}
/local/moonphase/new_moon.png
{% elif is_state('sensor.moon_phase', 'waxing_crescent') %}
/local/moonphase/waning_crescent.png
{% elif is_state('sensor.moon_phase', 'first_quarter') %}
/local/moonphase/first_quarter.png
{% elif is_state('sensor.moon_phase', 'waxing_gibbous') %}
/local/moonphase/waxing_gibbous.png
{% elif is_state('sensor.moon_phase', 'full_moon') %}
/local/moonphase/full_moon.png
{% elif is_state('sensor.moon_phase', 'waning_gibbous') %}
/local/moonphase/waning_gibbous.png
{% elif is_state('sensor.moon_phase', 'last_quarter') %}
/local/moonphase/last_quarter.png
{% elif is_state('sensor.moon_phase', 'waning_crescent') %}
/local/moonphase/waning_crescent.png
{% endif %}