palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Store panel details when calling `/api/login` API #139

Closed palazzem closed 5 months ago

palazzem commented 5 months ago

Is your feature request related to a problem? Please describe. When the client authenticates with the cloud API, we store the session_id and discard the rest of the response (https://github.com/palazzem/econnect-python/blob/9ab3bbc46409a16b32983e1ef6255cb423a7b017/src/elmo/api/client.py#L80-L82). The payload includes some interesting data we may want to expose, such as the panel details.

Describe the solution you'd like Instead of storing only the session_id, parse and store the whole response and make it available through the client.query(q.PANEL) public API.

Describe alternatives you've considered n/a

Additional context n/a