I've got a Smart Shunt hooked to an RPi running VenusOS 3.31. I'm working setting up mqtt, but I don't know where to find the list of mqtt topics available.
In python, using the paho.mqtt.client, I've got this code:
while True:
my_comms.mqtt_client.publish("R/%s/keepalive" % unit_ID)
time.sleep(2)
my_comms.mqtt_client.subscribe("#", qos=2)
This is what I'm getting:
router1_/home/crichmon/python> lib/victron_mqtt.py
victron_mqtt INFO Main of victron_mqtt
hostname: router1
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/system/0/Serial : b'{"value":"b827ebbc2c00"}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/system/0/Timers/TimeOff : b'{"value":343900}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/heartbeat : b'{"value":1717355223}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/heartbeat : b'{"value":1717355226}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/heartbeat : b'{"value":1717355229}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/heartbeat : b'{"value":1717355232}'
victron_mqtt INFO mqtt_message: N/b827ebbc2c00/system/0/Timers/TimeOff : b'{"value":343910}'
etc.
I saw in one post about providing a list of topics to pass with the keepalive message, but again, no idea what to put in the list for the Smart Shunt, or any of the other Victron products. I'll also be getting an mppt charge controller and an inverter at some point.
Thx, Chris