Hey there, i tried to get this working since 2 days:
I have a JSON File with some events (Birthday Dates) on my Server looks like this:
JSON File
{
"events": [
{
"type": "fixed",
"date": {
"day": 26,
"month": 9,
"year": 1966
},
"name": "Markus Geburtstag",
},
{
"type": "fixed",
"date": {
"day": 8,
"month": 11,
"year": 1995
},
"name": "Viviennes Geburtstag",
}
]
}
configuration.yaml
sensor:
- platform: rest
resource: "Path to File"
name: events
value_template: "{{ value_json.events }}"
I tried to show the current Birthday in a HTML-Card via marquee, but i dont know how to get current Date, and then the current Birthday from my JSON file.
Hope someone can help me.