AccuWeather: How to change location

When you first add the AccuWeather integration it prompts you for the Longitude and Latitude. I didn’t change it at the time, but now I want to. For the life of me, I can’t find anywhere to change it… not via any entity property, not in any config file. Does anyone know?

Hi,

On the integrations page in configuration you should have a configure button on accuweather. It will probably let you change the settings here I think ! (just a guess, not using it)

Or, delete and redo integration config flow

That’s the first place I looked. Sadly, it’s nowhere to be found. It’s got to be stored in some config file somewhere. I re-added it and am good to go now. They should really make it configurable though :slight_smile:

2 Likes

I completely agree that they should modify the integration to allow us to change the configuration after the fact (through the GUI). Especially if you either need to change the API key, or if you wind up moving and need to change the Lat & Long for your new location. Deleting and re-adding the integration can be a pain since it creates new entities, requiring you to update your Lovelace cards (or anything else that may be pointing to the previously created entities). That is, assuming that you do not use the same exact name for the integration as you did before.

I’ve scoured configuration files to see if I could find it and even poked around the SQLLite DB for HomeAssistant, but I haven’t found it yet. It has to be buried somewhere…

@chris123, ironically after I typed in my last comment, I found the file location. Under the “Config” folder for HomeAssistant, there was a subdirectory called “.storage”. Inside that directory, there is a file called “core.config_entries”. Using my text editor (Notepad++), I did a Find using “Accuweather”, and was able to find its full config. You can see in my screenshot below that your API key, latitude, longitude, and the name of the entity itself are revealed in plain text. You should be able to modify this and just simply restart HA for it to take effect.

I’m running mine through a Docker instance on my Unraid server. So, the directory structure may be different for you, but the file I referred to above should have the same name.

image

5 Likes

Thank you!