I would like to send a location from HomeAssistant automations that is included in a sensor attribute. However, this is not possible in the following way. Does anyone have this working? And can he share his configuration?
If I remove the bit from data: location it will be sent. And not otherwise.
Looks like I’m not allowed to send template value as location.
service: notify.telegram
data:
title: Goedkoopste Benzine
message: >-
De beste benzine is nu € {{ states('sensor.gas_station_euro95_lowest_price_1') }} op deze locatie:
{{
state_attr("sensor.gas_station_euro95_lowest_price_1","station_street") }}.
data:
location:
latitude: {{ state_attr("sensor.gas_station_euro95_lowest_price_1", "latitude") }}
longitude: {{ state_attr("sensor.gas_station_euro95_lowest_price_1", "longitude") }}