From 2089168c7beb99245ad8701d3ebf2aba4c9537d8 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Wed, 7 Aug 2024 09:39:59 +0200 Subject: [PATCH] Config UI: improve line comments for default yamls --- .../Config/defaultYaml/circuits.yaml | 36 +++++----- .../components/Config/defaultYaml/eebus.yaml | 24 +++---- .../components/Config/defaultYaml/hems.yaml | 8 +-- .../Config/defaultYaml/messaging.yaml | 68 +++++++++---------- .../Config/defaultYaml/modbusproxy.yaml | 18 ++--- .../Config/defaultYaml/tariffs.yaml | 20 +++--- 6 files changed, 87 insertions(+), 87 deletions(-) diff --git a/assets/js/components/Config/defaultYaml/circuits.yaml b/assets/js/components/Config/defaultYaml/circuits.yaml index 49fc696d4..37482e680 100644 --- a/assets/js/components/Config/defaultYaml/circuits.yaml +++ b/assets/js/components/Config/defaultYaml/circuits.yaml @@ -1,18 +1,18 @@ -# - name: main # unique name, used as reference, e.g. as parent in other circuits -# title: Main Circuit # used in the UI -# maxcurrent: 63 # 63A main circuit breaker (optional) -# maxPower: 30000 # 30kW (optional) -# meter: grid # associated meter to monitor the power consumption (optional) -# parent: # no parent, this is the root circuit -# - name: garage # unique name, used as reference, e.g. to associate loadpoints -# title: Garage # used in the UI -# maxcurrent: 24 # allow individual phase use up to 24A -# maxPower: 11000 # limit total power to 11kW -# meter: garage # dedicated meter for the garage -# parent: main # parent to the main circuit -# - name: carport # unique name, used as reference, e.g. to associate loadpoints -# title: Carport # used in the UI -# maxCurrent: 32 # 32A circuit breaker -# maxPower: # no limit, only check current -# meter: # no meter, using data from loadpoints -# parent: main # parent to the main circuit +#- name: main # unique name, used as reference, e.g. as parent in other circuits +# title: Main Circuit # used in the UI +# maxcurrent: 63 # 63A main circuit breaker (optional) +# maxPower: 30000 # 30kW (optional) +# meter: grid # associated meter to monitor the power consumption (optional) +# parent: # no parent, this is the root circuit +#- name: garage # unique name, used as reference, e.g. to associate loadpoints +# title: Garage # used in the UI +# maxcurrent: 24 # allow individual phase use up to 24A +# maxPower: 11000 # limit total power to 11kW +# meter: garage # dedicated meter for the garage +# parent: main # parent to the main circuit +#- name: carport # unique name, used as reference, e.g. to associate loadpoints +# title: Carport # used in the UI +# maxCurrent: 32 # 32A circuit breaker +# maxPower: # no limit, only check current +# meter: # no meter, using data from loadpoints +# parent: main # parent to the main circuit diff --git a/assets/js/components/Config/defaultYaml/eebus.yaml b/assets/js/components/Config/defaultYaml/eebus.yaml index 15a5ca0fc..73a0d5ded 100644 --- a/assets/js/components/Config/defaultYaml/eebus.yaml +++ b/assets/js/components/Config/defaultYaml/eebus.yaml @@ -1,12 +1,12 @@ -# shipid: EVCC-1234567890abcdef -# interfaces: -# - eth0 -# certificate: -# public: | -# -----BEGIN CERTIFICATE----- -# 1234567890abcdef== -# -----END CERTIFICATE----- -# private: | -# -----BEGIN EC PRIVATE KEY----- -# 1234567890abcdef -# -----END EC PRIVATE KEY----- +#shipid: EVCC-1234567890abcdef +#interfaces: +# - eth0 +#certificate: +# public: | +# -----BEGIN CERTIFICATE----- +# 1234567890abcdef== +# -----END CERTIFICATE----- +# private: | +# -----BEGIN EC PRIVATE KEY----- +# 1234567890abcdef +# -----END EC PRIVATE KEY----- diff --git a/assets/js/components/Config/defaultYaml/hems.yaml b/assets/js/components/Config/defaultYaml/hems.yaml index 73b62122b..cf42b3229 100644 --- a/assets/js/components/Config/defaultYaml/hems.yaml +++ b/assets/js/components/Config/defaultYaml/hems.yaml @@ -1,4 +1,4 @@ -# type: sma -# allowcontrol: false -# vendorid: AAAAAAAA -# deviceid: BBBBBBBB +#type: sma +#allowcontrol: false +#vendorid: AAAAAAAA +#deviceid: BBBBBBBB diff --git a/assets/js/components/Config/defaultYaml/messaging.yaml b/assets/js/components/Config/defaultYaml/messaging.yaml index 5f75ed8ac..989427ff0 100644 --- a/assets/js/components/Config/defaultYaml/messaging.yaml +++ b/assets/js/components/Config/defaultYaml/messaging.yaml @@ -1,35 +1,35 @@ -# events: -# start: -# title: Charge started -# msg: Started charging in "${mode}" mode -# stop: -# title: Charge finished -# msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}. -# connect: -# title: Car connected -# msg: "Car connected at ${pvPower:%.1fk}kW PV" -# disconnect: -# title: Car disconnected -# msg: Car disconnected after ${connectedDuration} -# soc: -# title: Soc updated -# msg: Battery charged to ${vehicleSoc:%.0f}% -# guest: -# title: Unknown vehicle -# msg: Unknown vehicle, guest connected? +#events: +# start: +# title: Charge started +# msg: Started charging in "${mode}" mode +# stop: +# title: Charge finished +# msg: Finished charging ${chargedEnergy:%.1fk}kWh in ${chargeDuration}. +# connect: +# title: Car connected +# msg: "Car connected at ${pvPower:%.1fk}kW PV" +# disconnect: +# title: Car disconnected +# msg: Car disconnected after ${connectedDuration} +# soc: +# title: Soc updated +# msg: Battery charged to ${vehicleSoc:%.0f}% +# guest: +# title: Unknown vehicle +# msg: Unknown vehicle, guest connected? -# services: -# - type: pushover -# app: # app id -# recipients: -# - # list of recipient ids -# - type: telegram -# token: # bot id -# chats: -# - # list of chat ids -# - type: email -# uri: smtp://:@:/?fromAddress=&toAddresses= -# - type: ntfy -# uri: https:/// -# priority: -# tags: +#services: +#- type: pushover +# app: # app id +# recipients: +# - # list of recipient ids +#- type: telegram +# token: # bot id +# chats: +# - # list of chat ids +#- type: email +# uri: smtp://:@:/?fromAddress=&toAddresses= +#- type: ntfy +# uri: https:/// +# priority: +# tags: diff --git a/assets/js/components/Config/defaultYaml/modbusproxy.yaml b/assets/js/components/Config/defaultYaml/modbusproxy.yaml index 529089ae2..817f790ee 100644 --- a/assets/js/components/Config/defaultYaml/modbusproxy.yaml +++ b/assets/js/components/Config/defaultYaml/modbusproxy.yaml @@ -1,9 +1,9 @@ -# - port: 5021 -# uri: 192.0.2.2:502 -# - port: 5022 -# device: /dev/ttyUSB0 -# baudrate: 9600 -# comset: "8N1" -# - port: 5023 -# uri: 192.0.2.3:502 -# rtu: true +#- port: 5021 +# uri: 192.0.2.2:502 +#- port: 5022 +# device: /dev/ttyUSB0 +# baudrate: 9600 +# comset: "8N1" +#- port: 5023 +# uri: 192.0.2.3:502 +# rtu: true diff --git a/assets/js/components/Config/defaultYaml/tariffs.yaml b/assets/js/components/Config/defaultYaml/tariffs.yaml index 1f31229f1..f7e9e913a 100644 --- a/assets/js/components/Config/defaultYaml/tariffs.yaml +++ b/assets/js/components/Config/defaultYaml/tariffs.yaml @@ -1,13 +1,13 @@ -# currency: EUR +#currency: EUR -# grid: # price using energy from the grid -# type: fixed -# price: 0.294 # EUR/kWh +#grid: # price using energy from the grid +# type: fixed +# price: 0.294 # EUR/kWh -# feedin: # price for feeding solar energy to the grid -# type: fixed -# price: 0.08 # EUR/kWh +#feedin: # price for feeding solar energy to the grid +# type: fixed +# price: 0.08 # EUR/kWh -# co2: # carbon intensity forecast data -# type: grünstromindex -# zip: +#co2: # carbon intensity forecast data +# type: grünstromindex +# zip: