Community
OpenEnergyMonitor

Community

Doubt on "RAPI over MQTT" procedure

(Francesc Vilches) #1

Hi:

I have just bought and OpenEVSE kit with wifi. The idea is to integrate it with my Raspberry control program increasing and lowering the Amps based on Solar income.

I am using a Raspberry where I have installed mosquitto and I have already setup a broker. As a proof of concept, I am trying to set current to 13A, but I am not succeeding.

I am typing this for testing it:

$ sudo mosquitto_pub -h 192.168.1.15 -p 1883 -u rpi -P reg43d2 -t openevse/rapi/in/$SC -m “13”

In the OpenEVSE web interface…everything look ok. It says connected.

I do not have any problem in:

  • Using the RAPI via web interface
  • Using the RAPI over http.

Just problems with “RAPI over MQTT”.

Do you see something obvious that i am missing?
Best regards,

Francesc.

P.S: I am able to send other “useless” messages that work. for instance:
$ sudo mosquitto_pub -h 192.168.1.15 -p 1883 -u rpi -P reg43d2 -t openevse/amp -m “13”

0 Likes

(Francesc Vilches) #2

Ok…just answering myself. The topic needs to go between ’ ’

$ sudo mosquitto_pub -h 192.168.1.15 -p 1883 -u rpi -P reg43d2 -t ‘openevse/rapi/in/$SC’ -m “13”

Regards,
Francesc.

0 Likes