Good to hear from you boopzz.
So I have spent the past two days working ansible and microk8s on my rpi4 and made some good progress. I have your python script working on my rpi with eclipse mosquitto running as a container in a microk8s single node cluster.
I'm gonna be really pissed off if Renogy keeps denying requests for the smart LiFePO4 battery modbus mappings.
I have the following complete:
Automated standup of rpi4 based on raspi-imager Ubuntu 20 64-bit image with:
- customization of the rpi using cloud-init (network, passwords, ssh config, etc..)
- ansible scripts which:
- Install microk8s and necessary addons
- programatically configure microk8s for the rpi environment
- install containerized eclipse-mosquitto into microk8s and expose via IP on local LAN
I had to go drop my truck off to have new sway bar end links, ball joints, etc... installed but it should be back in a couple of days and I'll have access to my rpi again.
Until then, I'll work on:
- integration of containerized telegraf, influxdb, and grafana pods in microk8s via ansible
- general massaging of scripts so that user only has one file to edit in the raspi-imager image for IP/network info, passwords, etc... before turning on the rpi4
A few opportunities I see:
-
@T6Jay , can you send the excel file for the dcc50s modbus mappings directly to me? I am having a hard time seeing some of the hex and don't really want to guess.
-
@T6Jay , you mention if you have the smart lithium display you can reverse engineer the modbus mappings for the smart lithium battery. I have it (
@boopzz , this is the "RMS-LFPS"). Educate me please! I used mbpoll before I took my truck down and that would seem like a decent way to do it, but how do we map the registers returned from a poller like that into accurate data without the modbus mappings from Renogy? It seems like a guess on alot of data coming from an expensive battery (again why I'm upset with Renogy - spend thousands on their products and they hamstring you).
-
@boopzz , let's work on finishing out the main.py with all of the registers listed in the spreadsheet that T6Jay provided. Theres a bunch of opportunity to add mappings to human-readable data (i.e., battery type 4=LiFePO4, etc....) from values that are returned
Ok I gotta go back to work but thanks for responding
@boopzz and thanks in advance
@T6Jay for your help!