Comments (3)
Hi, I'm having the same issue. Any update here ?
from modbustcp2mqtt.
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.
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)
- Grid consumption and Return to grid for energy dashbord missing HOT 2
- Missing entities?
- Multiple inverter connections HOT 1
- Modbus Error: [Connection] Failed to connect[ModbusTcpClient HOT 2
- It is not installing in HA
- Mosquitto refusing connections HOT 1
- This addon is no longer appearing in HA addon store. HOT 2
- The service starts and stops HOT 3
- Run two instances of the AddOn HOT 1
- Cannot install addon HOT 23
- Data collection failed HOT 1
- Help needed setting this up HOT 6
- Compatible with Sungrow SH4.0 RS
- SG5K-D missing smart meter entities
- Unable to install the addon HOT 22
- Failed to install add-on HOT 5
- New failed to install error on 2024.3.0
- Connection Failed: TypeError: not all arguments converted during string formatting
- Failed to connect to supervisor port 80 after 0 ms: Couldn't connect to server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modbustcp2mqtt.