Skons / hassio-addons

7 stars 4 forks source link

Loading from a automation only Received payload #32

Closed robbinonline closed 2 years ago

robbinonline commented 2 years ago

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

Skons commented 2 years ago

Can you enable debugging and send the result of the first attempt?

Skons commented 2 years ago

Due to lack of response i will close this issue. Reopen it, or reopen a new issue if you still experience problems.