jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
198 stars 48 forks source link

Had to recreate maker api #192

Closed Bboy486 closed 1 year ago

Bboy486 commented 1 year ago

Is there somewhere where I can update the API in HACS if I have a new maker api access token? I don't see a way to update the API key in the configuration options. I would prefer to not have to recreate all of my entities/ dashboards if possible.

jason0x43 commented 1 year ago

It’s possible, but a bit of a pain. #181 would address the issue.

You would need to:

  1. Shut down HA
  2. Edit config/.storage/core.config_entries
  3. Find the Hubitat entry and note the first part of the current access token
  4. Replace the access token with the new one
  5. Edit config/.storage/core.device_registry
  6. Replace all occurrences of the first part of the old access token with the first part of the new access token
  7. Start HA
Bboy486 commented 1 year ago

Any way to add this under advanced in the integration config (ability to update API)?

jason0x43 commented 1 year ago

That's the eventual plan.