Code Monkey home page Code Monkey logo

Comments (20)

TecnoTalarn avatar TecnoTalarn commented on September 4, 2024

Well, I've tried without success since I'm not very good at application programming, to modify the URL where it connects but it's not enough. It would be possible to modify the way of passing the login data, and also, for sure, it would not be able to capture the data that is on the web.
The maximum I have achieved is to put the URL of the login.
2023-12-09 00:36:56.255 ERROR (MainThread) [custom_components.saj_esolar.sensor] https://esaj-home.saj-electric.com/login returned 405

from sajesolar.

stefagi avatar stefagi commented on September 4, 2024

I have the same problem.
I'm trying to use the url "inversor.saj-electric.com" as described here: https://github.com/djansen1987/SAJeSolar/releases/tag/v1.5.1
without success

from sajesolar.

TecnoTalarn avatar TecnoTalarn commented on September 4, 2024

Well, I have seen that the greenheiss or solarprofit inverters are still operational on the old platform, but the SAJ devices are no longer there. I tried to connect to the greenheiss platform with my user and it can be accessed, but there is no inverter and if you try to add an inverter SAJ detects a wrong SN.
What I haven't tried is re-enabling the inverter on the old SAJ website, because I think they would delete it immediately.

I hope someone more knowledgeable than me can find a way to access the new platform soon!

from sajesolar.

TecnoTalarn avatar TecnoTalarn commented on September 4, 2024

https://esaj-home.saj-electric.com/monitor/device-monitor-detail?deviceSn=XXXXXXXXXXXX
This is the only page that is needed. Maybe the API can go much better, but if we could get the info from here, it would be fine.

This other page also works, at the moment:
https://inversor.saj-electric.com/cloud/cloudMonitor/deviceInfo?devicesn=XXXXXXXXXXXX
But I don't see how to edit the component so that it goes directly to read this.

from sajesolar.

palmfieldsflame avatar palmfieldsflame commented on September 4, 2024

I had the same problem from yesterday but mine has started working again just now with no changes to the the configuration. Hope it stays working.

from sajesolar.

miquelbotanch avatar miquelbotanch commented on September 4, 2024

Here in Barcelona, it has been giving me strange values during a day or so, after that, all of a sudden the integration returned me "no numeric value" for grid production and battery level, and now, it's working again.

Maybe I'm getting the info from another server or SAJ changed something
IMG_6290

from sajesolar.

TecnoTalarn avatar TecnoTalarn commented on September 4, 2024

Hello again
I made changes on my module to connect a SOLARPROFIT page, and run fine.
Also I see all data are again in esolar fop webserver. Maybe a database error on server, and have resolved.

If anyone need solarprofit mod, I can send. My version is very old, but I made a lot of changes in order to see more data from server, like independent array values or negative power value on battery to see charge or discharge.

Thanks from Catalonia.

from sajesolar.

palmfieldsflame avatar palmfieldsflame commented on September 4, 2024

My HA was not pulling data from the SAJ portal again today. I looked here and there seemed to be no one else facing the same issue as me. I then checked my HA logs and found these errors.
Error1
error2

After some investigation It turns out that my data is on the international node and the urls for the international and European nodes are different also the url for the European node is the same as the old url.
The url for the international node is https://intop.saj-electric.com/saj/login. Searched for 'https://fop.saj-electric.com/saj/login' and replaced it with 'https://intop.saj-electric.com/saj/login' in sensor.py and now my data is back.

from sajesolar.

OlorinSledge avatar OlorinSledge commented on September 4, 2024

My HA was not pulling data from the SAJ portal again today. I looked here and there seemed to be no one else facing the same issue as me. I then checked my HA logs and found these errors. Error1 error2

After some investigation It turns out that my data is on the international node and the urls for the international and European nodes are different also the url for the European node is the same as the old url. The url for the international node is https://intop.saj-electric.com/saj/login. Searched for 'https://fop.saj-electric.com/saj/login' and replaced it with 'https://intop.saj-electric.com/saj/login' in sensor.py and now my data is back.

I was also having the same issue and noticed I was now using the international node.

