You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MQTT and MQTTS (secure) connections are supported for status and control.
4
4
@@ -20,46 +20,45 @@ When the device disconnects from MQTT the same message is posted with `state":"d
20
20
21
21
All subsequent MQTT status updates will by default be be posted to `openevse-xxxx` where `xxxx` is the last 4 characters of the device ID. This base-topic can be changed via the MQTT service page.
22
22
23
-
####OpenEVSE Status via MQTT
23
+
## OpenEVSE Status via MQTT
24
24
25
25
OpenEVSE can post its status values (e.g. amp, wh, temp1, temp2, temp3, pilot, status) to an MQTT server. Data will be published as a sub-topic of base topic, e.g `<base-topic>/amp`. Data is published to MQTT every 30s.
26
26
27
27
**The default `<base-topic>` is `openevse-xxxx` where `xxxx` is the last 4 characters of the device ID**
28
28
29
29
Claims & manual override are read accessible here:
30
-
`<base-topic>/override/` : get manual override ([json data], {"state": "null"} when there's no override)
31
-
`<base-topic>/override/set <json data>` : set/update manual override (data as refered from API : https://openevse.stoplight.io/docs/openevse-wifi-v4/e0ab0a4ad5e1e-set-the-manual-override )
30
+
`<base-topic>/override/` : get manual override ([json data], `{"state": "null"}` when there's no override)
31
+
`<base-topic>/override/set <json data>`: set/update manual override (data as refered from API : <https://openevse.stoplight.io/docs/openevse-wifi-v4/e0ab0a4ad5e1e-set-the-manual-override>)
`<base-topic>/claim/` : get mqtt service claim ([json data], {"state": "null"} when there's no claim )
36
-
`<base-topic>/claim/set <json data>` : set/update claim from MQTT service. Has same priority as HTTP service. (data as refered from API : https://openevse.stoplight.io/docs/openevse-wifi-v4/ebc578ffa7ca7-make-update-an-evse-claim )
35
+
`<base-topic>/claim/` : get mqtt service claim ([json data], `{"state": "null"}` when there's no claim)
36
+
`<base-topic>/claim/set <json data>` : set/update claim from MQTT service. Has same priority as HTTP service. (data as refered from API : <https://openevse.stoplight.io/docs/openevse-wifi-v4/ebc578ffa7ca7-make-update-an-evse-claim>)
37
37
`<base-topic>/claim/set release` : release claim
38
38
39
-
Claim & override properties can be set independantly. Sending json with only some fields will update the current claim properties only.
39
+
Claim & override properties can be set independantly. Sending json with only some fields will update the current claim properties only.
40
40
To remove a selected claim/override property, just send "clear" as property parameter ( i.e. `<base-topic>/claim/set {"charge_current": "clear"}` )
41
41
42
42
Scheduler data:
43
-
`<base-topic>/schedule/`: get scheduler data ([json data]
44
-
`<base-topic>/schedule/set <json data>`: set/update schedules ( data as refered from API: https://openevse.stoplight.io/docs/openevse-wifi-v4/e87e6f3f90787-batch-update-schedule )
45
-
`<base-topic>/schedule/clear <id> :`remove related event
43
+
`<base-topic>/schedule/`: get scheduler data ([json data], `{"state": "null"}` when there's no shcedule)
44
+
`<base-topic>/schedule/set <json data>`: set/update schedules ( data as refered from API: <https://openevse.stoplight.io/docs/openevse-wifi-v4/e87e6f3f90787-batch-update-schedule>)
45
+
`<base-topic>/schedule/clear <id>` :remove related event
46
46
47
47
Limit:
48
-
`<base-topic>/limit/`: get limit data ([json data]
49
-
`<base-topic>/limit/set <json data>`: set/update limit ( data as refered from API:https://openevse.stoplight.io/docs/openevse-wifi-v4/c410fb5e48294-set-charge-limit)
50
-
`<base-topic>/limit/set clear`: clear current limit
48
+
`<base-topic>/limit/`: get limit data ([json data], `{"state": "null"}` when there's no limit)
49
+
`<base-topic>/limit/set <json data>`: set/update limit ( data as refered from API:<https://openevse.stoplight.io/docs/openevse-wifi-v4/c410fb5e48294-set-charge-limit>)
50
+
`<base-topic>/limit/set clear`: clear current limit
`<base-topic>/restart {"device": "gateway|evse"}` : restart the gateway or openevse module
57
57
58
58
Config:
59
59
60
-
`<base-topic>/config_version` : a volatile counter incremented for each config change
61
-
`<base-topic>/config` : expose the configuration as a json object
62
-
60
+
`<base-topic>/config_version` : a volatile counter incremented for each config change
61
+
`<base-topic>/config` : expose the configuration as a json object
63
62
64
63
MQTT setup is pre-populated with OpenEnergyMonitor [emonPi default MQTT server credentials](https://guide.openenergymonitor.org/technical/credentials/#mqtt).
65
64
@@ -69,3 +68,36 @@ MQTT setup is pre-populated with OpenEnergyMonitor [emonPi default MQTT server c
69
68
* After a few seconds `Connected: No` should change to `Connected: Yes` if connection is successful. Re-connection will be attempted every 10s. A refresh of the page may be needed.
70
69
71
70
*Note: `emon/xxxx` should be used as the base-topic if posting to emonPi MQTT server if you want the data to appear in emonPi Emoncms. See [emonPi MQTT docs](https://guide.openenergymonitor.org/technical/mqtt/).*
0 commit comments