Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter updated nicht alle states und zeig an das er nicht verbunden ist. #40

Open
christi-ko opened this issue Mar 11, 2024 · 1 comment

Comments

@christi-ko
Copy link

christi-ko commented Mar 11, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '....'
  4. See error

Expected behavior
Mit vorheriger Version hat alles funktioniert.

Screenshots & Logfiles
image.

Versions:

  • Adapter version: 0.1
  • JS-Controller version: v18.17.0
  • Node version:
  • Operating system: ubuntu

Additional context
Im Log ist nichts zu erkennen:

`sun2000-modbus.0 2024-03-11 07:01:18.418 debug Created alarm json from '000000000000000000000000000000000000000000000000'
sun2000-modbus.0 2024-03-11 07:01:17.706 debug Fetch data for block [37760-37767] containing 2 registers
sun2000-modbus.0 2024-03-11 07:01:17.605 debug Fetch data for block [37113-37115] containing 1 registers
sun2000-modbus.0 2024-03-11 07:01:16.811 debug Fetch data for block [32324-32328] containing 2 registers
sun2000-modbus.0 2024-03-11 07:01:16.033 debug Fetch data for block [32064-32082] containing 2 registers
sun2000-modbus.0 2024-03-11 07:01:15.083 debug Fetch data for block [32008-32011] containing 3 registers
sun2000-modbus.0 2024-03-11 07:01:15.083 debug Fetch data for 5 blocks
sun2000-modbus.0 2024-03-11 07:01:05.072 info Max interval: [120]
sun2000-modbus.0 2024-03-11 07:01:05.072 info Start watchdog
sun2000-modbus.0 2024-03-11 07:01:05.072 info Updated 47 registers in 7.887 sec, [LOW]
sun2000-modbus.0 2024-03-11 07:01:04.128 debug Fetch data for block [37762-37788] containing 4 registers
sun2000-modbus.0 2024-03-11 07:01:03.374 debug Fetch data for block [37100-37123] containing 12 registers
sun2000-modbus.0 2024-03-11 07:01:02.548 debug Fetch data for block [37015-37023] containing 2 registers
sun2000-modbus.0 2024-03-11 07:01:01.458 debug Fetch data for block [32078-32120] containing 8 registers
sun2000-modbus.0 2024-03-11 07:01:00.592 debug Fetch data for block [32016-32020] containing 4 registers
sun2000-modbus.0 2024-03-11 07:01:00.592 debug Fetch data for 5 blocks
sun2000-modbus.0 2024-03-11 07:01:00.571 debug Created alarm json from '000000000000000000000000000000000000000000000000'
sun2000-modbus.0 2024-03-11 07:01:00.075 debug Fetch data for block [37760-37767] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:59.773 debug Fetch data for block [37113-37115] containing 1 registers
sun2000-modbus.0 2024-03-11 07:00:58.932 debug Fetch data for block [32324-32328] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:58.118 debug Fetch data for block [32064-32082] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:57.185 debug Fetch data for block [32008-32011] containing 3 registers
sun2000-modbus.0 2024-03-11 07:00:57.185 debug Fetch data for 5 blocks
sun2000-modbus.0 2024-03-11 07:00:57.185 info Updated 17 registers in 5.503 sec, [HIGH]
sun2000-modbus.0 2024-03-11 07:00:57.148 debug Created alarm json from '000000000000000000000000000000000000000000000000'
sun2000-modbus.0 2024-03-11 07:00:56.338 debug Fetch data for block [37760-37767] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:55.238 debug Fetch data for block [37113-37115] containing 1 registers
sun2000-modbus.0 2024-03-11 07:00:53.665 debug Fetch data for block [32324-32328] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:52.443 debug Fetch data for block [32064-32082] containing 2 registers
sun2000-modbus.0 2024-03-11 07:00:51.682 debug Fetch data for block [32008-32011] containing 3 registers
sun2000-modbus.0 2024-03-11 07:00:51.682 debug Fetch data for 5 blocks
sun2000-modbus.0 2024-03-11 07:00:51.681 info Start fetching data from inverter
sun2000-modbus.0 2024-03-11 07:00:51.681 info Scheduler intervals lcm 120
sun2000-modbus.0 2024-03-11 07:00:51.680 info Create states
sun2000-modbus.0 2024-03-11 07:00:51.680 debug [37762-37788]
sun2000-modbus.0 2024-03-11 07:00:51.680 debug [37100-37123]
sun2000-modbus.0 2024-03-11 07:00:51.680 debug [37015-37023]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [32078-32120]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [32016-32020]
sun2000-modbus.0 2024-03-11 07:00:51.679 info Calculated 5 fetch blocks for LOW interval registers
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [37760-37767]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [37113-37115]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [32324-32328]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [32064-32082]
sun2000-modbus.0 2024-03-11 07:00:51.679 debug [32008-32011]
sun2000-modbus.0 2024-03-11 07:00:51.679 info Calculated 5 fetch blocks for HIGH interval registers
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added 4 states
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added state 'PV2Voltage' and 'PV2Current', register [32018]
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added state 'PV1Voltage' and 'PV1Current', register [32016]
sun2000-modbus.0 2024-03-11 07:00:51.678 info Running PVStrings post init hook with 2 PV strings
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added 2 states
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added state 'mppt2power', register [32326]
sun2000-modbus.0 2024-03-11 07:00:51.678 info Dynamically added state 'mppt1power', register [32324]
sun2000-modbus.0 2024-03-11 07:00:51.677 info Running MPPT post init hook with 2 MPPTrackers
sun2000-modbus.0 2024-03-11 07:00:49.331 debug Fetch data for block [30000-30075] containing 6 registers
sun2000-modbus.0 2024-03-11 07:00:49.331 debug Fetch data for 1 blocks
sun2000-modbus.0 2024-03-11 07:00:49.331 info Update initial states
sun2000-modbus.0 2024-03-11 07:00:49.315 debug [30000-30075]
sun2000-modbus.0 2024-03-11 07:00:49.314 info Calculated 1 fetch blocks for INITIAL registers
sun2000-modbus.0 2024-03-11 07:00:49.298 info starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.sun2000-modbus, node: v18.17.0, js-controller: 5.0.19
sun2000-modbus.0 2024-03-11 07:00:49.131 debug Plugin sentry Initialize Plugin (enabled=true)
sun2000-modbus.0 2024-03-11 07:00:49.118 debug States connected to redis: 127.0.0.1:6379
sun2000-modbus.0 2024-03-11 07:00:49.115 debug States create User PubSub Client
sun2000-modbus.0 2024-03-11 07:00:49.114 debug States create System PubSub Client
sun2000-modbus.0 2024-03-11 07:00:49.112 debug Redis States: Use Redis connection: 127.0.0.1:6379
sun2000-modbus.0 2024-03-11 07:00:49.088 debug Objects connected to redis: 127.0.0.1:9001
sun2000-modbus.0 2024-03-11 07:00:49.086 debug Objects client initialize lua scripts
sun2000-modbus.0 2024-03-11 07:00:49.052 debug Objects create User PubSub Client
sun2000-modbus.0 2024-03-11 07:00:49.051 debug Objects create System PubSub Client
sun2000-modbus.0 2024-03-11 07:00:49.050 debug Objects client ready ... initialize now
sun2000-modbus.0 2024-03-11 07:00:49.027 debug Redis Objects: Use Redis connection: 127.0.0.1:9001
sun2000-modbus.0 2024-03-11 07:00:31.470 info terminating
sun2000-modbus.0 2024-03-11 07:00:30.969 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
sun2000-modbus.0 2024-03-11 07:00:30.968 info terminating
sun2000-modbus.0 2024-03-11 07:00:30.967 info Got terminate signal TERMINATE_YOURSELF

`

@daolis
Copy link
Owner

daolis commented Mar 11, 2024

Es gab einen kleinen Bug mit dem connected flag. Der adapter hat die daten gelesen, hat aber das flag nicht richtig gesetzt.

Welche Flags wurden denn nicht upgedated?
totalPowerUse hat nicht funktioniert, sollte jetzt aber wieder funktionieren.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants