Comments (9)
uh um, weird.. Looks like you're not getting an json response..
The point was, it was a bit tricky to get this.
I'm doing 2 webcalls for it, 1 to get a cookie en then using some information from this cookie to make a call to:
https://monitoring.solaredge.com/solaredge-apigw/api/sites/SITEID/layout/energy?timeUnit=ALL
Perhaps that is not working for you? I will try to add come logging to check what kind of response there is.
from solaredgeoptimizers.
I have a similar thing in in my logs:
`This error originated from a custom integration.
Logger: homeassistant.helpers.entity
Source: custom_components/solaredgeoptimizers/sensor.py:168
Integration: SolarEdge Optimizers Data (documentation, issues)
First occurred: 14:18:46 (76 occurrences)
Last logged: 14:35:30
Update for sensor.lifetime_energy_1_2_15 fails
Update for sensor.lifetime_energy_1_2_16 fails
Update for sensor.lifetime_energy_1_2_17 fails
Update for sensor.lifetime_energy_1_2_18 fails
Update for sensor.lifetime_energy_1_2_19 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 515, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 710, in async_device_update
raise exc
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/solaredgeoptimizers/sensor.py", line 168, in update
lifetimeenergy = json.loads(self._client.getLifeTimeEnergy())
File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
`
from solaredgeoptimizers.
The other 4 entities are updating, so those are still working
its only the lifetime energy thats not working.
from solaredgeoptimizers.
in the solaredgeoptimizers.py I do see that the SITEID is fixed to 1871534 (your site ID?) on lines 89, 106, 114
could that be contributing to the issue?
from solaredgeoptimizers.
Oh no.. thats a mistake indeed.. I will fix this.. That's my siteid indeed.. But that is also used to login, so yeah, could be the problem.
from solaredgeoptimizers.
I fixed this in the latest version.. Please let me know if it works
from solaredgeoptimizers.
This works as a charm thanks!
from solaredgeoptimizers.
That's good to read!
from solaredgeoptimizers.
Life time sensors are now working
from solaredgeoptimizers.
Related Issues (20)
- Cannot install integration HOT 13
- Second system HOT 7
- Cannot Create Sensors HOT 10
- Error in log - this will fail in version 2023.3 HOT 8
- i can install the integration without issue but does not create any entities or devices HOT 18
- Integration only finds 16 of 28 optimizers HOT 4
- Home assistant core update 2023.3.0 HOT 2
- Awesome! HOT 1
- Installs, identified devices and entities but not polling information, checked again after 24 hours HOT 20
- Just a question HOT 1
- small change request HOT 6
- error fetching data and error in updating updater HOT 2
- Error: Connection aborted.', RemoteDisconnected('Remote end closed connection without response') HOT 7
- No recording any data HOT 1
- Minor change - Timeout from 60 to 300 for large panel installs
- Large gaps of Data not being pulled HOT 3
- Could you add some instructions on how to display these panels? HOT 1
- Update frequenze HOT 9
- Latest update from HA crashed addon HOT 4
- New feature request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solaredgeoptimizers.