datMaffin / homebridge-tesla-powerwall

Homebridge Plugin for the Tesla Powerwall
ISC License
21 stars 11 forks source link

Force a charge/Mode #15

Open simonrb2000 opened 4 years ago

simonrb2000 commented 4 years ago

Hi,

Great plug in. Is there a way to display what mode the battery is in or even force it to charge off the grid by clicking a button? I read the API to the servers is quicker than the API to the gateway. (Hope I have that right).

Cheers

datMaffin commented 4 years ago

If the corresponding HTTP calls exist and they do not require authentication: I would add the switches to display and update the current state.

However, I am relying on the documentation as presented here: https://github.com/vloschiavo/powerwall2 and I do not see a way to read and/or update the behaviour. (Could have missed it; there are a lot of possible HTTP calls).

In addition, if authentication would be required I would not know how to implement it.

About your last statement

I read the API to the servers is quicker than the API to the gateway. (Hope I have that right).

I am not entirely sure what you mean with "server" and "gateway" in this context: This plugin sends HTTP calls to the (local) ip-address of the tesla-powerwall. So, I would say the tesla-powerwall is the server providing the gateway (over HTTP).

datMaffin commented 4 years ago

Ok, I double checked the HTTP calls. It seems as if /api/operation would be the url of the call. Calls to /api/operation seem to need authorization; so:

In addition, if authentication would be required I would not know how to implement it.

simonrb2000 commented 4 years ago

Hi,

Thanks for checking this. When I was researching I saw there are two ways of communication: 1. Direct to gateway (local ip) and one to the Tesla servers which is quicker.

Thanks again

Simon

On 19 Apr 2020, at 18:12, Marvin Dostal notifications@github.com wrote:



Ok, I double checked to HTTP calls. It seems that /api/operation would be the url for the call. Calls to /api/operation seem to need authorization; so:

In addition, if authentication would be required I would not know how to implement it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/datMaffin/homebridge-tesla-powerwall/issues/15#issuecomment-616185826, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD2AEAF5TDFEZXUJYML3ZJDRNMWIXANCNFSM4MLI3CZA.