Is there any way to run the MQTT keep alive on the CCGX itself, I can't find mosquitto_do on the CCGX to do?:
while :; do mosquitto_pub -m '' -t 'R/e0ff50a097c0/system/0/Serial'; sleep 5; done
This site is now in read-only archive mode. Please move all discussion, and create a new account at the new Victron Community site.
Is there any way to run the MQTT keep alive on the CCGX itself, I can't find mosquitto_do on the CCGX to do?:
while :; do mosquitto_pub -m '' -t 'R/e0ff50a097c0/system/0/Serial'; sleep 5; done
Would you mind sharing how you got the Hubitat to talk to the Color Control? I'm trying to figure out the same set up right now for my RV.
Hi, did you figure out a way to keep the broker alive? (I have the same issue and need to keep the broker alive).
(Separately, I note that the remote VRM console manages to get continual updates, and so is somehow keeping the broker alive...)
Thanks for any help,
Cliff
Hi Elvis,
rather than a bash script you could make a small Python script to do that?
or use mosquitto-pub ? (my experience with mqtt is limited).
and you could check the available opkg-es to see if mosquitto is available to be installed (I’m not near a gx device myself now, so havent checked).
If you can install mosquitto_pub you can run it, sure. However, you're only running this if you have an external consumer, and I found it easier to set up the polling (also via mosquitto_pub) on the other machine instead.
Making changes to Venus OS that survive updates is something I didn't want to use precious mental space learning.
I've got an external consumer but it's limited, it seems, in being able to send the keep-alive (it's a Hubitat Home Automation hub) hence wanting to eliminate the 3rd piece of kit (that also needs to be powered of course and is an additional point of failure) just to send a keep-alive.
I was also hoping that mosquitto_pub may have been installed somewhere on the CCGX (or another mechanism to send the keep-alive/eliminate it as needed) to avoid having to work out how to let it survive an update as well! ;-)
20 People are following this question.