get Linky smart meter data and push it to 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.
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
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
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
30 7,17 * * * /home/pi/domoticz_linky/domoticz_linky.sh