-
Notifications
You must be signed in to change notification settings - Fork 384
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
Unable to save on UI Advanced Settings form #2256
Comments
Options:Option 1:Remove strict validation
Note: This is not an option because that defeats the purpose of validating that the saved values are logically meaningful for the plugin. Option 2:Remove required for
homebridge-config-ui-x/config.schema.json Line 44 in 81ba0bd
and from
homebridge-config-ui-x/config.schema.json Line 197 in 81ba0bd
Note: This is also not an option because that defeats the purpose of validating that the saved values are logically meaningful for the plugin and also because the following fields are required and have default values:
Option 3:When saving the form, check that all required values are present. Note: This is going to unnecessarily complicate the code for maintenance Option 4:Provide the default values in the definition of
and
|
This may need to be updated with the default values for the required fields: homebridge-config-ui-x/src/bin/hb-service.ts Lines 883 to 892 in feba9ac
After reviewing the code, I don't believe this should need to be changed as this is called when a config doesn't exist yet. |
Hi @justjam2013 I am unable to recreate this from your ideas. I've trimmed my config down to the following for config-ui-x (and restarted) {
"name": "Config",
"port": 8581,
"platform": "config"
}, Yet when I go to the advanced settings form I still see a green tick at the bottom. There are some advanced settings that are only available when not running in service mode, which are filtered out from the homebridge-config-ui-x/src/modules/plugins/plugins.service.ts Lines 783 to 797 in d3ef93a
So I wonder if this has anything to do with the exclamation mark that you were seeing? Just a thought. |
I have updated my "Dev" instance to HB UI v5.0.0-beta.24 and Node.js 22.12.0 since opening this ticket (see below). Dev setup: I have tried replacing the Prod setup: Any thoughts on what else I can check? =============================================================== Dev Config:{
"bridge": {
"name": "Homebridge D459",
"username": "0E:E3:8A:15:D4:59",
"port": 51046,
"pin": "XXX-XX-XXX",
"advertiser": "bonjour-hap"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config",
"tempUnits": "f",
"theme": "orange",
"lightingMode": "auto"
},
{
...
"platform": "VirtualAccessoriesForHomebridge"
}
]
} Prod Config:{
"bridge": {
"name": "Homebridge 4FAF",
"username": "0E:25:8B:8B:4F:AF",
"port": 51732,
"pin": "XXX-XX-XXX",
"advertiser": "bonjour-hap"
},
"accessories": [
...
],
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "dark-mode",
"tempUnits": "f",
"lang": "auto",
"platform": "config"
},
{
...
"platform": "RandomDelaySwitches"
},
{
...
"platform": "esphome"
},
{
...
"platform": "HomepodRadioPlatform"
},
{
...
"platform": "VirtualAccessoriesForHomebridge"
}
],
"disabledPlugins": []
} |
In your 'prod' config, But this does not align with
Since I would expect your prod instance to show the red ! due to the incorrect theme. |
The value "dark-mode" is from an older version of Homebridge UI, as I distinctly remember when the UI changed to Orange, but as I liked the orange I actually never manually changed it myself. And as I never changed it to any other color, it was never updated in the config. |
Describe The Bug
I opened the
UI Advanced Settings
form. The red exclamation sign was displayed and theSave
button was disabled.I checked all the sections on the form and the only field marked as required is the
Homebridge UI Authentication
dropdown, which hasRequire Authentication
selected:I tried selecting
None
from the dropdown, thenRequire Authentication
again, but there was no change in the state of theSave
button.I tried entering values in every single field and selecting every single checkbox on the form, but there was no change in the state of the
Save
button.Logs
No response
Config
No response
Homebridge UI Version
5.0.0-beta.13
Homebridge Version
1.8.5
Node.js Version
22.9.0
Operating System
macOS
Environment Info
Using hb-service
Raspberry Pi Model
None
The text was updated successfully, but these errors were encountered: