Closed mcclurec closed 3 years ago
The "new" schema you provided works as expected.
You may have to do a full restart of the UI for it to be picked up. Homebridge Settings -> Force Restart.
Closing the loop here on what the issue was... The npm link
ed development version didn't include the schema file. I had mistakenly only scp
'd the dist
directory, so the new plugin code was running, but the setting were displaying the default editor
Describe Your Problem: I have a Homebridge plugin I author called Homebridge Volumio Speakers which is for getting Volumio instances into Homekit. This week, I was doing some dev work for an upcoming version. One of the things I was updating was the
config.schema.json
to add a new optional field in a fold down layout. I'venpm built
the dev version,scp
'd the update to the homebridge server andnpm link
'd it. The new code for the plugin is running, but the setting UI now only shows the json text editor instead of the form version.I've tried rolling back the
config.schema.json
file, rebuilding and re-uploading, but the settings modal is still broken. I've tested the changes in the Angular Schema Form Playground linked in the developer docs, and my config works there as intended.Can you think of any reason why the setting config would default back to the json editor?
Old
config.schema.json
https://github.com/mcclurec/homebridge-volumio-speakers/blob/b4aabbdf115966911cf8cef9310f6182e37e7046/config.schema.jsonNew
config.schema.json
Logs:
Homebridge Config:
Screenshots:
Environment:
v12.18.4
6.14.6
v1.2.3
v4.36.0
Alpine Linux (3.12.0)
Docker