/
config.exemple.yaml
executable file
·117 lines (117 loc) · 3.88 KB
/
config.exemple.yaml
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
port: 5000
debug: true
log2file: false
wipe_influxdb: false # Work only with influxdb > 2.X
# Par défaut le backend en local dans le /data/cache.db du conteneur.
# Mais il est possible de basculer sur une base de données externe de type SQLite ou PostgreSQL
# Exemple pour Postgres :
#storage_uri: postgresql://myelectricaldata:myelectricaldata@postgres:5432/myelectricaldata
home_assistant: # WITH MQTT DISCOVERY
enable: true
discovery: true
discovery_prefix: homeassistant
home_assistant_ws: # FOR ENERGY TAB
enable: false
ssl: true
token: HOME_ASSISTANT_TOKEN_GENERATE_IN_PROFILE_TABS_(BOTTOM)
url: myhomeassistant.domain.fr
max_date: "2021-06-01"
purge: false
ssl:
gateway: true
certfile: ""
keyfile: ""
influxdb:
enable: false
scheme: http
hostname: influxdb
port: 8086
token: myelectricaldata
org: myelectricaldata
bucket: myelectricaldata
# ATTENTION, L'activation de l'importation asynchrone va réduire fortement le temps d'importation dans InfluxDB
# mais va augmenter la consommation mémoire & CPU et donc à activer uniquement sur un hardware robuste.
method: synchronous # Mode disponible : synchronous / asynchronous / batching
# batching_options permet uniquement de configurer la methode `batching`.
# Pour plus d'information : https://github.com/influxdata/influxdb-client-python#batching
batching_options:
batch_size: 1000
flush_interval: 1000
jitter_interval: 0
retry_interval: 5000
max_retry_time: 180_000
max_retries: 5
max_retry_delay: 125_000
exponential_base: 2
mqtt:
enable: false
hostname: mosquitto
port: 1883
username: null
password: null
prefix: myelectricaldata
client_id: myelectricaldata # DOIT ETRE UNIQUE SUR LA TOTALITE DES CLIENTS CONNECTE AU SERVEUR MQTT
retain: true
qos: 0
# ca_cert: /certs/ca.pem # Certificate Authority a utiliser pour etablir une connection SSL au server MQTT
# Configuration SSL optionnel.
#ssl:
# keyfile: "/data/key.pem"
# certfile: "/data/cert.pem"
myelectricaldata:
# Configuration de mon point de livraison (ne pas oublier d'adapter MON_PDL_1 avec votre numéro de PDL)
"MON_PDL_1":
enable: 'true'
token: TOKEN_DE_MON_PDL_1
name: "Maison"
addresses: 'true'
cache: 'true'
consumption: 'true'
consumption_detail: 'true'
consumption_price_base: '0.145907'
consumption_price_hc: '0.124364'
consumption_price_hp: '0.164915'
consumption_max_date: "2021-06-01"
consumption_detail_max_date: "2021-06-01"
offpeak_hours_0: 22H00-6H00 # LUNDI
offpeak_hours_1: 22H00-6H00 # MARDI
offpeak_hours_2: 22H00-6H00 # MERCREDI
offpeak_hours_3: 22H00-6H00 # JEUDI
offpeak_hours_4: 22H00-6H00 # VENDREDI
offpeak_hours_5: 22H00-6H00;12H00-14H00 # SAMEDI
offpeak_hours_6: 22H00-6H00;12H00-14H00 # DIMANCHE
plan: HC/HP
production: 'false'
production_detail: 'false'
production_price: '0.0'
production_max_date: "2021-06-01"
production_detail_max_date: "2021-06-01"
refresh_addresse: 'false'
refresh_contract: 'false'
# "MON_PDL_2_AVEC_PRODUCTION":
# enable: 'true'
# token: TOKEN_DE_MON_PDL_2
# name: "Maison de vacances"
# cache: 'true'
# consumption: 'true'
# consumption_detail: 'true'
# consumption_price_base: '0.175'
# consumption_price_hc: '0.175'
# consumption_price_hp: '0.175'
# consumption_max_date: "2021-06-01"
# consumption_detail_max_date: "2021-06-01"
# offpeak_hours_0: ''
# offpeak_hours_1: ''
# offpeak_hours_2: ''
# offpeak_hours_3: ''
# offpeak_hours_4: ''
# offpeak_hours_5: ''
# offpeak_hours_6: ''
# plan: BASE
# production: 'true'
# production_detail: 'true'
# production_price: '0.10'
# production_max_date: "2021-06-01"
# production_detail_max_date: "2021-06-01"
# refresh_addresse: 'false'
# refresh_contract: 'false'