Skip to content

Fix recorder crash and noisy logs for Victron integration#424

Open
gronke wants to merge 1 commit intosfstar:mainfrom
gronke:fix/vebus-microgrid-entitytype-and-uint16max-sentinel
Open

Fix recorder crash and noisy logs for Victron integration#424
gronke wants to merge 1 commit intosfstar:mainfrom
gronke:fix/vebus-microgrid-entitytype-and-uint16max-sentinel

Conversation

@gronke
Copy link

@gronke gronke commented Mar 8, 2026

Summary

  • Fix TextReadEntityType being passed as positional unit argument instead of entityType keyword argument in vebus_microgrid_error RegisterInfo, which caused sqlite3 binding errors crashing the HA recorder and JSON serialization failures in the
    /api/states endpoint
  • Handle Modbus UINT16_MAX (65535) sentinel value ("not available") in enum-based sensors, returning None instead of logging errors for non-decodable values

Fix TextReadEntityType being passed as `unit` instead of `entityType` in
vebus_microgrid_error RegisterInfo, which caused sqlite3 binding errors
crashing the recorder and JSON serialization failures in the API.

Also handle UINT16_MAX (65535) sentinel value in enum-based sensors to
avoid error logs when Modbus registers report "not available".
@GeertFolkertsma
Copy link

the fix works for me

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

Successfully merging this pull request may close these issues.

2 participants