ooii / pySuez

Get your water consumption data from your Suez account (www.toutsurmoneau.fr)
Apache License 2.0
8 stars 12 forks source link

Two attempts to get csrf token #22

Open dmitry-pervushin opened 1 year ago

dmitry-pervushin commented 1 year ago

Would you mind to pull this one and update the version? Integration in HomeAssistant were broken because of this CSRF token handling....

laurent-martin commented 1 year ago

Hi dmitry, are you using this in home assistant ?

dmitry-pervushin commented 1 year ago

Yes, I do!

Envoyé à partir de Outlook pour iOShttps://aka.ms/o0ukef


De : Laurent Martin @.> Envoyé : Monday, March 6, 2023 6:27:48 PM À : ooii/pySuez @.> Cc : dmitry-pervushin @.>; Author @.> Objet : Re: [ooii/pySuez] Two attempts to get csrf token (PR #22)

Hi dmitry, are you using this in home assistant ?

— Reply to this email directly, view it on GitHubhttps://github.com/ooii/pySuez/pull/22#issuecomment-1456583594, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAM2OOT3S7NTDN35LZNOFDDW2YNBJANCNFSM6AAAAAAVPWJMSY. You are receiving this because you authored the thread.Message ID: @.***>

dmitry-pervushin commented 1 year ago

Hi Laurent, Farid,

I'd like to invite you to try this custom-component with HA, if you want https://github.com/dmitry-pervushin/toutsurmoneau

Feel free to review the code and/or send me any PRs

Le lun. 6 mars 2023 à 18:27, Laurent Martin @.***> a écrit :

Hi dmitry, are you using this in home assistant ?

— Reply to this email directly, view it on GitHub https://github.com/ooii/pySuez/pull/22#issuecomment-1456583594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM2OOT3S7NTDN35LZNOFDDW2YNBJANCNFSM6AAAAAAVPWJMSY . You are receiving this because you authored the thread.Message ID: @.***>

-- take care, dmitry pervushin

laurent-martin commented 1 year ago

Super,

In fact I have also done the same, So, I have pushed here, you can also have a look:

https://github.com/laurent-martin/hass_int_toutsurmoneau

It is based on a python module I have also pushed here:

https://github.com/laurent-martin/py-mon-eau

You can also have a look at it, it also is able to detect the default meter identifier, instead of having to visually inspect the page source.

What I would also like to have is the possibility to push meter history back into home assistant.