Tesla Powerwall 2 Sensors

probably not; does to device appear in the Tesla app? in which case it is talking to Tesla somehow, maybe via GSM.

Have a word with the installer and see what he has done; there is an ethernet port inside the gateway which you could use a powerline adapter to connected to your network. I wouldn’t recommend Wifi as the Gateway has a tendency to drop out once in a while.

FYI: I created a new network for IOT devices as I wasn’t keen on sharing access to my home/office with devices that are centrally connected, not only the PW but also my inverter talks to chinese servers.

Has anyone figured out how to create a SUM for solar production? I can’t seem to replicate that even though I have all the data in influx. :frowning:

I have used the statistical sensor, however a reboot loses the data - so perhaps persist in MQTT might be an answer https://www.home-assistant.io/components/sensor.statistics/

1 Like

Has anyone’s Powerwall sensor started failing? I’m getting SSL errors now and no longer collecting data. :frowning:

Error fetching data: <PreparedRequest [GET]> from http://192.168.10.90/api/system_status/soe failed with HTTPSConnectionPool(host='192.168.10.90', port=443): Max retries exceeded with url: /api/system_status/soe (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

Update: Easily fixed by switching sensors to SSL

Hi there and sorry if I reopen the thread.
I just want to set a binary sensor for my Tesla PowerWall 2 and I copy one sensor from your github:

  - platform: rest
    name: House now
    resource: https://192.168.1.53/api/meters/aggregates
    method: GET
    verify_ssl: false
    value_template: '{{ value_json.load.instant_power / 1000 | round(2) }}'
    device_class: power

At first give me an error because of unit_of_measurement
Anyway I take out the unit_of_measurement, but now it give me an error:
2019-09-08 18:00:08 ERROR (SyncWorker_18) [homeassistant.components.rest.sensor] Error fetching data: <PreparedRequest [GET]> from https://192.168.1.53/api/meters/aggregates failed with HTTPSConnectionPool(host='192.168.1.53', port=443): Max retries exceeded with url: /api/meters/aggregates (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f03156bb550>: Failed to establish a new connection: [Errno 113] Host is unreachable'))

Can you help me please ?
Thanks in advance
Denis

Tesla introduced self signed certificates a while back causing errors, I ended up writing a python script that ignored the errors and pushed the data to an MQTT server to be read as MQTT sensors.

Strange. I don’t have any issues at all with my current set up.

HI Everyone,

I’m new to HA! I setup the integration for tesla powerwall.

I want to make some automation on actions what action do I do to make my powerwall 2 go in to backup only?

My energy supplier is sometimes FREE or in the minus (ie i get paid to use electric) I have my energy rate price sensors in HA and i want to create rules so when energy price is 0.00 or lower then set tesla powerwall 2 to backup only so it starts charging.

I then need a rule to change powerwall 2 to “Self powered” mode which i’ll set when energy rates are above 0.01.

Look at the tesla_gateway custom component.

which is where?