I felt kinda proud of myselft for accomplishing that Even though I’m sure there’s a much easier way.
Now if my item is a string, that gets shown, so I know it’s linked to the item. If however I change it to a DateTime, it goes NULL. How should the string be formatted to be recognized as a proper date and time?
Some more info; if I have it as a string and look at the rest API items, i see this as the value: “\r\n2017-04-10T21:00:00\r\n”. Could the newline-characters be the cause of it not identifying as a DateTime? And if so, how in the world do I get rid of them?
I tried getting just the year-part as a formatted number and that didn’t work either. As a string it returns “\r\n2017.0\r\n” and NULL when set to number. Highly frustrating, I must be missing something very stupid or then there’s something wrong with the HTTP binding when using OpenHAB 2.0, I highly doubt the latter.
Resolved it. Had to change template to match whole document ja select to traverse the tree. That removed the newline characters, which indeed solved the problem. I’m patting myself on the back for a job well done