question

santiago123otero avatar image
santiago123otero asked

mqtt.victronenergy.com

Hello so i have a Victron GCCX and i am tying to see the data in this website mqtt.victronenergy.com, i have already activate the mqtt in the ccgx but i can not acces to the website. please if you a clue what to do.

Thank you

MQTT
2 |3000

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

2 Answers
Ole Saether avatar image
Ole Saether answered ·

mqtt.victronenergy.com is the MQTT broker. Please read here for more information:

https://github.com/victronenergy/dbus-mqtt


Below is a small python script I made to turn Relay 1 on via MQTT. You might learn something from that.
https://gist.github.com/osaether/5ad837a7ad40a8ce98fced6a3504f5ad#file-mqtt-relayon-py

2 |3000

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

ozdw avatar image
ozdw answered ·

That was it. Node Red flow below for finding MQTT broker index.

[{"id":"8d6131b.c00625","type":"debug","z":"b22809a6.60c778","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":270,"y":180,"wires":[]},{"id":"1bd49478.3461f4","type":"function","z":"b22809a6.60c778","name":"Compute mqtt broker from vrm portal ID","func":"var a = msg.payload;\nvar xx = 0;\nfor (i = 0; i < a.length; i++) { \n    x = a.charCodeAt(i)\n    xx = xx + x;\n}\nvar idx = xx % 128;\nmsg.payload = idx;\nreturn msg;","outputs":1,"noerr":0,"x":200,"y":140,"wires":[["8d6131b.c00625"]]},{"id":"7c34ec9f.5f82cc","type":"inject","z":"b22809a6.60c778","name":"place VRM id in payload field, then inject","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":300,"y":80,"wires":[["1bd49478.3461f4"]]}]


2 |3000

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

Related Resources