So I have an entity that has an attribute called “leases”.
It shows the currently leased DHCP addresses from my router.
I’m trying to show a nice list with all the leases in a markdown card.
If I use the following code:
{{ state_attr(‘sensor.router’, ‘leased’) }}
I get something that looks like this:
device1 (x.x.x.x), device2 (x.x.x.x), device3 (x.x.x.x)
How do I get it to look something like this:
device1 (x.x.x.x)
device2 (x.x.x.x)
device3 (x.x.x.x)