Hello,
i have an entity sun.sun
(from Homeassistant) with attribute rising data.attributes.next_rising
with payload 2024-01-18T07:26:56.471638+00:00
and want to process this raw data to hh:mm
(with hh+1)
Like:
2024-01-18T07:26:56.471638+00:00 > 08:26 (8 cause hh+1)
I have read many topics about processing messages but have no clue how to proceed. It seems like all messages between objects in nodered are passed (default) with JavaScript. Do i have to build a JavaScript function between entity and template? And how i can get the data from the function?
I have a working solution with raw-data in Mustache-Template:
{
"text": "{{data.attributes.next_rising}}",
}
Thank you in advice