Skip to content

feature: Track bitflags - #3

Merged
PeterGrace merged 2 commits into
mainfrom
track_bitflags
Dec 11, 2025
Merged

PeterGrace merged 2 commits into
mainfrom
track_bitflags

Conversation

@PeterGrace

Copy link
Copy Markdown
Owner

This PR implements a new table in the state database that keeps track of bitfield states. In the current version of the gateway, we only report "on" when we get a state object. The net effect of this in home assistant is that there's constantly "Unknown" or "Unavailable" items in the lists of flags.

With the code in this PR, we will keep track intelligently by serial-modelid-point to see what values have previously been reported and will send "off" values if they are not reported as "on" by the modbus response.

@PeterGrace
PeterGrace merged commit 1e1d0f3 into main Dec 11, 2025
1 check passed
@PeterGrace
PeterGrace deleted the track_bitflags branch December 11, 2025 16:45
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.

1 participant