-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.yaml.sample
248 lines (202 loc) · 6.05 KB
/
config.yaml.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
---
# Replace with your own MQTT broker
mqttUrl: "mqtt://localhost:1883"
mqttOptions:
username:
password:
# meterModel can be kaifa, aidon or kamstrup
meterModel: kaifa
# Last seconds for hourly calculations
# The values are tested on kaifa and
# will probably work for aidon AMS meters
# Values may need adjustment for Kamstrup meters
amsLastMessage: "59:56"
# Tibber Pulse listening topic
topic: tibber
# ElWiz publishing topics
pubTopic: meter/ams
pubStatus: meter/status
pubNotice: meter/notice
# Publish options for list 1, 2, 3 & status
list1Retain: false
list1Qos: 0
list2Retain: false
list2Qos: 0
list3Retain: true
list3Qos: 1
statusRetain: false
statusQos: 0
# ElWiz event messages
willMessage: ElWiz has left the building
greetMessage: ElWiz is performing
# Tibber Pulse event messages
onlineMessage: Pulse is talking
offlineMessage: Pulse is quiet
# Debug mode at startup
DEBUG: false
debugTopic: debug/hex
# Republish mode at startup
# DEPRECATED. Use publish modes instead
#REPUBLISH: false
# User has production (solar panels)
hasProduction: false
#############################################
# Pssible cacheType values
# file
# redis
cacheType: file
# Possivle storage type
# mongodb
# mariadb
# custom
# none
storage: none
#############################################
# Possible publishing modes
# hassPublish
# basicPublish
# customPublish
publisher: hassPublish
#############################################
# Publish to Home Assistant (defaults to TRUE)?
hassPublish: true
# Home Assistant sensor base topic (defaults to "elwiz/sensor")
#haBaseTopic: elwiz/sensor
haBaseTopic: elwiz
# Don't change the following topic unless you
# have changed the way HomeAssistant read
# MQTT messages
haAnnounceTopic: homeassistant
##################################################
# The rest of the configuration is only valid for
# the "fetchprices" program
# fetchprices fetches electric energy prices from two sources,
# the Nord Pool power market, and Entso-E
# (https://transparency.entsoe.eu)
# One has priority over the other. If for some reason
# the fetching fails, the program will attempt to fetch
# the power price from the other. It is worth noting that
# an "access token" is required to fetch prices from
# the Entso-E source. You will obtain one by writing
# an email to "[email protected]" and ask for a token.
# Without a token, the program will only operate on
# the Nord Pool energy market
priceAccessToken: <insert your token here>
# base-URL for Entso-E
entsoeBaseUrl: "https://web-api.tp.entsoe.eu/api"
# Base-URL for Nord Pool
nordpoolBaseUrl: "https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices"
# Choose "nordpool" or "entsoe" as priority
priceFetchPriority: nordpool
# URL for fetc-eu-currencies.js
currencyUrl: "https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"
# Days to keep price data files
# Files older tham "keepDays" are deleted
keepDays: 7
# Windows and Docker users without cron
# want to use the "node-schedule" module.
# Set the following to "true" if that is the case.
# Cron users should set it to "false".
runNodeSchedule: true
# The following recommended scheduling will
# try to fetch prices <scheduleMinutes> minutes
# past the "scheduleHours" for the "fetchprices"
# program. Likewise, the <scheduleEuMinutes> is
# for the "fetch-eu-prices" program.
# The same scheduling is recommended for cron users
# According to floating iformation, the prices
# are available about 13:00 CET/CEST from
# Nord Pool, while the prices from ENTSO-E
# is available about 14:00 CET/CEST
# The scheduler will retry until successful
# within the "scheduleHours"
scheduleHours: [13,14]
scheduleMinutes: [6,11,16,21]
scheduleEuMinutes: [5]
# Where to store currency and price data
# relative to the program directory
savePath: ./data
currencyFilePath: ./data/currencies
priceFilePath: ./data/prices
# Your local supplier's price information
# Setting computePrices false for
# only returning naked spot prices (no VAT)
computePrices: true
calculateCost: true
# Topic for sending prices as MQTT message
priceTopic: elwiz/prices
priceTopicRetain: true
priceTopicQos: 0
# Use the same currency as your local supplier
# The following currencies are available:
# EUR, SEK, NOK, DKR
priceCurrency: NOK
# Price for the following regions are
# available in EUR, SEK, NOK, DKR.
#
# Sweden, Finland, Denmark
# [SE1, SE2, SE3, SE4, FI, DK1, DK2]
# [ 1, 2, 3, 4, 5, 6, 7]
#
# Norway
# [Oslo, Kr.sand, Bergen, Molde, Tr.heim, Tromsø]
# [ 8, 9, 10, 11, 12, 13]
#
# Estonia, Latvia, Lithuania
# [EE, LV, LT]
# [14, 15, 16]
#
# EUR prices are available for the following regions
# [AT, BE, DE-LU, FR, NL]
# [17, 18, 19, 20, 21]
# Find your region and insert here.
# Ask your local supplier if in doubt.
priceRegion: 12
# For Entso-E, a region code is needed.
# See the "entsoezones.yaml" file to find
# the correct zone and code
regionCode: NO3
########################################
# Electric power price calculation
# Change the following values according
# to your electric power supplier's invoice
# Different rate models may require changes to program
# Suppliers usually adds a fixed daily OR monthly price
# Use the ones that apply and set the others to 0.0
supplierKwhPrice: 0.0
supplierDayPrice: 0.0
supplierMonthPrice: 0.0
supplierVatPercent: 0.0
# Spot market prices are without VAT
# A VAT percent is usually needed for private households
# Change accordingly
spotVatPercent: 25.0
# Network cost
# Network fixed prices
gridVatPercent: 0.0
gridKwhPrice: 0.0
gridMonthPrice: 0.0
gridDayPrice: 0.0
energyDayPrice: 0.0 # Added price between dayHoursStart and dayHoursEnd
energyNightPrice: 0.0 # Added price between dayHoursEnd and dayHoursStart
dayHoursStart: 06
dayHoursEnd: 22
# Network reward per kWh production
gridKwhReward: 0.0
# The following values are specific for Norwegian users
energyTax: 0.0
topHoursSize: 12
topHoursCount: 3
# Mostly for developers
amscalc:
debug: false
plugselector:
debug: false
mergeprices:
debug: false
calculatecost:
debug: false
publish:
debug: false
unicache:
debug: false