Skip to content

Commit

Permalink
Merge pull request #25 from kirei/reboot
Browse files Browse the repository at this point in the history
Add reboot command
  • Loading branch information
jschlyter authored Aug 4, 2024
2 parents bd93826 + 67bd632 commit 30ec5b1
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 88 deletions.
5 changes: 5 additions & 0 deletions chargeamps/external.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,8 @@ async def remote_stop(self, charge_point_id: str, connector_id: int) -> None:
"""Remote stop chargepoint"""
request_uri = f"/api/{API_VERSION}/chargepoints/{charge_point_id}/connectors/{connector_id}/remotestop"
await self._put(request_uri, json="{}")

async def reboot(self, charge_point_id) -> None:
"""Reboot chargepoint"""
request_uri = f"/api/{API_VERSION}/chargepoints/{charge_point_id}/reboot"
await self._put(request_uri, json="{}")
Loading

0 comments on commit 30ec5b1

Please sign in to comment.