Python plugin: Linky

Python and python framework
Post Reply
Barberousse
Posts: 109
Joined: Wednesday 02 December 2015 22:47
Target OS: Raspberry Pi
Domoticz version:
Location: France
Contact:

Python plugin: Linky

Post by Barberousse » Tuesday 29 May 2018 22:03

Hello,

I made a plugin for Domoticz to grab history for french meter Linky and put them in a Domoticz Device. No real-time data, but no need for teleinfo hardware, the data are collected from Enedis website.

Cf. https://github.com/guillaumezin/DomoticzLinky

gerardosamara
Posts: 58
Joined: Sunday 23 October 2016 19:49
Target OS: Raspberry Pi
Domoticz version: 4.9701
Contact:

Re: Python plugin: Linky

Post by gerardosamara » Monday 13 August 2018 14:23

Thanks @barberousse for the plugin .

I have installed the domoticz software on my Synology DSM6.2 (without python]) using the wiki ... https://www.domoticz.com/wiki/Synology and then the plugin Linky https://www.domoticz.com/wiki/Synology.

Q1 : Is there anything else to perform on the Synology ?

The Enedis data are downloaded in Domoticz stable V4.9700 ... Observation on going

Q2 : Is this plugin now the official Linky plugin after the one from @epierre ?

Thank you
Last edited by gerardosamara on Tuesday 14 August 2018 10:15, edited 1 time in total.
Domoticz Remote server RPi3B+ & WD PI Drive Beta V4.9701 , Domoticz Slave Beta RPI3B V4.9701 + App Android Domoticz Lite V0.1.452 & Imperihome Pro V40107
Zwave+ Z Stick Z90 USB dongle + USB300 Ocean GW dongle

gerardosamara
Posts: 58
Joined: Sunday 23 October 2016 19:49
Target OS: Raspberry Pi
Domoticz version: 4.9701
Contact:

Re: Python plugin: Linky

Post by gerardosamara » Tuesday 14 August 2018 10:11

Result after 1 day of observation :

- The data are not displayed in the day graph ( always 0 ) , for yesterday and today = NOK
- The "day" data are displayed in the graph week for monday in my case = correct

Cf screenshot attached
Plugin Linky.PNG
Plugin Linky.PNG (113 KiB) Viewed 1106 times
Last edited by gerardosamara on Wednesday 15 August 2018 12:48, edited 1 time in total.
Domoticz Remote server RPi3B+ & WD PI Drive Beta V4.9701 , Domoticz Slave Beta RPI3B V4.9701 + App Android Domoticz Lite V0.1.452 & Imperihome Pro V40107
Zwave+ Z Stick Z90 USB dongle + USB300 Ocean GW dongle

gerardosamara
Posts: 58
Joined: Sunday 23 October 2016 19:49
Target OS: Raspberry Pi
Domoticz version: 4.9701
Contact:

Re: Python plugin: Linky

Post by gerardosamara » Wednesday 15 August 2018 8:54

Sounds like the plugin connects to Enedis site only once a day

2018-08-15 05:04:29.803 (Linky meter) Getting data...
2018-08-15 05:05:01.656 (Linky meter) Done
2018-08-15 05:05:01.656 (Linky meter) Next connection: 2018-08-16 05:24:29
Domoticz Remote server RPi3B+ & WD PI Drive Beta V4.9701 , Domoticz Slave Beta RPI3B V4.9701 + App Android Domoticz Lite V0.1.452 & Imperihome Pro V40107
Zwave+ Z Stick Z90 USB dongle + USB300 Ocean GW dongle

User avatar
trandbert
Posts: 9
Joined: Tuesday 05 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: Python plugin: Linky

Post by trandbert » Wednesday 15 August 2018 9:42

Hello,
It's normal because on enedis website we don't have today's values..

User avatar
trandbert
Posts: 9
Joined: Tuesday 05 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: Python plugin: Linky

Post by trandbert » Wednesday 15 August 2018 12:00

Sorry, I wrote to quick.. I thinck you have to enable hourly report in your Enedis account.

gerardosamara
Posts: 58
Joined: Sunday 23 October 2016 19:49
Target OS: Raspberry Pi
Domoticz version: 4.9701
Contact:

Re: Python plugin: Linky

Post by gerardosamara » Wednesday 15 August 2018 12:18

