File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " sessypy"
3- version = " 0.1.13 "
3+ version = " 0.1.14 "
44authors = [
55 { name =" PimDoos" },
66]
Original file line number Diff line number Diff line change 11[metadata]
22name = sessypy
3- version = 0.1.13
3+ version = 0.1.14
44author = PimDoos
55url = https://github.com/PimDoos/sessypy
66long_description = file: README.md
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ class SessyApiCommand(str, Enum):
1010 ENERGY_STATUS = f"{ API_VERSION_1 } /energy/status"
1111
1212 METER_GRID_TARGET = f"{ API_VERSION_1 } /meter/grid_target"
13+ METER_STATUS = f"{ API_VERSION_1 } /meter/status"
1314
1415 NETWORK_SCAN = f"{ API_VERSION_1 } /network/scan"
1516 NETWORK_STATUS = f"{ API_VERSION_1 } /network/status"
Original file line number Diff line number Diff line change @@ -95,18 +95,15 @@ async def get_grid_target(self):
9595
9696 async def set_grid_target (self , grid_target : int ):
9797 return await self .api .post (SessyApiCommand .METER_GRID_TARGET , {"grid_target" : grid_target })
98+
99+ async def get_meter_status (self ):
100+ return await self .api .get (SessyApiCommand .METER_STATUS )
98101
99102class SessyP1Meter (SessyMeter ):
100- async def get_p1_status (self ):
101- return await self .api .get (SessyApiCommand .P1_STATUS )
102-
103103 async def get_p1_details (self ):
104104 return await self .api .get (SessyApiCommand .P1_DETAILS )
105105
106106class SessyCTMeter (SessyMeter ):
107- async def get_ct_status (self ):
108- return await self .api .get (SessyApiCommand .P1_STATUS )
109-
110107 async def get_ct_details (self ):
111108 return await self .api .get (SessyApiCommand .CT_DETAILS )
112109
You can’t perform that action at this time.
0 commit comments