PimDoos / sessypy

Python wrapper for Sessy
GNU General Public License v3.0
5 stars 6 forks source link

New meter api endpoints #16

Closed MartijnCharged closed 11 months ago

MartijnCharged commented 1 year ago

There will be some shifting in the api's of the p1 and ct meter. Previously documented api's will function for the foreseeable future, but will eventually fade out of existence. The reason for the switch is to provide more data, and for the available data to be more accurate.

The following endpoint will be deprecated at some point (yes, these are the P1 AND CT endpoints).

The new endpoint for the P1 meter is: /api/v2/p1/details, and for the CT meter: /api/v1/ct/details.

Attached is the swagger documentation for the P1 meter V1.1.0, and CT meter V1.0.0. To View the files head over to the swagger editor and paste the txt files in (they are in txt couse github cant deal with yaml files, cause why would it). api_docs_ct.txt api_docs_p1.txt

PimDoos commented 11 months ago

Updated SessyApiCommand Enum with new endpoints. This will break on FW <1.5.2, so I will keep this on dev until FW 1.5.2 is publicly available.

MartijnCharged commented 11 months ago

Aditional changes in the P1 & CT meter api: Made it possible to add a grid target to the /api/v1/meter/grid_target endpoint, this endpoint alters the setpoint of NOM (the desired amount of power through the meter).

Attached the P1 docs, because grid target is the same for both meters. api_docs_p1.txt

PimDoos commented 11 months ago

Grid target implemented in dev.

PimDoos commented 11 months ago

Implemented in SessyPy 0.1.4

PimDoos commented 11 months ago

SessyPy 0.1.4 is released as a 'prerelease', will change this to 'latest' when Sessy FW 1.5.2 changes from Beta to Stable channel