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

scanconfig picks wrong CSV #400

Open
jonathanschneider opened this issue Feb 22, 2024 · 4 comments
Open

scanconfig picks wrong CSV #400

jonathanschneider opened this issue Feb 22, 2024 · 4 comments

Comments

@jonathanschneider
Copy link

jonathanschneider commented Feb 22, 2024

Hello,
I have a Vaillant heater with the article number 0010009351. Looking at 08.bai.HW7401.csv, I would assume that bai.0010003886.inc gets picked because of line 8.

Instead bai.0010006101.inc gets picked because of line 12.

  1. How does ebusd determine the product and is there a way to check what product ebusd actually uses to pick the CSV in this file?
  2. If I am missing definitions in the picked CSV, would it make more sense to add those definitions to that CSV or try to alter which CSV gets picked? bai.0010003886.inc includes the definitions I require.

Thanks!

@JonesGW-MGD
Copy link

JonesGW-MGD commented Feb 23, 2024

  1. You can check the product ID by either checking your logs on start up, you should see something like:
2024-02-23 17:30:12.073 [update notice] sent scan-read scan.08 id QQ=31: 21;22;46;0010017064;1300;806453;N4

so mine is 0010017064

or you can run

ebusctl scan 08

How you do that depends a bit on how you are running ebusd

  1. I think if you have the configurations cloned locally it doesn't really matter which method you chose to help ebusd pick the 'richest' config file - but I'm a relative novice and others may disagree. I guess you need to think about future proofing and how you might assimilate changes that might get added to the config files that might fill in more and more gaps for you over time? Maybe in your scenario, I'd edit 08.bai.csv so the product ID matches the file you want it to pick?

What by the way is 08.bai.HW7401.csv? (maybe a mis link?)

(If you do have HW7401, and you go through 08.bai.csv and it doesn't match a product ID I'd assume it would pick the default bai.308523.inc at hardware fallback line 28?)

@jonathanschneider
Copy link
Author

Thanks! That was a great hint because neither the logs nor the ebusctl scan 08 output the product ID. All I get is 08;Vaillant;BAI00;0518;7401;;;;;;; and that would explain why 08.bai.csv (I named the v2.x.x file but the link was correct) picks another inc.
Since I know my product ID I think I will add the definitions to that inc and manipulate 08.bai.csv to pick that.
Thanks again!

@jonathanschneider
Copy link
Author

OK, here's my attempt to fix the issue: #401

@JonesGW-MGD
Copy link

JonesGW-MGD commented Feb 23, 2024

Glad to help in a small way - all the best! But are you saying that your device ID is not correctly being received from a broadcast request by ebusd?

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