Kubiac / homebridge-solaredge-realtime

Apache License 2.0
5 stars 3 forks source link

ECONNREFUSED - Homebridge #8

Open SyBeer opened 1 year ago

SyBeer commented 1 year ago

Hi,

I have problem with connection. Homebridge in debug mode reports only that

[04/01/2023, 23:10:58] [SolaredgeRealTime] Connecting to Inverter at 192.168.1.223
[04/01/2023, 23:10:58] [SolaredgeRealTime] connect ECONNREFUSED 192.168.1.223:1502

Homebridge configutation

{
    "name": "SolaredgeRealTime",
    "inverter": [
        {
            "id": "Inverter-1",
            "displayName": "Inverter",
            "ip": "192.168.1.223",
            "port": 1502,
            "updateInterval": 60,
            "powerAddress": 40083,
            "powerSfAddress": 40084,
            "powerUnsignedValue": true
        }
    ],
    "_bridge": {
        "username": "0E:55:80:BD:D7:6B",
        "port": 47743
    },
    "platform": "SolaredgeRealTime"
}

So I done some steps from https://github.com/Kubiac/homebridge-solaredge-realtime/issues/1

I install pip3 lib

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting solaredge_modbus
  Downloading https://files.pythonhosted.org/packages/a7/f9/ab37fd34dc835a1673cd2edf6e22e246c16f70566b48b87c7e8b14e05bcb/solaredge_modbus-0.7.0-py3-none-any.whl
Collecting pymodbus>=2.4.0 (from solaredge_modbus)
  Downloading https://files.pythonhosted.org/packages/fb/0f/28190d06bbc3b78834d384cb04bb15e5dcdea4f5d370094dbf5debc3af10/pymodbus-2.5.3-py2.py3-none-any.whl (154kB)
    100% |████████████████████████████████| 163kB 1.3MB/s 
Requirement already satisfied: pyserial>=3.4 in ./.local/lib/python3.7/site-packages (from pymodbus>=2.4.0->solaredge_modbus) (3.5)
Collecting six>=1.15.0 (from pymodbus>=2.4.0->solaredge_modbus)
  Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: six, pymodbus, solaredge-modbus
Successfully installed pymodbus-2.5.3 six-1.16.0 solaredge-modbus-0.7.0

and then start command on python3 and:

>>> import solaredge_modbus
>>> i = solaredge_modbus.Inverter(host="192.168.1.223", port=1502)
>>> i.connect()
False

connection False