yo-han / Home-Assistant-Carelink

Unofficial Home Assistant Carelink Component
MIT License
19 stars 8 forks source link

[FR] Allow to update token via UI #57

Open VonOx opened 4 months ago

VonOx commented 4 months ago

Today, if the token expires, I have to update the cookie.txt file. Annoying if I have no direct access to HA server

It would be useful to be able to update the token via the user interface.

BTW, Thanks for this integration, I'm able to see the carelink data on my smartwatch ;) ( Carelink EU / MFA with follower account )

greenhawk89 commented 3 months ago

This would be an amazing feature!

yo-han commented 3 months ago

At the moment I am not aware of the possibility to send large pieces of text from the frontend to the backend. Anyone has an example of a component doing this?

greenhawk89 commented 3 months ago

Today, if the token expires, I have to update the cookie.txt file. Annoying if I have no direct access to HA server

It would be useful to be able to update the token via the user interface.

BTW, Thanks for this integration, I'm able to see the carelink data on my smartwatch ;) ( Carelink EU / MFA with follower account )

How do I go about "updating the cookie.txt file" with the new/proper key as they get updated? I want to manually do this as we await a more automated solution.

VonOx commented 2 months ago

@greenhawk89 sorry I've missed your reply.

In your HA installation folder , you can find the file in ./custom_components/carelink/cookie.txt

Edit it with the new value and reload carelink integration.

VonOx commented 1 month ago

Hi @yo-han

https://github.com/krahabb/meross_lan is using configure flow

image

Hope this is helping