Add support for Tesla Powerwall

Awesome, thanks @estebanp so to confirm (sorry quite new to this level of HA development):

  1. You add the public api code as a component in the HA folder (post 6), do I need to change client_secret and client_id?

  2. You set the required CONF_USERNAME and CONF_PASSWORD in configuration.yaml

  3. you add the rest sensor (in post 3) and set the solar_url to the local IP in secrets

  4. Then run the automation every time you switch tariff to set the battery to the below:

You check if you are on the super off peak tariff, if so you set the gateway to “backup” mode and the reserve percent = 100%

I am assuming this means it will start to pull from the grid and charge the battery to 100%?