jasonacox / pypowerwall

Python API for Tesla Powerwall and Solar Power Data
MIT License
120 stars 21 forks source link

v0.8.4 #86

Closed jasonacox closed 2 months ago

jasonacox commented 2 months ago

Library Update for v0.8.4

Update set_reserve(level) logic to handle levels from 0 to 100 Closes #85

Proxy Update for t55

Update API to use POST method for mode and reserve setting changes. Closes #87

export MODE=self_consumption
export RESERVE=20
export PW_CONTROL_SECRET=mySecretKey

# Set Mode
curl -X POST -d "value=$MODE&token=$PW_CONTROL_SECRET" http://localhost:8675/control/mode

# Set Reserve
curl -X POST -d "value=$RESERVE&token=$PW_CONTROL_SECRET" http://localhost:8675/control/reserve

# Read Settings
curl http://localhost:8675/control/mode
curl http://localhost:8675/control/reserve
jasonacox commented 2 months ago

Note from #85 - Setting to zero still not working.

jasonacox commented 2 months ago

Testing jasonacox/pypowerwall:0.8.4t55-beta before merge...

jasonacox commented 2 months ago

https://pypi.org/project/pypowerwall/0.8.4/

jasonacox/pypowerwall:0.8.4t55