m85
March 25, 2023, 11:46am
1
I’m facing issues with the SAJ inverter configuration. I’ve been using it now a couple of weeks but i see an daily unusual spike in the energy dashboard. I made a issue for it in github. Anyone might know how to solve this? Thanks in advance.
opened 10:20AM - 22 Mar 23 UTC
integration: saj
### The problem
I'm using the SAJ Solar Inverter integration: https://www.home-… assistant.io/integrations/saj/
In my energy dashboard i see daily unusual high spike. It seems that the occurs daily when the inverter wakes up at the beginning of when the first sunenergy is generated or at the end of the day when it gets dark and the inverter goes to sleep.


### What version of Home Assistant Core has the issue?
2023.3.4
### What was the last working version of Home Assistant Core?
It has been an issue since i start using the SAJ integration.
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
SAJ Solar Inverter
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/saj/
### Diagnostics information
_No response_
### Example YAML snippet
```yaml
My configuration
sensor:
- platform: saj
name: SAJ
host: ##
type: wifi
username: ##
password: ##
Where the ## are noted the username, password en my local ip is configured.
```
### Anything in the logs that might be useful for us?
```txt
When the spike occurs in the logging is see the following error. This might cause it?
2023-03-22 06:30:44.557 WARNING (MainThread) [pysaj] Connection to SAJ inverter is not possible. The inverter may be offline due to darkness. Otherwise check host/ip address.
2023-03-22 06:37:21.452 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/saj/sensor.py", line 162, in interval_listener
if await action():
File "/usr/src/homeassistant/homeassistant/components/saj/sensor.py", line 115, in async_saj
success = await saj.read(sensor_def)
File "/usr/local/lib/python3.10/site-packages/pysaj/__init__.py", line 141, in read
async with session.get(current_url) as response:
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 467, in _request
with timer:
File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in __exit__
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError
From this moment on this error occurs continuesly
```
### Additional information
_No response_
tom_l
March 25, 2023, 12:37pm
2
Show the state history graph for that sensor about the time the big spike on the energy dashboard occurs.
You should check in the forum for solutions to this sort of thing before opening issues. Don’t close it though leave it for now.
m85
March 25, 2023, 2:23pm
3
Not sure if this is what you are looking for. See below screenshot. Thank you.
m85
March 28, 2023, 8:00pm
4
Is this the graph what is needed?
tom_l
March 28, 2023, 10:28pm
5
Yes. There is something wrong with that integration. It should not be dropping in value like that. Please include that graph in your open issue.
m85
March 31, 2023, 6:26am
6
Oke. Just added the graph to the issue.