Aohzan / hass-prixcarburant

Récupération des prix des stations en France
Apache License 2.0
30 stars 23 forks source link

Unexpected reset, config back to all stations and no data #20

Closed vingerha closed 11 months ago

vingerha commented 11 months ago

I define the setup a 8km around my house and only gazole This works fine but 'sometimes' the whole thing resets The integration states to be active, the chosen options (gazole) is gone and the entities are no longer available Reload does not help, need to setup from scratch

There are no errors visible but ... I restart every night and are not daily looking at the prices

config_entries shows:

        "entry_id": "b3b10a555a5dc95c0dd4814fc9da3d15",
        "version": 1,
        "domain": "prix_carburant",
        "title": "Prix Carburant",
        "data": {
          "platform": "prix_carburant",
          "max_km": 8,
          "stations": []
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": "prix_carburant",
        "disabled_by": null

image

vingerha commented 11 months ago

More info, it does not seem to sustain well after restarts, had a few today and at 'some point' it stopped following my config/options and started to select all petrol types but without any data. I stupidly forgot to turn on debug so ...t.b.c. After reconfig...my config_entry now shows (correct)

      {
        "entry_id": "220d032d7cd060665d9825229ee3e01c",
        "version": 1,
        "domain": "prix_carburant",
        "title": "Prix Carburant",
        "data": {
          "max_km": 8,
          "fuels_E10": false,
          "fuels_E85": false,
          "fuels_SP95": false,
          "fuels_SP98": false,
          "fuels_Gazole": true,
          "fuels_GPLc": false
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": "prix_carburant",
        "disabled_by": null
      }
vingerha commented 11 months ago

Just looking at the two config entries above... there is something fishy....data-key should not differ this much, e.g. why is 'platform' in data?

Aohzan commented 11 months ago

the first with data and platform comes from yaml configuration

vingerha commented 11 months ago

aargh... how the @#- could I have left it there. Ages ago I moved all to 'packages' ...except this one... Sorry for this