Update config.yaml

This commit is contained in:
Alexandre
2023-07-26 19:34:07 +02:00
committed by GitHub
parent d4be5a0b1a
commit ed0dc0b364

View File

@@ -1,63 +1,107 @@
########## cycle: 14400 # 4H
# GLOBAL # debug: true
########## log2file: false
debug: 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
## MQTT ## # Exemple pour Postgres :
#################### # storage_uri: postgresql://myelectricaldata:myelectricaldata@postgres:5432/myelectricaldata
tempo:
enable: true
price_blue_hc: 0.097
price_blue_hp: 0.1249
price_red_hc: 0.1216
price_red_hp: 0.6712
price_white_hc: 0.114
price_white_hp: 0.1508
home_assistant:
enable: true
discovery: true
discovery_prefix: homeassistant
influxdb:
enable: true
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: mqtt:
host: MOSQUITO_SERVER # MANDATORY enable: true
hostname: mosquitto
port: 1883 port: 1883
username: "" username: null
password: "" password: null
prefix: enedis_gateway prefix: myelectricaldata
client_id: enedis_gateway client_id: myelectricaldata # DOIT ETRE UNIQUE SUR LA TOTALITE DES CLIENTS CONNECTE AU SERVEUR MQTT
retain: true retain: true
qos: 0 qos: 0
myelectricaldata:
#################### "MON_PDL_1":
## Home assistant ## enable: 'true'
#################### token: TOKEN_DE_MON_PDL_1
home_assistant: name: "Maison"
discovery: false addresses: 'true'
discovery_prefix: homeassistant cache: 'true'
card_myenedis: false consumption: 'true'
consumption_detail: 'true'
############### consumption_price_base: '0.145907'
## Influx DB ## consumption_price_hc: '0.124364'
############### consumption_price_hp: '0.164915'
#influxdb: consumption_max_date: "2021-06-01"
# host: MY_INFLUXDB_SERVER consumption_detail_max_date: "2021-06-01"
# port: 8086 offpeak_hours_0: 22H00-6H00 # LUNDI
# token: MY_TOKEN offpeak_hours_1: 22H00-6H00 # MARDI
# org: MY_ORG offpeak_hours_2: 22H00-6H00 # MERCREDI
# bucket: MY_BUCKET offpeak_hours_3: 22H00-6H00 # JEUDI
offpeak_hours_4: 22H00-6H00 # VENDREDI
#################### offpeak_hours_5: 22H00-6H00;12H00-14H00 # SAMEDI
## ENEDIS GATEWAY ## offpeak_hours_6: 22H00-6H00;12H00-14H00 # DIMANCHE
#################### plan: HC/HP
enedis_gateway: production: 'false'
PDL_1: # MANDATORY production_detail: 'false'
token: PDL_1_TOKEN # MANDATORY production_price: '0.0'
plan: BASE # BASE or HP/HC production_max_date: "2021-06-01"
consumption: true production_detail_max_date: "2021-06-01"
consumption_detail: true refresh_addresse: 'false'
consumption_price_hc: 0 refresh_contract: 'false'
consumption_price_hp: 0 "MON_PDL_2_AVEC_PRODUCTION":
consumption_price_base: 0 enable: 'true'
production: false token: TOKEN_DE_MON_PDL_2
production_detail: false name: "Maison de vacances"
# offpeak_hours: "" # USE ONLY IF YOU WANT OVERLOAD DEFAULT VALUE, Format : 22h36-00h10;01h00-06h00 cache: 'true'
addresses: true consumption: 'true'
# PDL_2: consumption_detail: 'true'
# token: PDL_2_TOKEN consumption_price_base: '0.175'
# plan: HP/HC consumption_price_hc: '0.175'
# consumption: true consumption_price_hp: '0.175'
# consumption_detail: true consumption_max_date: "2021-06-01"
# consumption_price_hc: 0.1781 consumption_detail_max_date: "2021-06-01"
# consumption_price_hp: 0.1337 offpeak_hours_0: ''
# consumption_price_base: 0.1781 offpeak_hours_1: ''
# production: false offpeak_hours_2: ''
# production_detail: false offpeak_hours_3: ''
# addresses: true 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'