Comments (4)
It's my inverter thats giving these errors. I've contacted you via email.
from givenergy-modbus.
Fascinating, I've not seen that before. So the reason the log lines are correct is because the protocol contains the inverter serial twice 🤦 . Once as part of the standard header for reading back any set of registers, but then also as part of InputRegisters
when you read back locations 13-17. It is the latter that seems to be failing, which would be quite interesting to debug. It should already be identifying serials starting with ED
as Gen2
, so throwing an exception here is actually good – clearly there's something funky with the register decoding going on based on the exception you pasted.
If you'd be up for it, supplying the raw RegisterCache would be useful for me to try and debug it – you should be able to do .inverter_rc.to_json()
and pass that back to me. GitHub unfortunately doesn't seem to support private/confidential issues or comments so not sure what method you'd be most comfortable with to share it.
from givenergy-modbus.
FYI, the dump-registers
command in the CLI does something similar that I've used before to help others debug their setup.
Also, just so you're aware, I'm massively refactoring the whole thing right now – the current synchronous client is quite flaky because it is quite sensitive to timing on messages incoming and misses a lot of updates as a result. I'm nearing completion of an asyncio-based version which has been super stable so far (querying real-time values every 5s) and will be part of a native Home Assistant custom component I've been working on at the same time.
from givenergy-modbus.
This is a hardware issue from as much as I can see – I added some workarounds which should handle this more gracefully in future.
from givenergy-modbus.
Related Issues (17)
- 'Coordinator' object has no attribute 'refresh_plant'
- GivEnergyClient missing from code? HOT 2
- CLI failing - latest version
- Addition to README
- Intermittent results when querying the Inverters HOT 2
- missing model from model.inverter
- Example for async client
- Need a fresh release HOT 6
- Do not set battery_soc_reserve as part of set_mode_storage HOT 1
- pymodbus 3.x support HOT 2
- Individual start and end time control
- Unable to connect to the new All In One HOT 6
- Hybrid Gen3 Serial Number not recognised (FA*******)
- FYI prometheus-givenergy
- Cannot determine model number from serial number
- Querying inverter fails with ValueError: hour must be in 0..23 HOT 1
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 givenergy-modbus.