I have an iphone/mobile integration sensor that has locations in list format (latitude and longitude). When I use this value, it became string with [ ] characters.
E.g.
Location:
- 1.123456
- 100.123456
It became [1.123456, 100,123456]
How to format it to only be: 1.123456, 100.123456
, i.e without the [ ] chars?
I need it to append to telegram message to create google map link.
https://www.google.com/maps/search/{{ state_attr("sensor.iphone_geocoded_location","Location") }}
It gave: https://www.google.com/maps/search/[1.123456, 100.123456]
.
I need it to be: https://www.google.com/maps/search/1.123456, 100.123456
.