Start a new topic

RAPI response

Hi,


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.


##### GT


16/07/2019, 15:15:18node: 489eb2ce.9bd34copenevse/rapi/in/$GT : msg : Object

object

_msgid"1539810e.7f8ccf"

topic"openevse/rapi/in/$GT"

payload""

 

16/07/2019, 15:15:18node: f1b4e1f8.366d3openevse/rapi/out : msg : Object

object

topic"openevse/rapi/out"

payload"$OK 19 7 16 15 15 18^11"

qos1

retainfalse

_topic"openevse/rapi/out"

_msgid"5cff2b32.18ba94" ####### GE 

 

16/07/2019, 15:15:48node: 489eb2ce.9bd34copenevse/rapi/in/$GE : msg : Object

object

_msgid"32a55d2f.d97302"

topic"openevse/rapi/in/$GE"

payload""

16/07/2019, 15:15:48node: f1b4e1f8.366d3openevse/rapi/out : msg : Object

object

topic"openevse/rapi/out"

payload"$OK 40 0001^25"

qos1

retainfalse

_topic"openevse/rapi/out"

_msgid"8b1f3434.6b6758"



Is there a way of passing an optional parameter?


Thanks in advance.


Tom


Yes, you can send a sequence ID which is echoed back in the response. MQTT Developers guide is attached.

pdf

I wonder if you could give me an example of the syntax as I can't seem to get it to work.


Thanks


Tom

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


ie

:55

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.

image

image



The payload should be blank and the MQTT topic the full command *BaseTopic*/rapi/in/$SC 12.

Login or Signup to post a comment