-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues reading the P1Packet() class #30
Comments
@sandnabba thanks for reporting this. I will take a look at the code this weekend. What meter (make and model) do you have? |
Perfect and thanks a lot! It's an "S34U18" meter, which is branded by "Vattenfall", the grid owner. Seems like that meter is very common here in Sweden, also on other operators as well (With their name on it). But in the end, I'm quite sure it's this one: |
@sandnabba The issue is that the P1 telegram that your meter (S34U18) is emitting does not contain a line matching this regex:
or
and possibly others, I have not checked them all. That is the reason why the Do you happen to have documentation (pdf) of this meter? I am curious to know what the values in the P1 packets mean. |
Hi! Yeah, had the same issue with I have a branch were I got the data I was looking for (mostly voltage and current on the line): I was planning to fix this issue as well before submitting a PR with full "S34U18 support". :) But I guess the issue is related, and as you can see, the main issue is that my meter seems to report the current (A) as a float instead of an integer. Here is the API documentation for the meter: Unfortunately it seems like it's only available in Swedish. The titel is "Industry recommendations for local interface", published by "Swedenergy":
So I guess this applies for pretty much everyone in Sweden at least. I've sent them an email asking if there is an english version somewhere. But the API specification is on the last 2 pages. And I hope that I have a fully working version ready this weekend. :) // Emil |
@sandnabba nice. Looking forward to getting this solved and supported |
Hello!
Next issue (after solving #29 ) is that the P1Packet class does not seem to work as expected.
Full output running the CLI:
If I'm using the
--raw
flag it just prints the packet and exits successfully.I'm also trying to use the lib as a module, but I'm missing some examples of how to access the class variables.
The following works:
But first using a function, then digging into a list feels a bit complicated. Is there a better way (using (vars() perhaps?), or is there any example somewhere?
Hope you can point me in the right direction, I'm not a Python expert. :)
Best regards
The text was updated successfully, but these errors were encountered: