Add FridgePower support - #76
Open
madsciencetist wants to merge 2 commits into
Open
Conversation
Registers appear to match those of the AC70, with two exception for
which I added
support:
1. TIME_REMAINING is in decimal-hours rather than minutes
2. AC_INPUT_POWER and AC_INPUT_CURRENT are signed, and are negative
when current
is flowing into the device
The FP uses the V2 encrypted BLE protocol.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HQuDJtFFignH5k3k3xgqPj
Previously, device_recognizer made two separate BLE connections: one for the device type registers and one for the serial number registers. The second connection was failing for the FP (returning None), causing it to fall back to the dummy SN "000000000000". Combine type + SN into a single read() call so both are fetched in one connection. Also simplifies the fallback logic since there's no longer a second read to fail independently. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HQuDJtFFignH5k3k3xgqPj
madsciencetist
force-pushed
the
add_fridgepower
branch
from
July 13, 2026 12:17
e13843c to
26c9dfa
Compare
|
hello! what is needed for this PR? I am willing to help. I have a fork too main...reply-nick:bluetti-bt-lib:rn/addFridgePower |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for new product "FridgePower", device type
FP.Registers appear to match those of the AC70, with two exception for which I added support:
TIME_REMAININGis in decimal-hours rather than minutes.AC_INPUT_POWERandAC_INPUT_CURRENTare signed, and are negative when currentis flowing into the device.
Also grab both the device type and serial number in the same BLE connection to prevent it being read as
FP000000000000(the# Should never happenhas happened)