firstof9 / ha-gasbuddy

Component to integrate with GasBuddy fuel price tracker.
MIT License
20 stars 2 forks source link

[Bug]: All gas prices show $0.00 #99

Open JohnyBeGood opened 2 hours ago

JohnyBeGood commented 2 hours ago

The problem

Hi,

Thanks for developing this integration!

It worked fine until this morning. Out of nowhere it shows $0.00. I checked on the GasBuddy website and there was price there. I also removed everything including the gas station and added again, but that did not made any difference. Not sure if new version broke it or what.

What version of Home Assistant?

core-2024.10.1

What version of GasBuddy?

1.0.14

Diagnostics information

Screenshot 2024-10-10 113541

Anything in the logs that might be useful for us?

No response

Additional information

No response

firstof9 commented 2 hours ago

What's the station ID?

JohnyBeGood commented 1 hour ago

What's the station ID?

156618

I just tried using a different device and on GasBuddy, there are no prices listed. There must be a caching issue on my main device so no issue with this integration as the source does not have prices listed.

Oddly, the particular station is in a busy area and I can't believe no prices are being shown.

firstof9 commented 1 hour ago

The API's reporting 0 as the price:

{
    "data": {
        "station": {
            "brands": [
                {
                    "imageUrl": "https://images.gasbuddy.io/b/56.png"
                },
                {
                    "imageUrl": "https://images.gasbuddy.io/b/56.png"
                }
            ],
            "prices": [
                {
                    "cash": null,
                    "credit": {
                        "nickname": null,
                        "postedTime": null,
                        "price": 0
                    },
                    "fuelProduct": "regular_gas",
                    "longName": "Regular"
                },
                {
                    "cash": null,
                    "credit": {
                        "nickname": null,
                        "postedTime": null,
                        "price": 0
                    },
                    "fuelProduct": "midgrade_gas",
                    "longName": "Midgrade"
                },
                {
                    "cash": null,
                    "credit": {
                        "nickname": null,
                        "postedTime": null,
                        "price": 0
                    },
                    "fuelProduct": "premium_gas",
                    "longName": "Premium"
                },
                {
                    "cash": null,
                    "credit": {
                        "nickname": null,
                        "postedTime": null,
                        "price": 0
                    },
                    "fuelProduct": "diesel",
                    "longName": "Diesel"
                }
            ],
            "priceUnit": "dollars_per_gallon",
            "currency": "USD",
            "id": "156618",
            "latitude": 47.364016302532,
            "longitude": -122.020983695983
        }
    }
}
firstof9 commented 1 hour ago

Maybe they requested their prices be wiped?

JohnyBeGood commented 1 hour ago

Maybe they requested their prices be wiped?

Possible, but I doubt it as other not related stations in radius do not have prices listed. Really odd. I wonder if something is going on with their system.