Skip to content

Commit

Permalink
More updates to the /config endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Sep 10, 2021
1 parent a77f945 commit 0666930
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 75 deletions.
2 changes: 2 additions & 0 deletions api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ paths:
responses:
'200':
$ref: '#/components/responses/UpdateSuccessful'
'400':
$ref: '#/components/responses/BadRequest'
requestBody:
content:
application/json:
Expand Down
156 changes: 81 additions & 75 deletions models/Config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,81 @@ x-examples:
ocpp_energize_plug: true
mqtt_protocol: mqtt
charge_mode: fast
examples:
- firmware: D7.1.2
protocol: '-'
espflash: 4194304
espinfo: ESP32r1 2 core WiFi BLE BT
buildenv: openevse_esp-wrover-kit
version: 4.1.0.dev
diodet: 0
gfcit: 0
groundt: 1
relayt: 0
ventt: 0
tempt: 1
service: 0
scale: 220
offset: 0
mqtt_supported_protocols:
- mqtt
- mqtts
http_supported_protocols:
- http
- https
ssid: wibble_ext
pass: _DUMMY_PASSWORD
www_username: ''
www_password: ''
hostname: openevse-a7d4
sntp_hostname: pool.ntp.org
time_zone: 'Europe/London|GMT0BST,M3.5.0/1,M10.5.0'
emoncms_server: 'https://emoncms.org'
emoncms_node: openevse-a7d4
emoncms_apikey: _DUMMY_PASSWORD
emoncms_fingerprint: ''
mqtt_server: homeassistant.lan
mqtt_port: 1883
mqtt_topic: openevse
mqtt_user: emonpi
mqtt_pass: _DUMMY_PASSWORD
mqtt_solar: ''
mqtt_grid_ie: emon/test/grid_ie
mqtt_vrms: emon/rightbar/voltage
mqtt_vehicle_soc: ''
mqtt_vehicle_range: ''
mqtt_vehicle_eta: ''
mqtt_announce_topic: openevse/announce/a7d4
ocpp_server: ''
ocpp_chargeBoxId: ''
ocpp_idTag: ''
tx_start_point: tx_pending
ohm: ''
divert_PV_ratio: 1.1
divert_attack_smoothing_factor: 0.4
divert_decay_smoothing_factor: 0.05
divert_min_charge_time: 10
tesla_access_token: _DUMMY_PASSWORD
tesla_refresh_token: _DUMMY_PASSWORD
tesla_created_at: 2479357952
tesla_expires_in: 3888000
tesla_vehicle_id: '142960157278'
led_brightness: 51
flags: 115467
emoncms_enabled: true
mqtt_enabled: true
mqtt_reject_unauthorized: true
ohm_enabled: false
sntp_enabled: true
tesla_enabled: true
divert_enabled: true
pause_uses_disabled: false
mqtt_vehicle_range_miles: false
ocpp_enabled: true
ocpp_suspend_evse: true
ocpp_energize_plug: true
mqtt_protocol: mqtt
charge_mode: fast
properties:
firmware:
type: string
Expand Down Expand Up @@ -132,12 +207,18 @@ properties:
uniqueItems: true
items:
type: string
enum:
- mqtt
- mqtts
readOnly: true
http_supported_protocols:
type: array
uniqueItems: true
items:
type: string
enum:
- http
- https
readOnly: true
ssid:
type: string
Expand Down Expand Up @@ -266,78 +347,3 @@ properties:
charge_mode:
type: string
minLength: 1
examples:
- firmware: D7.1.2
protocol: '-'
espflash: 4194304
espinfo: ESP32r1 2 core WiFi BLE BT
buildenv: openevse_esp-wrover-kit
version: 4.1.0.dev
diodet: 0
gfcit: 0
groundt: 1
relayt: 0
ventt: 0
tempt: 1
service: 0
scale: 220
offset: 0
mqtt_supported_protocols:
- mqtt
- mqtts
http_supported_protocols:
- http
- https
ssid: wibble_ext
pass: _DUMMY_PASSWORD
www_username: ''
www_password: ''
hostname: openevse-a7d4
sntp_hostname: pool.ntp.org
time_zone: 'Europe/London|GMT0BST,M3.5.0/1,M10.5.0'
emoncms_server: 'https://emoncms.org'
emoncms_node: openevse-a7d4
emoncms_apikey: _DUMMY_PASSWORD
emoncms_fingerprint: ''
mqtt_server: homeassistant.lan
mqtt_port: 1883
mqtt_topic: openevse
mqtt_user: emonpi
mqtt_pass: _DUMMY_PASSWORD
mqtt_solar: ''
mqtt_grid_ie: emon/test/grid_ie
mqtt_vrms: emon/rightbar/voltage
mqtt_vehicle_soc: ''
mqtt_vehicle_range: ''
mqtt_vehicle_eta: ''
mqtt_announce_topic: openevse/announce/a7d4
ocpp_server: ''
ocpp_chargeBoxId: ''
ocpp_idTag: ''
tx_start_point: tx_pending
ohm: ''
divert_PV_ratio: 1.1
divert_attack_smoothing_factor: 0.4
divert_decay_smoothing_factor: 0.05
divert_min_charge_time: 10
tesla_access_token: _DUMMY_PASSWORD
tesla_refresh_token: _DUMMY_PASSWORD
tesla_created_at: 2479357952
tesla_expires_in: 3888000
tesla_vehicle_id: '142960157278'
led_brightness: 51
flags: 115467
emoncms_enabled: true
mqtt_enabled: true
mqtt_reject_unauthorized: true
ohm_enabled: false
sntp_enabled: true
tesla_enabled: true
divert_enabled: true
pause_uses_disabled: false
mqtt_vehicle_range_miles: false
ocpp_enabled: true
ocpp_suspend_evse: true
ocpp_energize_plug: true
mqtt_protocol: mqtt
charge_mode: fast

0 comments on commit 0666930

Please sign in to comment.