To fix this you need to search for all instances of "fop" and replace with "intop". There are two locations in sensor.py:

  1. Line 55: BASE_URL = 'https://fop.saj-electric.com/saj/login'
  2. Line 506: vol.Optional("provider_domain",default="fop.saj-electric.com"): cv.string,

Change the "fop" to "intop" for both the above lines and everything will be working again.

from sajesolar.

djansen1987 avatar djansen1987 commented on September 4, 2024

If anyone can make a pull request so it works in both situations i am happy to merge it. Unfortuanly i also do not have a saj device anymore and there for it is not on top of my priorities. Also happy to assign a second owner to the projects

from sajesolar.

santiagoGPNC avatar santiagoGPNC commented on September 4, 2024

@OlorinSledge @palmfieldsflame in the most recent version of the code, the domain can be passed through the configuration . This was done for the benefit of solarprofit and greenheiss users, but I think should work for this as well.

e.g. adding

provider_domain: https://intop.saj-electric.com
provider_path: saj

will most likely do the same as you mention

from sajesolar.

connornz avatar connornz commented on September 4, 2024

My HA was not pulling data from the SAJ portal again today. I looked here and there seemed to be no one else facing the same issue as me. I then checked my HA logs and found these errors. Error1 error2
After some investigation It turns out that my data is on the international node and the urls for the international and European nodes are different also the url for the European node is the same as the old url. The url for the international node is https://intop.saj-electric.com/saj/login. Searched for 'https://fop.saj-electric.com/saj/login' and replaced it with 'https://intop.saj-electric.com/saj/login' in sensor.py and now my data is back.

I was also having the same issue and noticed I was now using the international node.

To fix this you need to search for all instances of "fop" and replace with "intop". There are two locations in sensor.py:

  1. Line 55: BASE_URL = 'https://fop.saj-electric.com/saj/login'
  2. Line 506: vol.Optional("provider_domain",default="fop.saj-electric.com"): cv.string,

Change the "fop" to "intop" for both the above lines and everything will be working again.

Which file is this? I can't find these lines anywhere in the .py files... Can someone help?

from sajesolar.

santiagoGPNC avatar santiagoGPNC commented on September 4, 2024

@connornz you should be able to change the domain in your configuration.yaml following the configuration instructions

provider_domain: https://intop.saj-electric.com
provider_path: saj

from sajesolar.

connornz avatar connornz commented on September 4, 2024

@connornz you should be able to change the domain in your configuration.yaml following the configuration instructions

provider_domain: https://intop.saj-electric.com
provider_path: saj

Like this?

#sensor:

  • platform: saj_esolar
    username: connor_nz
    password: PASSWORD
    plant_id: 0 # Default is 0. Typically ordered in the same way as they are listed in the eSolar app
    provider_domain: https://intop.saj-electric.com
    provider_path: saj
    sensor: h1
    resources:
    • nowPower
    • runningState
    • todayElectricity
    • monthElectricity
    • yearElectricity
    • totalElectricity # Energy -> Solar production
    • todayGridIncome
    • income
    • lastUploadTime
    • totalPlantTreeNum
    • totalReduceCo2
    • status
    • plantuid
    • currency
    • address
    • isOnline
    • peakPower
    • systemPower # Installed capacity

from sajesolar.

santiagoGPNC avatar santiagoGPNC commented on September 4, 2024

on a glance, yes (assuming you have the most recent version, that is.)

from sajesolar.

connornz avatar connornz commented on September 4, 2024

on a glance, yes (assuming you have the most recent version, that is.)

Doesn't matter what I do. I get the following
"ERROR (MainThread) [custom_components.saj_esolar.sensor] return data NONE"

from sajesolar.

djansen1987 avatar djansen1987 commented on September 4, 2024

Did you get it resolved ?

from sajesolar.

connornz avatar connornz commented on September 4, 2024

from sajesolar.

djansen1987 avatar djansen1987 commented on September 4, 2024

I also want to look in to the Modbus. Could you perhaps share how you connected the modbus and what device you use to read the values in Home assistant ?

from sajesolar.

djansen1987 avatar djansen1987 commented on September 4, 2024

No response

from sajesolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.