Awesome
Linky Custom
The 'linky_custom' component is a Home Assistant custom sensors which calculate the cost of your daily consumption based on data provided by Enedis.
This component is inspired by the work of @Grea04.
You can use my custom card to display linky information
Installation
MANUAL INSTALLATION
- Download the
linky_custom.zip
file from the latest release. - Unpack the release and copy the
custom_components/linky_custom
directory into thecustom_components
directory of your Home Assistant installation. - Configure the
linky_custom
sensor. - Restart Home Assistant.
INSTALLATION VIA HACS
This repository is not included by default in HACS yet.
- Ensure that HACS is installed.
- Add this repository in custom repository as
integration
- Search for and install the "linky_custom" integration.
- Configure the
linky_custom
sensor. - Restart Home Assistant.
Configuration
configuration.yaml
Add linky_custom
sensor in your configuration.yaml
.
# Example configuration.yaml entry
sensor:
- platform: linky_custom
username: !secret linky_username
password: !secret linky_password
peak_hours:
- ["03:00","15:30"]
- ["17:30", "21:00"]
peak_hours_cost: 0.1710
offpeak_hours_cost: 0.1320
CONFIGURATION PARAMETERS
Parameter | Optional | Description |
---|---|---|
username | No | Enedis account username |
password | No | Enedis account password |
peak_hours | No | Array of peak hours |
peak_hours_cost | No | kWh cost for peak hours |
offpeak_hours_cost | No | kWh cost for off peak hours |
Linky Sensor
State and Attributes
State
- The yesterday consumption in kWh.
Attributes
daily
: array of daily consumption.halfhourly
: array of yesterday consumption per 30 min.peak_hours
: yesterday consumption in peak hoursoffpeak_hours
: yesterday consumption in off peak hourspeak_offpeak_percent
: percentage of yesterday consumption in off peakdaily_cost
: yesterday costmonthly_evolution
: percentage of consumption compare to same month of previous year
Current Month Sensor
State and Attributes
State
- The current month consumption in kWh.
Attributes
time
: The month and year in formatmmm YYYY
.username
: the Enedis account used.
Last Month Sensor
State and Attributes
State
- The last month consumption in kWh.
Attributes
time
: The month and year in formatmmm YYYY
.username
: the Enedis account used.
Current Year Sensor
State and Attributes
State
- The current year consumption in kWh.
Attributes
time
: The year in formatYYYY
.username
: the Enedis account used.
Last Year Sensor
State and Attributes
State
- The last year consumption in kWh.
Attributes
time
: The year in formatYYYY
.username
: the Enedis account used.