The installation can crash, not your HA. If the installation crashes, just start the installation again
Just release 2023.8.7.1 to fix installation issues, but also a 403 error where the tankservice would not accept the request from DGP.
Thank you so much!
But it still won’t work for me…
It has slipped my attention, on it
I need some help to test my possible solution, is there anyone with a rpi having issues installing and can you test this possible solution?
Where can I change the attributes that are shown in de entity? I would like to add the address.
Tnx
in the automation.
Like this:
alias: Update gas stations
trigger:
- platform: time_pattern
minutes: "5"
- platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: dgp/gas_stations
payload_template: >-
{"fuel_type":"euro98","radius":5,"latitude":{{
state_attr("person.mischa", "latitude") }},"longitude":{{
state_attr("person.mischa", "longitude")
}},"friendly_name_template":"[brand] ([station_street])",
"to_publish":10}
you get this:
Thanks! That was easy
Is it also possible to do this for 2 locations?
For example 5 stations around my home and 5 around my work. I get the lat/lon from 2 zones then: zone.home and zone.work
Yes, check this one
What I mean was this. I have 5 fixed gas stations. But want same as 5 nearest (refresh based on price)
alias: Update gas stations
trigger:
- platform: time_pattern
minutes: "5"
- platform: homeassistant
event: start
action:
# home
- service: mqtt.publish
data:
topic: dgp/gas_stations
payload_template: >-
{"fuel_type":"euro95","radius":5,"latitude":{{
state_attr("zone.home", "latitude") }},"longitude":{{
state_attr("zone.home", "longitude")
}},"friendly_name_template":"[brand] ([station_street])",
"to_publish":5}
# Work
- service: mqtt.publish
data:
topic: dgp/gas_stations
payload_template: >-
{"fuel_type":"euro95","radius":5,"latitude":{{
state_attr("zone.work", "latitude") }},"longitude":{{
state_attr("zone.work", "longitude")
}},"friendly_name_template":"[brand] ([station_street])",
"to_publish":5}
This automation is not working. I only get 5 and not 10
Yeah, you should use the property identifier in the payload_template. The link i sent describes the usage, if you scroll up a bit you can see the property used but with optional described behind it
Just released version 2023.10.15.1 with multiple fixes. Be aware, there could be a breaking change depending on how you use the entities. @ArenaCloser your issue should be fixed also.
For me it’s working now also. Thanks for the great work!
How can i add a city or town name?