-
-
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
[sonyprojector] SDDP Invalid Characters #16964
Comments
A few more similar ones threw
|
@andrewfg there is a problem with the Mac address provided by the core framework. |
@morph166955 could you please turn on log:set TRACE org.openhab.core.config.discovery.sddp and show the result? |
@morph166955 : please also check the new thing property "MAC address" of your existing thing and tell us what value is set. At the very end, we have to be sure this MAC address and the one coming from SDDP stuff (discovery) are identical. |
See openhab/openhab-core#4284 for solution.. |
I don't have the ability to pull a trace at the moment, but I was able to pull the thing property and it obviously looks odd. I can try to pull the trace this week. |
@morph166955 from reverse engineering your error logs our hypothesis is that the mac address part of the host header field of the sddp notification is unexpectedly encoded with colon delimiters rather than without. And based on that, there is an OH core fix in the works. So once that fix is merged, it would be good if you can test the respective latest snapshot. |
@lolodomo where is the mac address property coming from? I assume it is taken from somewhere else than the sddp discovery because it is also present on manually configured things. If that is the case then there may also be a second issue concerning that property which is binding specific. Or?? |
Yes, it is retrieved using the dedicated protocol. I am going to check if I made a stupid error. If not, the solution would be to remove the representation properly ... at least until a better solution is found. |
The core PR will provide a dash delimited lowercase hex mac address (the extra colon delimiters are taken out). So the two macs should be normalised to a common format if they will be used as a representation property. Note: it may be that the OP's projector delivers extra colon delimiters by sddp and by the api, so in any case it would be good practice for the binding to renormalise the casing and the delimiters. |
Look at the value returned by the API in the screen capture, it looks very strange, kind of encoded. |
Indeed. The log shows a mac address This means that the I suppose this binding bug has always been present; and certainly predates the issue reported here. EDIT: @lolodomo I can easily make a PR to fix EDIT 2: the code is here...
EDIT 3: see #16972 |
The code is very new and I was not able to test it. |
Very interesting, thank you for finding that. |
@morph166955 : @andrewfg just fixed the bug with the the retrieval of the MAC address. I am asking myself if we don't have the same issue when retrieving the model name. Can you please enable binding DEBUG logs and then set model to "AUTO" in your thing. Please tell us what shows the log starting with "getModelName returned ". Edit: it is just to be sure, I would be surprised that the current method is not good. |
Closed by openhab/openhab-core#4284 |
As an outsider it is not obvious that there would be the same issue. A model name is always a text string, so it would always be encoded in one of the existing standard character sets. By contrast a mac address is actually physically an array of bytes, which might be transmitted verbatim as an array of bytes or encoded as a (delimited) array of text characters. |
@morph166955 : you can try snapshot 4153 that should normally fix all problems discussed in this issue. Let us know your feedback. |
I believe this is related to #16849
Just updated today (on snapshot 4148 now) and I'm getting this at startup.
The text was updated successfully, but these errors were encountered: