When I create a automation for loading prices every 6hours I see only a payload received in the logs. When I run it for the second times it also publish.
Log:
[2022-04-21 15:51:00] INFO : Received payload '{"fuel_type":"euro95","radius":5,"latitude":52.***,"longitude":4.***, "to_publish":3, "friendly_name_template": "[brand]" }' on topic 'dgp/gas_stations'
Log Run second time:
'{"fuel_type":"euro95","radius":5,"latitude":52.***,"longitude":4***, "to_publish":3, "friendly_name_template": "[brand]" }' on topic 'dgp/gas_stations' [2022-04-21 15:56:11] INFO : There are '29' stations within range for fuel type 'euro95' [2022-04-21 15:56:11] INFO : publishing stations to mqtt [2022-04-21 15:56:11] INFO : publishing station_id 1875 to mqtt [2022-04-21 15:56:12] INFO : publishing station_id 1926 to mqtt [2022-04-21 15:56:12] INFO : publishing station_id 2180 to mqtt [2022-04-21 15:56:13] INFO : publishing stations done [2022-04-21 15:56:13] INFO : publishing status to mqtt [2022-04-21 15:56:14] INFO : publishing status done
When I create a automation for loading prices every 6hours I see only a payload received in the logs. When I run it for the second times it also publish.
Automation:
{"fuel_type":"euro95","radius":5,"latitude":{{state_attr("person.robbin", "latitude") }},"longitude":{{state_attr("person.robbin", "longitude") }}, "to_publish":3, "friendly_name_template": "[brand]" }
Log:
[2022-04-21 15:51:00] INFO : Received payload '{"fuel_type":"euro95","radius":5,"latitude":52.***,"longitude":4.***, "to_publish":3, "friendly_name_template": "[brand]" }' on topic 'dgp/gas_stations'
Log Run second time:
'{"fuel_type":"euro95","radius":5,"latitude":52.***,"longitude":4***, "to_publish":3, "friendly_name_template": "[brand]" }' on topic 'dgp/gas_stations' [2022-04-21 15:56:11] INFO : There are '29' stations within range for fuel type 'euro95' [2022-04-21 15:56:11] INFO : publishing stations to mqtt [2022-04-21 15:56:11] INFO : publishing station_id 1875 to mqtt [2022-04-21 15:56:12] INFO : publishing station_id 1926 to mqtt [2022-04-21 15:56:12] INFO : publishing station_id 2180 to mqtt [2022-04-21 15:56:13] INFO : publishing stations done [2022-04-21 15:56:13] INFO : publishing status to mqtt [2022-04-21 15:56:14] INFO : publishing status done