Skip to content
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

MAXRATE change no effect #10

Open
piano-thomas opened this issue Feb 1, 2024 · 2 comments
Open

MAXRATE change no effect #10

piano-thomas opened this issue Feb 1, 2024 · 2 comments

Comments

@piano-thomas
Copy link

Hi all,

I am trying to increase the frequency of the MQTT messages in oder to try to get 1 meter reading per second to HA. When I change the default value of 7 in dsmr50.py to another value, doesn't matter which value, the meter readings are not updated anymore. Only when I re-enter the value of 7, I will get a reading once every minute. What do I do wrong?

Thanks for your help!

Best,

Thomas

@hansij66
Copy link
Owner

hansij66 commented Feb 2, 2024

Hi Thomas, thanks for have interest in my project. Reading your comments, I can understand the confusion. I will improve comments of this file in future release.

MAXRATE = 7 is a constant used in other files. Please set it back to 7.

You can adapt maxrate per dsmr field, eg see one field as example, below....the 60 is the maxrate (every minute) for "0-0:96.1.1" dsmr message

To set it to every second, change 60 into 3600 (assuming that your P1 meter will deliver every second a dataframe)

"0-0:96.1.1": ["Equipment identifier", "el", "serial", "^.(\d{26}(.))","str", "1", "1", "60", "0", "mdi:counter"],

I will leave this issue open till I have improved dsmr50.py

@piano-thomas
Copy link
Author

Hi Hans,

Thanks for your feedback! I completely misunderstood the way of coding and thought it was a fixed constant that would hold for all messages. Now I understand! Thanks a lot!

Best regards,

Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants