Code by Scott שאול בן ישוע
Verified Commit fcc21ca3 authored by Sha'ul ben Yeshua's avatar Sha'ul ben Yeshua 🎗
Browse files

rename img

parent 3d0c5807
......@@ -10,12 +10,14 @@
* energy_imported is power you needed from the grid
* energy_exported is power you sent to the grid
*
* API calls casn be found at https://github.com/vloschiavo/powerwall2
*
API calls casn be found at https://github.com/vloschiavo/powerwall2
* V 1.0 - Initial code
*
*/
def version() { return "v1.0" }
metadata {
definition (name: "Tesla Powerwall II Status", namespace: "sgrayban", author: "Scott Grayban") {
capability "Battery"
......@@ -37,8 +39,8 @@ metadata {
attribute "SiteName", "string"
attribute "Region", "string"
attribute "Timezone", "string"
attribute "ConnectedToTesla", "string"
attribute "SystemRunning", "string"
attribute "ConnectedToTesla", "string"
attribute "SystemRunning", "string"
}
......@@ -49,7 +51,7 @@ metadata {
}
def installed() {
log.debug "Installed with settings: ${settings}"
log.debug "Installed"
initialize()
}
......@@ -62,7 +64,8 @@ def updated() {
log.debug "Updated"
initialize()
}
def initialize() {
updateCharge()
runEvery1Minute(updateCharge)
......@@ -138,7 +141,7 @@ def updateCharge() {
} catch (e) {
log.error "error: $e"
}
/// Get the sitemaster info values
params = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment