Replace custom_m.html with jsonCustom.json for Admin 5 compatibility #1219
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #723
Overview
Admin 5 no longer supports
custom_m.html
for custom state settings and requires a JSON-based configuration format instead. This PR replacescustom_m.html
generation with the newjsonCustom.json
format.Changes
When the "Custom options for states" feature is selected during adapter creation, the tool now generates only:
admin/jsonCustom.json
- New JSON Config format required for Admin 5Note:
custom_m.html
is no longer generated as Admin 5 does not support it.Example jsonCustom.json
Key Features
jsonConfig.json
custom_m.html
(enabled, interval, state, setAck)jsonCustom.json
jsonCustom.json
filesMigration for Existing Adapters
If you have an existing adapter with
custom_m.html
, you need to migrate toadmin/jsonCustom.json
for Admin 5 compatibility. See documentation for migration steps.References
Original prompt
Fixes #723
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.