question

Ole Saether avatar image
Ole Saether asked

Controlling relays with Modbus and MQTT

I have uploaded a few python scripts to control the relays on Venus GX and CCGX with Modbus and MQTT to github. Please check them out:
https://github.com/osaether/code-snippets/tree/master/victronenergy


CCGX Color ControlVenus GX - VGXRelay
3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Pat Davitt avatar image Pat Davitt commented ·

Think there is something wrong with the link. I click it and get a 404 error.

Pat

0 Likes 0 ·
Show more comments
2 Answers
Paul B avatar image
Paul B answered ·

The link Works fine

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

haavard avatar image
haavard answered ·

Hi! I have success using the MQTT to one of my installations, but not to my other! Is there any way to log what is happening or find out why it does not succeed?

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Ole Saether avatar image Ole Saether commented ·

Hi,

Please note that the MQTT broker varies between installations. Victron used to have one broker but have split them into several servers to reduce the load on each server.
So instead of using

mqtt.victronenergy.com

you need to use an address similar to this:

mqtt67.victronenergy.com

See the last section on this page on how to calculate the correct address for your system:
https://github.com/victronenergy/dbus-mqtt

Also, make sure you have MQTT enabled on the Venus device :-)

0 Likes 0 ·

Related Resources

CCGX Product Manual

CCGX Product page

Venus GX manual

Venus GX product page

Additional resources still need to be added for this topic