Skip to content

Commit

Permalink
support renogy pro battery
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrils committed Nov 20, 2024
1 parent dfb7e8d commit 458603d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ If you want to monitor real-time data, turn on polling in `config.ini` for conti
| Renogy DC-DC Charger DCC50S | BT-2 ||
| Renogy Battery RBT100LFP12S / RBT50LFP48S | BT-2 ||
| Renogy Battery RBT100LFP12-BT / RBT200LFP12-BT (Built-in BLE)| - ||
| Renogy Battery RBT12100LFP-BT (Pro Series) | - | [](https://github.com/cyrils/renogy-bt/issues/80) |
| Renogy Battery RBT12100LFP-BT / RBT12200LFP-BT (Pro Series) | - | |
| Renogy Inverter RIV4835CSH1S*| BT-2 | 🚧 |
| Renogy Smart Shunt | - ||
| SRNE ML24/ML48 Series | BT-1 ||
Expand Down
3 changes: 2 additions & 1 deletion renogybt/BaseClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Section example: {'register': 5000, 'words': 8, 'parser': self.parser_func}

ALIAS_PREFIX = 'BT-TH'
ALIAS_PREFIX_PRO = 'RNGRBP'
NOTIFY_CHAR_UUID = "0000fff1-0000-1000-8000-00805f9b34fb"
WRITE_CHAR_UUID = "0000ffd1-0000-1000-8000-00805f9b34fb"
READ_TIMEOUT = 30 # (seconds)
Expand All @@ -35,7 +36,7 @@ def connect(self):
if not self.manager.device_found:
logging.error(f"Device not found: {self.config['device']['alias']} => {self.config['device']['mac_addr']}, please check the details provided.")
for dev in self.manager.devices():
if dev.alias() != None and dev.alias().startswith(ALIAS_PREFIX):
if dev.alias() != None and (dev.alias().startswith(ALIAS_PREFIX) or dev.alias().startswith(ALIAS_PREFIX_PRO)):
logging.debug(f"Possible device found! ======> {dev.alias()} > [{dev.mac_address}]")
self.__stop_service()

Expand Down

0 comments on commit 458603d

Please sign in to comment.