Closed andrebbruno closed 1 year ago
Yes, stopped working over here as well.
i can't do much, when https://apsystemsema.com/ema/ isn't working..... it should work again, when the website is up, but until then, we just have to wait or mail them and ask when it will be back
i can't do much, when https://apsystemsema.com/ema/ isn't working..... it should work again, when the website is up, but until then, we just have to wait or mail them and ask when it will be back
for some reason, your link goes to https://apsystemsema.com/ema/ema, when I go to https://apsystemsema.com/ema/index.action from a browser it works fine
i will look into it tomorrow :)
thx
I have got almost the same problem here. I did not get any sensor readings since installing the program. All five sensors are “Niet beschikbaar”. I live in an apartment and have no direct access to the ECU-R, but I can read my PV panels through apsystemsema on the web and in the app. It seems to me that there is no data coming from apsystemsema. I get the following error messages in the log. Deze fout is ontstaan door een aangepaste integratie.
Logger: homeassistant.helpers.entity Source: custom_components/apsystems/sensor.py:227 Integration: apsystems (documentation) First occurred: 30 oktober 2022 om 07:33:08 (825 occurrences) Last logged: 11:28:12
Update for sensor.apsystems_energy_day fails Update for sensor.apsystems_energy_latest fails Update for sensor.apsystems_power_max_day fails Update for sensor.apsystems_power_latest fails Update for sensor.apsystems_date fails Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "/usr/local/lib/python3.10/site-packages/simplejson/init.py", line 525, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.10/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
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 "/config/custom_components/apsystems/sensor.py", line 142, in async_update ap_data = await self._fetcher.data() File "/config/custom_components/apsystems/sensor.py", line 238, in data await self.run() File "/config/custom_components/apsystems/sensor.py", line 227, in run self.cache = result_data.json() File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
In the code (sensor.py) is a _LOGGER function, but I cannot find any logs from this code. Can you help me?
same issue for me .... .is there any chance to get it fixed and working again ? I can not find where I need to replace the URL :-( Can someone help ? Thanks :)
i have connection to their system again in my test, but gets an error on home assistant.... i'm working on which part of the request it is missing to make it work.... I hope to soon have it working again, but python is not my specialty but i'm working though it :)
i have connection to their system again in my test, but gets an error on home assistant.... i'm working on which part of the request it is missing to make it work.... I hope to soon have it working again, but python is not my specialty but i'm working though it :)
Any luck yet?
I also lost connection to AP System 👎 Any solutions? :-)
I get a 403 Forbidden response from the login in line 198. Probably AP systems has changes their web interface. I am not experienced enough to tackle this further.
Is it working ?
i have connection in phpstorm again, but i can't get it to work in python... i'm still trying though
What did you enter in php storm I could help you there
I think this is the problem ? https://apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax
its something todo with python, cause there is nothing special in the queries
GET https://www.apsystemsema.com/ema/intoDemoUser.action?id=KEY
POST https://www.apsystemsema.com/ema/ajax/getReportApiAjax/getPowerOnCurrentDayAjax
queryDate=20221118&selectedValue=ECUID&systemId=SYSTEMID
hmm just saw, there is www.... wonder if its the whole problem... let me test
No
Maybe python can't connect to https url
it has done before without problems
well i found out part of the problem...
2022-11-21 19:15:22.947 DEBUG (MainThread) [custom_components.apsystems.sensor] Sending login: https://www.apsystemsema.com/ema/intoDemoUser.action?id=XXXXXXX 2022-11-21 19:15:23.035 DEBUG (MainThread) [custom_components.apsystems.sensor] Login result:403
so its the login... working on it...
I got the same results here. When I run de request directly in python with the requests.py library I again get a 403. But if I run the request from VS Code I get a 200. It seems that the python library request.py contains the problem. Or APSystems changed something on their website.
IDK
I think i Fixed it
I get a 200 directly in python
lets hear, or do a PR and i will merge :)
I changed something in my pycharm and now I get a 200
xD
It doesn't work in HACS
i have connection in home assistent.... just want to see the data, then i will push a new version
new release is out... give it a test
THX
Tried rebooting the ECU, Home Assistant etc and nothing seems to be working since yesterday.
Are you guys seeing this as well?