3.0.0 • Published 2 years ago

homebridge-tesla-powerwall v3.0.0

Weekly downloads
11
License
ISC
Repository
github
Last release
2 years ago

homebridge-tesla-powerwall

npm npm

(Unofficial) Homebridge Plugin for the Tesla Powerwall.

Communication with the Tesla Powerwall is according to https://github.com/vloschiavo/powerwall2 .

This Plugin is still under development. If you like it, please support the development by sending a "cup of coffee" via Paypal:

Donate

And/Or leave a comment: https://teslamotorsclub.com/tmc/threads/tesla-powerwall-homekit-support-through-homebridge.116416/

Installation

  1. Install Homebridge: sudo npm install -g --unsafe-perm homebridge
  2. Install this plugin sudo npm install -g homebridge-tesla-powerwall
  3. Add this plugin as a platform to your config.json file

Configuration

Inside config.json of Homebridge:

...
    "platforms": [
        {

Mandatory:

            "platform": "TeslaPowerwall",
            "name": "Tesla Powerwall",
  • "name" is freely choosable

Optional:

            "ip": "127.0.0.1",
            "port": "",
            "pollingInterval": 15000,
            "historyInterval": 300000,
            "lowBattery": 20,
            "additionalServices": {
                "powerwall": {
                    "homekitVisual": true,
                    "eveHistory": true
                },
                "solar": {
                    "homekitVisual": true,
                    "evePowerMeter": true,
                    "eveHistory": true
                },
                "grid": {
                    "homekitVisual": true,
                    "positiveEvePowerMeter": true,
                    "negativeEvePowerMeter": true,
                    "eveHistory": true
                },
                "battery": {
                    "homekitVisual": true,
                    "positiveEvePowerMeter": true,
                    "negativeEvePowerMeter": true,
                    "eveHistory": true
                },
                "home": {
                    "homekitVisual": true,
                    "evePowerMeter": true,
                    "eveHistory": true
                }
            }
  • Here filled with default values (values that are used when the attribute is not explicitly listed)
  • "pollingInterval" or "historyInterval" in milliseconds
  • "lowBattery": Percentage from which the charge is considered critical/low
  • "additionalServices": Services additional to the basic switch with a battery
        },
    ...
    other platforms
    ...
    ]
...

History Configuration

From: Fakegato project

No persistence (The Elgato-Eve App will still save received measurements):

  • Do not include "historySetting" in the config.json.

File-System persistence:

            "historySetting": {

Mandatory:

                "storage": "fs",

Optional:

                "size": 4032,
                "path": "/place/to/store/my/persistence/"
  • "size" default: 4032
  • "path" default: .homebridge folder of the user or the given homebridge -U location
            }

Google Drive persistence:

            "historySetting": {

Mandatory:

                "storage": "googleDrive",

Optional:

                "size": 4032,
                "folder": "fakegato",
                "keyPath": "/place/to/store/my/keys/"
  • "size" default: 4032
  • "folder" default: "fakegato" as the folder on Google Drive.
  • "keyPath" default: .homebridge folder of the user or the given homebridge -U location
            }

For the setup of Google Drive, please follow the Google Drive Quickstart for Node.js instructions from https://developers.google.com/drive/v3/web/quickstart/nodejs, except for these changes:

  • In Step 1-h the working directory should be the .homebridge directory
  • Skip Step 2 and 3
  • In step 4, use the quickstartGoogleDrive.js included with this module. You need to run the command from fakegato-history directory. Then just follow steps a to c.

Example Configuration

...
        {
            "platform": "TeslaPowerwall",
            "name": "Tesla Powerwall",
            "ip": "192.168.178.100",
            "pollingInterval": 10000,
            "historyInterval": 120000,
            "lowBattery": 10,
            "historySetting": {
                "storage": "fs"
            }

        }
...

FAQ

Plugin stopped working after Powerwall upgraded to version 1.20.0

(Possible) Solution: Update this plugin and check in the config.json that the port option is either set to "" or removed.

Feature request / Bug found?

You are welcome to create an Issue.

3.1.0-Beta7

2 years ago

3.1.0-Beta6

2 years ago

3.1.0-Beta4

2 years ago

3.1.0-Beta3

2 years ago

3.1.0-Beta5

2 years ago

3.1.0-Beta

2 years ago

3.0.0-Beta

2 years ago

3.1.0-Beta2

2 years ago

3.0.0

2 years ago

2.0.0-Beta7

3 years ago

2.1.0-Beta

3 years ago

2.0.0

3 years ago

2.0.0-Beta6

3 years ago

2.0.0-Beta5

3 years ago

2.0.0-Beta

3 years ago

2.0.0-Beta2

3 years ago

2.0.0-Beta3

3 years ago

2.0.0-Beta4

3 years ago

1.1.0

4 years ago

1.1.0-Beta3

4 years ago

1.1.0-Beta

4 years ago

1.1.0-Beta2

4 years ago

1.0.1

4 years ago

1.0.1-Beta

4 years ago

1.0.0

4 years ago

1.0.0-Beta

4 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago