homebridge-tesla-powerwall v3.0.0
homebridge-tesla-powerwall
(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:
And/Or leave a comment: https://teslamotorsclub.com/tmc/threads/tesla-powerwall-homekit-support-through-homebridge.116416/
Installation
- Install Homebridge:
sudo npm install -g --unsafe-perm homebridge
- Install this plugin
sudo npm install -g homebridge-tesla-powerwall
- 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 givenhomebridge -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 givenhomebridge -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.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago