-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to store cookies in a HA sensor #407
Comments
No that's not possible I'm afraid. But why don't you do the rest requests in multiscrape? |
@danieldotnl thank you for your answer.
The cookies are the XSFR-TOKEN and myceza_session which right now I've workaround by opening the great debug files with the responses and extract them but pursuiting soething more clean and straight. |
I released v8.0.2 yesterday. While that doesn't make it possible to add cookie data to a sensor, I do believe that it can replace your rest_command. Or am I missing something? |
Thanks for the reply. I will install it in the next days and try it. Keep you posted. |
Description:
This is not a bug or issue but within the documentation I was not able to find a way to store the cookies received after the authentication and store them in HA sensor to be used in some rest commands.
I'm using this component to managem my pellets stove and after the authentication two cookies are received: "XSRF-TOKEN" and "myceza_session".
This is the content of the page_response_cookies.txt file
What I need is to have this two cookies available in two HA sensora to be possible to manage the stove by using rest commands. With the latest version can this be done? And if not, I can create a feature request.
Version of the custom_component
7.1.2 (latest)
Multiscrape configuration
Thank you.
The text was updated successfully, but these errors were encountered: