Skip to content

FredVi/domoticz_linky

 
 

Repository files navigation

pre-requisite: activate load curve recording on Enedis website

enable your enedis account (https://espace-client-particuliers.enedis.fr/group/espace-particuliers/) and the data collection ("Consommation" > "Gérer ma courbe de charge" > "Activer ma courbe de charge")

domoticz_linky

get Linky smart meter data and push it to domoticz

create a device in Domoticz

  • In Domoticz, go to hardware, create a virtual "rfx meter counter".
  • Then in Devices, add it to the devices. (mark down the id for later).
  • When in Utility, edit the device and change it to Electricity type.

modules to install

sudo apt-get install sqlite3
sudo apt-get install python3 python3-numpy python3-dateutil python3-requests
npm install winston 
git clone https://github.com/empierre/domoticz_linky.git

change login and pass, base dir of this script and domoticz path

nano domoticz_linky.sh

and change:

export LINKY_USERNAME="nom.prenom@mail.com"
export LINKY_PASSWORD="password"
BASE_DIR="/home/pi/domoticz/domoticz_linky"
DOMOTICZ_ID=547

testing before launch

Manually launch

./domoticz_linky.sh

N.B. If login is not ok, you'll get a nodejs error on console for data will be missing (will be changed).

Then check the login credential if they are ok:

linky.log

If this is good, you'll get several json files in the directory

Add to your cron tab (with crontab -e):

30 7,17 * * * /home/pi/domoticz_linky/domoticz_linky.sh

Getting back history

It is possible to get back history months giving the relative month to get. Parameter is how many month back from today. Limitation: works only on same year at this time.

./domoticz_linky_month.sh

About

Get Linky smart meter index to Domoticz

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 72.3%
  • JavaScript 24.3%
  • Shell 3.4%