home-assistant.io/source/_components/sensor.hydroquebec.markdown

2.8 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Hydro-Québec Instructions on how to integrate Hydro-Québec consumption profile within Home Assistant. 2016-12-10 0:15 true false true true hydroquebec.svg Energy 0.35 Cloud Polling

Integrate your Hydro-Québec consumption profile information into Home Assistant.

Breaking change: Since Home Assistant v0.40, **contract** attribute is required.

# Example configuration.yaml entry
sensor:
  - platform: hydroquebec
    username: MYUSERNAME
    password: MYPASSWORD
    contract: '123456789'
    monitored_variables:
     - period_total_bill
     - period_length
     - period_total_days

{% configuration %} username: description: Username used to log into the Hydro-Québec site. required: true type: string password: description: Password used to log into the Hydro-Québec site. required: true type: string contract: description: Your contract number with Hydro-Québec. required: true type: string name: description: A friendly name for this sensor. required: false default: HydroQuebec type: string monitored_variables: description: Variables to monitor. required: true type: list keys: balance: description: Current balance period_total_bill: description: Current period bill period_length: description: Current period length period_total_days: description: Total number of days in this period period_mean_daily_bill: description: Period daily average bill period_mean_daily_consumption: description: Period daily average consumption period_total_consumption: description: Total consumption period_lower_price_consumption: description: Period lower price consumption period_higher_price_consumption: description: Period higher price consumption period_average_temperature: description: Period average temperature yesterday_total_consumption: description: Yesterday total consumption yesterday_lower_price_consumption: description: Yesterday lower price consumption yesterday_higher_price_consumption: description: Yesterday higher price consumption yesterday_average_temperature: description: Yesterday average temperature {% endconfiguration %}

To find your contract id, go to the Hydro-Québec website and connect to your account. On the main page your can see your contract IDs. It should be something like: "Contract 1234 56789". You just have to keep numbers and remove the space.

Multi contracts accounts are supported only from Home Assistant v0.40.