cyrils / renogy-bt

Python library to read Renogy compatible BT-1 or BT-2 bluetooth modules using Raspberry Pi.
GNU General Public License v3.0
76 stars 27 forks source link

Writing to BT1 #69

Closed jbonja closed 1 week ago

jbonja commented 1 month ago

I have the system running on my RPI4 and its tied into Node Red. Ultimate goal is a "wireless" weather station for my dad. BTW Thanks for this.

Looking to see if anyone has worked with the code to specifically control the load power? I want to sense the battery level, send a last gasp email to me before it goes down and then shut down PI and power before I drain bat to zero.

I see the modbus document talks about it but didn't see any specific write functions in the code.

cyrils commented 1 month ago

Load control is already supported. Check RoverClient.set_load(). Be careful not to go into a calback loop, as even the write operation will trigger on_data_received.