Hi.
I try to make a mobile notification to send me a message when the there is trash collection the next day.
I have these sensors sensor.avfallsor_bio_xxx and so on that give me a number value as how many days until picup.
0 = today
1 = tomorrow
ect
I try to make a notification “Trash collection tomorrow” with data from these sensors, but cant find a way.
I am using the “call service” node with notify, maybe I need to add data in a node before? Tried function node with no luck.
I have this on my dashboard, If it is possible to make something like this in a notification its perfect:
type: markdown
content: >-
- Bioavfall hentes {% if
is_state("sensor.avfallsor_bio_xxx", "0") %}i
dag{% elif
is_state("sensor.avfallsor_bio_xxx", "1") %}i
morgen{% else %}om {{
states("sensor.avfallsor_bio_xxx") }} dager{%
endif %}.
- Metall og Glass hentes {% if
is_state("sensor.avfallsor_metal_xxx", "0")
%}i dag{% elif
is_state("sensor.avfallsor_metal_xxx", "1")
%}i morgen{% else %}om {{
states("sensor.avfallsor_metal_xxx") }}
dager{% endif %}.
- Restavfall hentes {% if
is_state("sensor.avfallsor_mixed_xxx", "0")
%}i dag{% elif
is_state("sensor.avfallsor_mixed_xxx", "1")
%}i morgen{% else %}om {{
states("sensor.avfallsor_mixed_xxx") }}
dager{% endif %}.
- Papp avfall hentes {% if
is_state("sensor.avfallsor_paper_xxx", "0")
%}i dag{% elif
is_state("sensor.avfallsor_paper_xxx", "1")
%}i morgen{% else %}om {{
states("sensor.avfallsor_paper_xxx") }}
dager{% endif %}.
- Plastembalasje hentes {% if
is_state("sensor.avfallsor_plastic_xxx", "0")
%}i dag{% elif
is_state("sensor.avfallsor_plastic_xxx", "1")
%}i morgen{% else %}om {{
states("sensor.avfallsor_plastic_xxx") }}
dager{% endif %}.
title: Søppelhenting
Or even better, If I could output just what is collected tomorrow:
Tomorrow the following bins are emptied:
- Paper
- Glass