Open DigitalCharon opened 5 months ago
Having a similar issue here: Since yesterday I did not get any data from my Model S and I cannot send anything to it. via HA. Possible that the connection to the Tesla servers seem to be interrupted? Anyone else having this issue? For me it looks similar to the API thing at the start of this year.
I have had the same issue just now (in addition to all powerwall sensors not updating) and performing the same fix here resolved it - perhaps this is a regression: https://github.com/alandtse/tesla/issues/919#issuecomment-2015548967
I am on v3.24.0 PWG v24.12.6 3cc46fb9 2x Powerwall 3
Similar but subtly different issue. Lots of Task exception was never retrieved
(might be nice if the integration catches internal exceptions and sets itself to an error state or similar?), but the traceback is:
...
home-assistant | File "/config/custom_components/tesla_custom/sensor.py", line 445, in native_value
home-assistant | return round(self._energysite.energy_left)
home-assistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
home-assistant | File "/usr/local/lib/python3.12/site-packages/teslajsonpy/energy.py", line 152, in energy_left
home-assistant | return round (self._site_config.get("nameplate_energy") * self.percentage_charged / 100 )
home-assistant | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
home-assistant | TypeError: unsupported operand type(s) for *: 'int' and 'NoneType'
which I believe means that nameplate_energy
is an int
, and percentage_charged
is None
-- whereas in the initial post about this issue, it looked like it was None
and float
. Could be the exact same issue just different python version/impl reporting differently, but it's odd.
I ended up getting my integration working again by replacing
return round (self._site_config.get("nameplate_energy") * self.percentage_charged / 100 )
with
return round (self._site_config.get("battery_count")*self._site_summary.get("percentage_charged")*13500/100)
in the energy.py of my local copy of teslajsonpy.
Is there an existing issue for this?
Version of the Tesla component
v3.23.0
Version of the Powerwall Gateway software
24.12.6 3cc46fb9
Model
3
Current Behavior
battery remaining is unavailable.
Expected Behavior
battery percentage shows up
Debug logs
Anything else?
No response