hello, i have a strange problem with an ip address template on a device.tracker.
I always have a “TemplateSyntaxError: expected token 'end of print statement” error when I try to retrieve the @ ip from the device trackers which starts with a number in the mac address.
But it works great for those who start with a letter!
Does anyone have an explanation to this ?
Do you have an example of what you’re talking about? Because the template sensor definitions above should be fine (although generally I’d always recommend using the state_attr() function.)