I'm trying to control my OpenEvse charger with NodeRed using MQTT.
All works fine excent i have no way of telling which rapi out message is being responded to.
ie if i send either
openevse/rapi/in/$GE or openevse/rapi/in/$GT
the responding topic is the same.
16/07/2019, 15:15:18node: 489eb2ce.9bd34copenevse/rapi/in/$GT : msg : Object
payload: "$OK 19 7 16 15 15 18^11"
_msgid: "5cff2b32.18ba94" ####### GE
payload: "$OK 40 0001^25"
Is there a way of passing an optional parameter?
Thanks in advance.
The payload should be blank and the MQTT topic the full command *BaseTopic*/rapi/in/$SC 12.
Apologies for resurrecting an old thread, but am in a similar spot and was hoping you might be able to help. I am using NodeRed to test MQTT commands, specifically am trying to alter the charge current using $SC
I tested in the web interface using $SC 12 which returned $OK and set the charging amps to 12. I tried publishing via MQTT Out to a topic *BaseTopic*/rapi/in/$SC and then injected a payload with a string 12
I tried injecting a number 12, and a couple other various things, but don't seem to be able to get the current to change via MQTT.
Answered my own question - For anyone trying to do this in NodeRed it's as simple as passing your id after a : in the payload
I wonder if you could give me an example of the syntax as I can't seem to get it to work.
Yes, you can send a sequence ID which is echoed back in the response. MQTT Developers guide is attached.