P1Meter Plugin..

Posted on
Wed Dec 08, 2021 2:05 pm
VincentS offline
Posts: 45
Joined: Dec 11, 2014

P1Meter Plugin..

Hi There

I have this P1 Meter problem.. It seems (as far as i can tell) that there is communion with my meter.. But for some reason I get these errors and no data in return...

I cannot find the guy who wrote the plugin but I'm curious what I'n doing wrong here..

8 Dec 2021 at 20:42:46
P1Meter Total lines read from serial port: 46
P1Meter Done reading one packet (containing 17 lines)
P1Meter Constructing P1Packet from raw data
P1Meter Closing connection to '/dev/cu.usbserial-AB4IK9MQ'
P1Meter Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 437, in runConcurrentThread
File "plugin.py", line 378, in readtelegram
File "plugin.py", line 610, in read_one_packet
File "plugin.py", line 707, in __init__
TypeError: int() argument must be a string or a number, not 'NoneType'

P1Meter Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
P1Meter Plugin running state
P1Meter Open serial connect to /dev/cu.usbserial-AB4IK9MQ with: parity=E, baudrate=9600, bytesize=7, xonxoff=0, timeout=10, stopbits=1
P1Meter New serial connection opened to /dev/cu.usbserial-AB4IK9MQ
P1Meter Start reading lines




Kind regards,
Vincent

Posted on
Wed Dec 08, 2021 2:19 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: P1Meter Plugin..

Looks like the format of the data returned by the device has changed, and the string it's trying to change to an Integer isn't a number.

Here's the actual code that's failing:

Code: Select all
      # 0-0:96.7.21(00673)
      #             ^^^^^
      keys['kwh']['outages']['shortcount'] = int(self.get(b'^0-0:96\.7\.21\((\d*)'))

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Dec 08, 2021 2:30 pm
VincentS offline
Posts: 45
Joined: Dec 11, 2014

Re: P1Meter Plugin..

FlyingDiver wrote:
Looks like the format of the data returned by the device has changed, and the string it's trying to change to an Integer isn't a number.

Here's the actual code that's failing:

Code: Select all
      # 0-0:96.7.21(00673)
      #             ^^^^^
      keys['kwh']['outages']['shortcount'] = int(self.get(b'^0-0:96\.7\.21\((\d*)'))


My question is..

Does it have to do with a faulty plugin or is there something I could do to change it..

Posted on
Wed Dec 08, 2021 2:35 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: P1Meter Plugin..

No way to know for sure, since the plugin isn't logging the data it's getting. I suspect the plugin is just out of date.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Dec 08, 2021 2:36 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: P1Meter Plugin..


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Dec 08, 2021 2:43 pm
VincentS offline
Posts: 45
Joined: Dec 11, 2014

Re: P1Meter Plugin..

FlyingDiver wrote:


Yes I did.. Sins I have comm's with the meter I guess it cannot be the FTDI driver.. I tried to switch protocol but no results.. I would like to find a way to read the raw data coming from that meter so I could find a hint there. But I don't know If there is any program to capture that data..

Posted on
Wed Dec 08, 2021 2:44 pm
FlyingDiver offline
User avatar
Posts: 7213
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: P1Meter Plugin..

Time to learn Python.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Dec 08, 2021 2:48 pm
VincentS offline
Posts: 45
Joined: Dec 11, 2014

Re: P1Meter Plugin..

FlyingDiver wrote:
Time to learn Python.


Well Joe I can't beat that argument :) But I'm more a guy of the 10.000V and plus ;)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 11 guests