Yes
linky enedis.PNG
linky enedis.PNG (41.44 KiB) Viewed 1036 times
Domoticz Remote server RPi3B+ & WD PI Drive Beta V4.9701 , Domoticz Slave Beta RPI3B V4.9701 + App Android Domoticz Lite V0.1.452 & Imperihome Pro V40107
Zwave+ Z Stick Z90 USB dongle + USB300 Ocean GW dongle

User avatar
trandbert
Posts: 9
Joined: Tuesday 05 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: Python plugin: Linky

Post by trandbert » Wednesday 15 August 2018 12:35

It works for me with this configuration
Attachments
Capture du 2018-08-15 12-33-45.png
Capture du 2018-08-15 12-33-45.png (129.2 KiB) Viewed 1033 times

User avatar
trandbert
Posts: 9
Joined: Tuesday 05 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: Python plugin: Linky

Post by trandbert » Saturday 18 August 2018 3:32

You may look up before the script running ?

gerardosamara
Posts: 58
Joined: Sunday 23 October 2016 19:49
Target OS: Raspberry Pi
Domoticz version: 4.9701
Contact:

Re: Python plugin: Linky

Post by gerardosamara » Tuesday 21 August 2018 11:32

Thanks for the reply.

As said before

Sounds like the plugin connects to Enedis site only once a day

2018-08-15 05:04:29.803 (Linky meter) Getting data...
2018-08-15 05:05:01.656 (Linky meter) Done
2018-08-15 05:05:01.656 (Linky meter) Next connection: 2018-08-16 05:24:29


What do you mean @ tranbert by "look up before the script running ?"

Thank you
Domoticz Remote server RPi3B+ & WD PI Drive Beta V4.9701 , Domoticz Slave Beta RPI3B V4.9701 + App Android Domoticz Lite V0.1.452 & Imperihome Pro V40107
Zwave+ Z Stick Z90 USB dongle + USB300 Ocean GW dongle

User avatar
trandbert
Posts: 9
Joined: Tuesday 05 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version: Beta
Location: France
Contact:

Re: Python plugin: Linky

Post by trandbert » Tuesday 21 August 2018 12:04

Sorry, I don't remember why I said that

ArnoBZH
Posts: 1
Joined: Thursday 23 August 2018 22:19
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Python plugin: Linky

Post by ArnoBZH » Thursday 23 August 2018 22:45

gerardosamara wrote:
Tuesday 14 August 2018 10:11
Result after 1 day of observation :

- The data are not displayed in the day graph ( always 0 ) , for yesterday and today = NOK
- The "day" data are displayed in the graph week for monday in my case = correct

Cf screenshot attached

Plugin Linky.PNG
Hi,

I get exactly the same thing... Week graph is OK, but not the Day graph...
I stop domoticz on my Raspberry

Code: Select all

/etc/init.d/domoticz.sh stop
and start the script manually to view log details

Code: Select all

/home/pi/domoticz/domoticz
and i get this two error messages :

Code: Select all

Error: (Linky): Async Secure Read Exception: 1, stream truncated
Error: (Linky) No transport, write directive to 'HTTPS connection' ignored.
I specify that I have already activated the time report in my Enedis account.
Someone know why ?
Thanks a lot.

My Domoticz version is the last v4.97.

PS : Pourquoi tout le monde écrit en Anglais vu que le compteur Linky est une technologie purement française ? Je n'ai rien contre l'anglais, mais cela permettrait d'élargir le sujet aux personnes mal à l'aise avec la langue de Shakespeare. ;)

xavierlp
Posts: 12
Joined: Tuesday 01 November 2016 17:22
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python plugin: Linky

Post by xavierlp » Wednesday 24 October 2018 14:12

Hello
J'ai une erreur dans les log de Domoticz : Error in received JSON data during step getdatahours from 15/10/2018 to 23/10/2018
J'ai bien activé la courbe de charge coté Enedis et d'ailleurs je peux y lire les données par tranche de 30 minutes.

J'ai par contre toutes les données OK par jour.

Version du script 1.0.5 et celle de domoticz stable 4.97
Que dois je vérifier dans les logs et ou se trouvent les fichiers de détails?

Merci

Post Reply

Who is online

Users browsing this forum: Google [Bot], kluczus and 5 guests