-
Notifications
You must be signed in to change notification settings - Fork 3
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
vzlogger - Add support for more configuration values #1
Comments
Yes, I only implemented a very limited amount of parameters for the initial release. Would be great to support more configuration options. I also don't really have a separate development environment. Had been testing directly on this repo with travis docker builds and then HomeAssistant would receive updates directly. If you find out a not too difficult alternative, let me know. In the worst case we need to merge an untested pull request and directly try it out. |
I'm trying to get this up and running in a local dev environment...so it's at least somehow checked and we're not completely blind for a merge. |
Hi, |
I think with the new setup and naming convention here, we can now easily add more parameters and even more meters in the future if needed. Thanks for the contribution. |
Ok, I will try to adapt it to my setup (up to 4 meters with some additional parameters) as soon as I have access to it and hopefully I can merge it back here if it works. |
@jpfaff adding more meters should be pretty straight forward. Just copy and paste whats there and change the numbers. |
I think that would be a great middle way between the two approaches. Leaving the possibility to people that need it, but keeping the basic setups simple. |
Hello @m-reuter, this ist a very good Idea to integrade the VZLogger into HomeAssistant, but i am not able to transform my working config from vzlogger to this add-on: meter1_parity: 7E1 => error, add-on don't accept "E" This both commands working? |
Hi @dAjaY85 ,
|
Hi @m-reuter, when I put an "E", the add-on shows an error, configuration is not right. I copy my working VZLogger config file, i think with integrated pullseq and ackseq it should work. |
Commit 9cb12e0 adds support pullseq and ackseq. Let me know if it works, or if other variables are needed. |
Try putting the '7E1' in apostrophes. That worked for me. Otherwise the script will cut off something and the definition will be incomplete |
Hi @dAjaY85 |
Very likely it thinks 7e1 is a number rather than a string without apostrophes. About additional parameters, I think it will be very easy to integrate more in the future. So, everyone, just post here if anything is needed (or generate your own pull request :) |
Hi @m-reuter. Appreciate your work, have been using vzlogger for a few months! I have a recurring issue that I believe would be possible to fix with an additional optional config parameter, namely "allowskip". My issue is that my d0 device seems to be shifting between /dev/ttyUSB0 and /dev/ttyUSB1 over time. When the device shifts, vzlogger cannot find it, and I lose my logging. A simple (albeit not very elegant) way to fix that issue would be to make both ports meters, and simply mark both as "allowskip: true". |
@Din-BH you can check if you find your serial device in /dev/serial/by-id and reference to it through that instead of ttyUSBX which references to the same thing at the end. |
Wow @jpfaff you are fast, I was just typing that response. It would be best to fix the problem there. |
Thanks guys, I will check that out! Sounds like a much more elegant solution ;) |
At least initially it seems like it is indeed working! Withdrawing my request for new config parameter ;) |
I added a recommendation to use the device id instead of ttyUSB in the README 06aaf4a |
HI @m-reuter, the add on is a really good start to integrate vzlogger. Thank you for that initiative! I am observing the following problem (verbose = 15):
The energy meter has been installed several weeks ago. Or maybe better as I think it was already proposed, to be able to alternatively enter a full custom vzlogger.conf content and also to get a copy of the generated config so it can be pasted into the custom config and adapted as needed. :) |
Hi @raymanP , in the newest version you can set use_local_time to true. It will then use the time from your computer instead of the one from the meter which is incorrect. See #11 . We can also add the i_have_a_time_machine option of course, but I see no real reason as that would mean you trust the incorrect time values from your meter. Let me know if you think there is a good reason for adding it. The vzlogger.conf that is created in the add-on gets printed to the log, so you can see it. But you cannot change it. Sadly that is only possible via the config interface for the variables that we have enabled. We could have a free-text option, but that is not straight forward. Also it would be unclear if that is a free text to be added to a specific meter setting or general setting etc. So I see no easy way to do that. If anyone has an idea feel free to contribute. |
Hi @m-reuter, this is really fast fast response :)) Additionally, vzlogger.conf printed in the log is not visible, as the log size is so small, that the logs afterwards move the config out of the log. Is there an option to increase the log size in the addons? |
If figured out how to increase log size: https://www.home-assistant.io/integrations/system_log/ |
Hi @raymanP , so it is working for you now after update and restart. That's great. Not sure what exactly caused the hiccup. Usually after an update the config will be adjusted and everything works directly (at least for me for the recent updates). Anyway good to hear it is working now. |
Thank you very much for assisting @m-reuter !! :)) |
Hello @m-reuter ,
I really appreciate your work, but unfortunately need some more configuration options for my use case.
My meter is using d0 protocol and spits out a message every second. Therefore i need to be able to set the "interval" parameter for a meter...and of course set the protocol to d0 instead of sml.
Currently this is not included in your vzlogger.conf and the default settings. I'm trying to get this in with a pull request but I'm struggling with getting a working development environment with travis-ci...
The text was updated successfully, but these errors were encountered: