-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhq_open_data.yaml
41 lines (39 loc) · 1.93 KB
/
hq_open_data.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
sensor:
- platform: rest
name: Hydro-Québec Demande Totale
resource: https://www.hydroquebec.com/data/documents-donnees/donnees-ouvertes/json/demande.json
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.demandeTotal | round(0) }}'
ssl_cipher_list: intermediate
unit_of_measurement: 'MW'
device_class: power
scan_interval: 900
rest:
- resource: https://www.hydroquebec.com/data/documents-donnees/donnees-ouvertes/json/production.json
scan_interval: 3600
ssl_cipher_list: intermediate
sensor:
- name: "Hydro-Québec production total"
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.total | round(0) }}'
device_class: power
unit_of_measurement: "MW"
- name: "Hydro-Québec production hydraulique"
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.hydraulique | round(0) }}'
device_class: power
unit_of_measurement: "MW"
- name: "Hydro-Québec production éolien"
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.eolien | round(0) }}'
device_class: power
unit_of_measurement: "MW"
- name: "Hydro-Québec production autres"
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.autres | round(0) }}'
device_class: power
unit_of_measurement: "MW"
- name: "Hydro-Québec production solaire"
value_template: '{{ value_json.details[value_json.indexDonneePlusRecent].valeurs.solaire | round(0) }}'
device_class: power
unit_of_measurement: "MW"
# Patch to compensate for the thermal source offset.
- name: "Hydro-Québec production thermique"
value_template: '{{ value_json.details[(value_json.indexDonneePlusRecent - 5)].valeurs.thermique | round(0) }}'
device_class: power
unit_of_measurement: "MW"