I made this change, using the newer Unix-format version of the file, but a word of warning… This puts us squarely into Bug 1501 territory.
Anyone attempting to use the Sonos plugin that already has any of the other AV Plugins using avmisc1 (Onkyo, Denon, etc) will find that the UI changes to one that breaks them.
You may want to chime in with commentary on that bug directly.
This is a device type, which a lot of the Control points key off of for one reason or another. When you define custom device-types it means that they often don’t see you (as an AV-Device, for example) since they’re keying off this (instead of say, the services used).
What tends to happen is that you define a new type, and then a lot of other things break. Either way, Bug 1501 should never happen since it ties all devices of a given Device Type to a single Device’s UI (as defined by the device-specific JSON file). Then, at runtime, it “picks one” (seemingly randomly) of those UI’s and uses it.
FLORIN: Can we get Bug 1501 fixed once and for all? We see repeated cases where the implemented-behavior is not the desired-behavior.
[quote=“lolodomo, post:328, topic:169644”][quote=“lolodomo, post:327, topic:169644”]I would like first to solve the problem with the device not correctly initialized in the dashboard after a lua reload. The problem is similar in IE9 and Firefox. It looks like the json file is not correctly loaded because when I open the Control tab, I only see a label “Device settings”, a label not defined in the json file !
To get again a correct display of the device, you systematically need to reload the web page.
It could be a bug due to the firmware, but I don’t see such a problem with other plugins, so there is certainly a way to avoid that problem.[/quote]
I found and fixed the bug.
In the JSON file, you must replace the line at the end
"DeviceType": "generic_device"
by
"DeviceType": "urn:schemas-micasaverde-com:device:avmisc:1"
Doing that, the device is now ok after each reload.
Note that redefining the device type in the JSON file is something I never understood why it is required…
Regarding the type of the device, why this choice of “urn:schemas-micasaverde-com:device:avmisc:1” ? We should not define a specific type for Sonos ?[/quote]