SecKatie / ha-wyzeapi

Home Assistant Integration for Wyze devices.
722 stars 112 forks source link

[Bug] unable to update login credentials without removing entire integration #584

Open teddy-ptmedia opened 2 months ago

teddy-ptmedia commented 2 months ago

I need to update the password for the integration to connect again. where can i do this without being forced to remove and re add the entire integration.

brg468 commented 2 months ago

I don’t think that’s possible, you’ll have to remove and re-add.

teddy-ptmedia commented 2 months ago

Is it possible to edit the integration somewhere in a file system? On May 15, 2024, at 6:09 PM, Brian Rogers @.***> wrote: I don’t think that’s possible, you’ll have to remove and re-add.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

brg468 commented 2 months ago

Possibly in .storage. It’s really not a big deal to re add the integration though.

teddy-ptmedia commented 2 months ago

I was looking I. Storage and can’t fine a wayze integrated reference. I have custom entities I’d have to set up again. On May 15, 2024, at 6:30 PM, Brian Rogers @.***> wrote: Possibly in .storage. It’s really not a big deal to re add the integration though.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

brg468 commented 2 months ago

Try

/homeassistant/.storage/core.config_entries

KAndersonUS commented 1 month ago

/homeassistant/.storage/core.config_entries

Try setting data to an empty object in the config entry for the wyzeapi domain in the above file. That should trigger the config flow which for this plugin will re-prompt for credentials and API key, which are then used here.

teddy-ptmedia commented 1 month ago

That is easy to do but how do I get the file to be unlocked for editing while HA is running? If I shut down HA I cant access the file to edit it.

On May 20, 2024, at 5:19 AM, Kyle Anderson @.***> wrote:

/homeassistant/.storage/core.config_entries

Try setting data to an empty object in the config entry for the wyzeapi domain in the above file. That should trigger the config flow https://developers.home-assistant.io/docs/config_entries_config_flow_handler/ which for this plugin will re-prompt for credentials and API key, which are then used here https://github.com/SecKatie/ha-wyzeapi/blob/master/custom_components/wyzeapi/__init__.py#L85.

— Reply to this email directly, view it on GitHub https://github.com/SecKatie/ha-wyzeapi/issues/584#issuecomment-2120674238, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYXFP267HQDFZ7JFJU54H3ZDIIBRAVCNFSM6AAAAABHZG2HTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGY3TIMRTHA. You are receiving this because you authored the thread.

brg468 commented 1 month ago

I just tried it with the file editor addon and it saved with no issues with HA running. I didn’t go through with a restart cause I don’t wanna go through re auth but it seems like it saved just fine. The file shows updated.

teddy-ptmedia commented 1 month ago

I did the same thing as you just now but it shows updated and then a moment later all the old data comes right back.

On May 21, 2024, at 4:09 AM, Brian Rogers @.***> wrote:

I just tried it with the file editor addon and it saved with no issues with HA running. I didn’t go through with a restart cause I don’t wanna go through re auth but it seems like it saved just fine. The file shows updated.

— Reply to this email directly, view it on GitHub https://github.com/SecKatie/ha-wyzeapi/issues/584#issuecomment-2122726610, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYXFP6H2JMZ64GCM5VW5ZDZDNIP7AVCNFSM6AAAAABHZG2HTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSG4ZDMNRRGA. You are receiving this because you authored the thread.

SecKatie commented 3 weeks ago

Is this a bug or a feature request?