-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[tr064] Description in LanDevice MAC "comma separated list" wrong #13988
[tr064] Description in LanDevice MAC "comma separated list" wrong #13988
Conversation
Signed-off-by: Stefan Miesem <[email protected]>
Related to: #13798 |
In the related issue it was noticed that the english and german translation where off. I think this PR fixes the issue by proper documenting both translations. |
I'm not familiair with textual config combined with such lists, but maybe double check the
If that does not need a change, LGTM |
Thanks @lsiepel, I tested around a little bit to find out which setting is right. With OH 3.3.0, the only working setting in the UI is to set one mac address per row. So I tried to find a wording that discripes the setting more precise, in english and in german. And changed that in the source code with the pull request linked. The german translations is wrong for shure and dosen't function. :-D |
bundles/org.openhab.binding.tr064/src/main/resources/OH-INF/i18n/tr064_de.properties
Outdated
Show resolved
Hide resolved
@Spiev - you can reopen the PR if you would still suggest to add "One MAC-Address per row." |
@jlaur Sorry, I tought, that you rejected the whole PR. :-) I reopened the PR to suggest repharsing. |
Could it be also changed here ? |
@lolodomo Thx! I changed the file also and pushed it to fork / the PR. |
This syntax is certainly wrong. I was not aware that it is possible to enter multiple lines in a setting, either through UI or config file. |
Maybe like that ?
or using
To be tested first. |
@lolodomo Thx, I tested different settings, the only thing that worked was writing the MAC addresses on a new line. If something else works, I would be grateful for information. |
Like that ?
If you tested it and it worked, please update the README file. |
@lolodomo I've configured the binding in the UX / UI only, not via text file direct, as described above. :-) This setup above shown in the screenshots works in my OH installation. All other various settings, that I tested (comma separated, semicolon separated, blank space separated) didn't worked. To be clear: All in the UX / UI, not in the text file directly. :-) |
Why close it? It still needs to be merged. Your changes are good. We need to also fix the readme.md |
I see the "multiple" attribute that is certainly the trigger for UI: openhab-addons/bundles/org.openhab.binding.tr064/src/main/resources/OH-INF/thing/thing-types.xml Line 147 in f9695f2
If we don't know what is the syntax in config file, I suggest to at least update the example in README to have only one Mac address. |
@lsiepel Sorry, I'm not a hardcore programmer and had some issues with a the DCO check in the PR, which I couldn't get fixed. The original error was a translation error which is resolved already. So I choosed to close the PR :-) I test the setting in the text file described from @lolodomo above an will come back to here. |
No problem. The DCO will probably not be an issue as this is only a minor (but useful) documentation correction. |
I've teste differend configuration versions in the file configuration fritzbox.things (which I created for the test). As @lolodomo said above, the one that is working with the text file and multiple mac-addresses is:
In the Web UI (will name it "gui" in the following :-)) the configuration is shown as in the picture: I guess that the translation "error" in german is based here. So if I would configure the binding and its subchannels via text file, the behavior is different from the gui. When I configure the mac addresses as above in the gui, no channels would be shown under "Channels": The openhab.log writes down the following errors:
I've also tested this configuration in the gui: But with the same result, an error in the openhab.log:
When I change the config in the gui as shown here: The regarding MAC-Addresses showing up in "Channels": Hope that helps :-) |
The problem is probably the conjunction of "multiple" and list as parameter. I would suggest to not hurry and to propose a clean fix. |
I am currently searching what other bindings use this "multiple" parameter attribute to maybe find the proper syntax and to see how this parameter is handled. |
In addition to tr064 binding, it is used in the following bindings:
|
@Spiev Only thing left here is to make a small change to the readme.md to clarify the lines vs comma I think this:
Can be altered to something like:
|
In the opehab binding configuration for the tr064 LANDevice configuration is wrong. It says, that (translate from german in english):
comma separated list of MAC-Addresses.
But this dosen't work :-D
The setting requires "one MAC-Address per row".
I did the changes already to the files where I found the corresponding wording.