Coder Social home page Coder Social logo

Comments (3)

cartman10 avatar cartman10 commented on July 17, 2024

Hi, I'm having the same issue. Any update here ?

from modbustcp2mqtt.

BM118 avatar BM118 commented on July 17, 2024

I am also having the same issue.

new install of the latest HA full OS, installed the MQTT from the addons, setup the MQTT integration, setup another addon that uses this setup (core-mosquitto) and it works fine, but this addon keeps throwing this error. When I look at the logs in MQTT it shows it is connecting, but it doesn’t seem to be working properly.

Any ideas?

[18:13:18] INFO: Configured'core-mosquitto' mqtt broker.
[18:13:18] INFO: Generated config file.
2024-05-15 18:13:19 INFO Starting SunGather 0.3.8
2024-05-15 18:13:19 INFO Loaded config: config.sg
2024-05-15 18:13:19 INFO Loaded registers: //registers-sungrow.yaml
2024-05-15 18:13:19 INFO Registers file version: 0.2.0
2024-05-15 18:13:19 INFO Logging to console set to: DEBUG
2024-05-15 18:13:19 DEBUG Inverter Config Loaded: {'host': '10.0.0.22', 'port': 502, 'timeout': 15, 'retries': 3, 'slave': 1, 'scan_interval': 60, 'connection': 'sungrow', 'model': None, 'smart_meter': False, 'use_local_time': False, 'log_console': 'DEBUG', 'log_file': 'OFF', 'level': 1}
2024-05-15 18:13:19 DEBUG Checking Modbus Connection
2024-05-15 18:13:19 INFO Modbus client is not connected, attempting to reconnect
2024-05-15 18:13:19 INFO Connection: ModbusTcpClient(10.0.0.22:502)
2024-05-15 18:13:19 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 33549)
2024-05-15 18:13:34 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 42825)
2024-05-15 18:13:37 DEBUG load_registers: read, 4999:1
2024-05-15 18:13:37 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 51949)
2024-05-15 18:13:37 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 46193)
2024-05-15 18:13:37 DEBUG Current transaction state - IDLE
2024-05-15 18:13:37 DEBUG Running transaction 1
2024-05-15 18:13:37 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 46019)
2024-05-15 18:13:37 DEBUG Connection to Modbus server established. Socket ('172.30.33.3', 49755)
2024-05-15 18:13:37 DEBUG SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x87 0x0 0x1
2024-05-15 18:13:37 DEBUG New Transaction state 'SENDING'
2024-05-15 18:13:37 DEBUG Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2024-05-15 18:13:37 DEBUG Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2024-05-15 18:13:37 DEBUG RECV: 0x0 0x1 0x0 0x0 0x0 0x5 0x1 0x4 0x2 0x24 0x82
2024-05-15 18:13:37 DEBUG Processing: 0x0 0x1 0x0 0x0 0x0 0x5 0x1 0x4 0x2 0x24 0x82
2024-05-15 18:13:37 DEBUG Factory Response[ReadInputRegistersResponse: 4]
2024-05-15 18:13:37 DEBUG Adding transaction 1
2024-05-15 18:13:37 DEBUG Getting transaction 1
2024-05-15 18:13:37 DEBUG Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2024-05-15 18:13:37 WARNING Unknown Type Code Detected: 9346
Unknown Type Code Detected: 9346
2024-05-15 18:13:37 INFO Closing Session: ModbusTcpClient(10.0.0.22:502)
2024-05-15 18:13:37 INFO Loading Export: exports\mqtt
2024-05-15 18:13:37 ERROR Failed loading export: 'NoneType' object has no attribute 'replace'
Please make sure mqtt.py exists in the exports folder
Failed loading export: 'NoneType' object has no attribute 'replace'
Please make sure mqtt.py exists in the exports folder
2024-05-15 18:13:37 DEBUG Checking Modbus Connection

from modbustcp2mqtt.

BM118 avatar BM118 commented on July 17, 2024

Managed to get it working, but it doesn’t seem to do what i expected it to do. I expected it to discover the model of my inverter, but if you let it do this, it seems to not discover the model and throws this error. If you specify the model number exactly, it started fine and no errors about the MQTT server. It appears the model and subsequently the serial number must be discovered before it can publish to MQTT which causes this error.

from modbustcp2mqtt.

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.