-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[roku] representation-property seems to be tied to an unused field #16164
Comments
Yes, these were manually added TVs. It's my understanding that the intention is even manually added devices should be able to be tracked to orevent duplicate entries in the inbox. Perhaps the uuid field needs to be exposed to be manually set in this case? Could you rely on the serial number or something else that's discoverable instead? |
Right now the uuid is the serial number obtained from the ssdp packet. I guess the thing configuration could be updated by the handler to add the uuid/serial number. Something like this maybe (AFAIK, won't work on things provisioned from a file):
Or just use the ignore button in the inbox? |
Given that uuid is just the serial number, is there any reason for uuid to exist at all? My understanding of representation-property is that as soon as the property is set (either through discovery or once it comes online and the binding sets it) the inbox will auto match and hide it. |
Try adding this in RokuHandler line 116: thing.setProperty(PROPERTY_UUID, deviceInfo.getSerialNumber().toLowerCase()); |
I'll make a branch and try to monkey with it this weekend. |
That worked for the roku_tv devices in the inbox. I still get a duplicate entry of roku_player for 6 out of 10 of them (and it's unclear to me why 4 don't show up, they all have the proper is-tv in the xml). |
https://github.com/morph166955/openhab-addons/tree/roku-16164 branch is here. |
I have a possible answer to the 6/10 issue. Those devices are all new in the house. I'm wondering if while they were going through the setup process they were not announcing properly as TVs. I deleted and rescanned and now they aren't coming back. |
I noticed that my inbox has entries for all of my Roku devices despite them being added already. I believe this may be due to the fact that the representation-property in the xml is tied to a uuid field which doesn't seem to exist. From what I can tell this may need to be changed to the serial number instead.
https://github.com/openhab/openhab-addons/blob/706ae583239d0fbfaffd8d38564fdbf62697f56b/bundles/org.openhab.binding.roku/src/main/resources/OH-INF/thing/roku.xml#L34C4-L34C27
The text was updated successfully, but these errors were encountered: