Renogy-BT2
Hi Jan. The answer is a very confident maybe?
I support Renogy Rover Clients so that's worth a try.
Here's what you need to do. (Note: There's no reliable and fast way to identify a Renogy device so I leave that up to the user.)
In the plugin, turn debug on and set the "scan for new devices" parameter to 20 seconds or so. Wait until the BT-2 device shows up in the device dropdown. Select it. Under "class" select "Renogy Rover Client." Submit. Refresh the plugin page. You will eventually see the paths for the device. If not, refresh until you do.
If the connection fails, you'll get an error in the server log. To test the parsing, you'll have to set up SK paths.
If there's a problem, let me know on github. Worst case, if neither connection nor parsing are working I can, assuming you can get me ssh access to your command line, check out the data the device is producing and if necessary and possible, develop a new device class or modify an existing one.
The bad news is the Renogy developers haven't been cooperative on BT-2 enabled protocols. They point us to their OpenAPI which requires a WiFi device that connects by wire to their other devices. https://www.renogy.com/renogy-one-core-g3-version/ The good news is that the Renogy developers use the same protocol for their wired connections as their wireless ones.
The bad news is the Renogy developers haven't been cooperative on BT-2 enabled protocols. They point us to their OpenAPI which requires a WiFi device that connects by wire to their other devices. https://www.renogy.com/renogy-one-core-g3-version/ The good news is that the Renogy developers use the same protocol for their wired connections as their wireless ones.
29 Replies
It looks it doesn't work for me. Will try first this python code: https://github.com/ard00d/renogy-bt2-ha-ble/blob/main/bt2.py if that works I'll try to give you more data / info for getting code up and running with your plugin. Thanks!
Did you get a connection error or strange data?
Got connection timeout
But my CM4 can see the device:
Device C4:D3:6A:5F:31:D6 BT-TH-6A5F31D6
From a command line for whatever device is running SK and my plugin (the CM4?), execute
bluetoothctl connect C4:D3:6A:5F:31:D6
And let me know what happens.
Also, send the relevant pieces of the error log, please.
hcitool con gives me existing connection
Connections:
< LE C4:D3:6A:5F:31:D6 handle 64 state 1 lm MASTER
bluetoothctl connect C4:D3:6A:5F:31:D6 gives:
Attempting to connect to C4:D3:6A:5F:31:D6
[CHG] Device C4:D3:6A:5F:31:D6 Connected: yes
Failed to connect: org.bluez.Error.Failed
Please execute bluetoothctl (no params) and tell me what the prompt looks like.
Agent registered [CHG] Controller E4:5F:01:E3:8F:E4 Pairable: yes
try: info C4:D3:6A:5F:31:D6
Device C4:D3:6A:5F:31:D6 not available
interesting
try "scan on" first
ok
Discovery started
[CHG] Controller E4:5F:01:E3:8F:E4 Discovering: yes
[NEW] Device C4:D3:6A:5F:31:D6 BT-TH-6A5F31D6
yep, now it's there 🙂
now: connect C4:D3:6A:5F:31:D6
[bluetooth]# info C4:D3:6A:5F:31:D6
Device C4:D3:6A:5F:31:D6 (public) Name: BT-TH-6A5F31D6 Alias: BT-TH-6A5F31D6 Paired: no Trusted: no Blocked: no Connected: no LegacyPairing: no UUID: Unknown (0000ffd0-0000-1000-8000-00805f9b34fb) ManufacturerData Key: 0xd3c4 ManufacturerData Value: 6a 5f 31 d6 j_1. RSSI: -50[bluetooth]# connect C4:D3:6A:5F:31:D6
Attempting to connect to C4:D3:6A:5F:31:D6 [CHG] Device C4:D3:6A:5F:31:D6 Connected: yes Failed to connect: org.bluez.Error.Failed [CHG] Device C4:D3:6A:5F:31:D6 Connected: noLooks like some issue creating connection with the device
the device is a BT-TH2 or 1?
BT-TH2
try: pair C4:D3:6A:5F:31:D6
[bluetooth]# pair C4:D3:6A:5F:31:D6
Attempting to pair with C4:D3:6A:5F:31:D6 [CHG] Device C4:D3:6A:5F:31:D6 Connected: yes Failed to pair: org.bluez.Error.ConnectionAttemptFailed [CHG] Device C4:D3:6A:5F:31:D6 Connected: no
well, crap.
this is the CM4?
yes
can I get command line access to your server?
well, let me see 🙂
Also do you have a RPI 4b or 5?
Yes
I do have Rpi4 around with Openplotter setup
See if you can connect from the command line on the RPI4
okay
Wait. Is the renogy app up and running on your phone?
Nope 🙂
I'm away from my boat, playing with the boat remotely 🙂
Nothing is already connected to the Renogy device then?
No
So it's working! The issue was with CM4 (will investigate on my own), but we've got it working on Rpi4 that I had. Thank you again for your help!