mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-24 19:04:19 +02:00
Users have complained about the overwhelming number of options (28+) in the configuration UI. This change splits the options into two steps: **Basic Settings (9 options):** - lights, min/max brightness, min/max color temp - sleep brightness, sleep color temp, transition, interval **Advanced Settings (20+ options):** - All other options (sunrise/sunset times, offsets, brightness modes, take_over_control, detect_non_ha_changes, etc.) The flow now works as: 1. User configures basic options 2. Menu appears: "Configure advanced options" or "Save and finish" 3. If advanced chosen, show advanced options form 4. Save combined options Changes: - Add BASIC_OPTIONS constant to const.py - Refactor OptionsFlowHandler with async_step_init, async_step_advanced, async_step_finish methods - Update strings.json with menu_options and advanced step - Update all 34 translation files with translated menu/titles - Update tests for multi-step flow Note for Weblate: After merging, run "Rescan all translation files" to pick up the new structure. Existing translations are preserved.
42 lines
1.8 KiB
JSON
42 lines
1.8 KiB
JSON
{
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"title": "Opcije prilagodljivog osvjetljenja",
|
|
"data_description": {},
|
|
"data": {},
|
|
"menu_options": {
|
|
"advanced": "Configure advanced options",
|
|
"finish": "Save and finish"
|
|
}
|
|
},
|
|
"advanced": {
|
|
"title": "Advanced Settings",
|
|
"description": "Configure advanced Adaptive Lighting options. Most users don't need to change these settings.",
|
|
"data": {
|
|
"adapt_only_on_bare_turn_on": "adapt_only_on_bare_turn_on: Prilikom početnog paljenja svjetla. Ako je postavljeno na \"true\", AL se prilagođava samo ako se \"light.turn_on\" pozove bez navođenja boje ili svjetline. ❌🌈 Ovo npr. sprječava prilagodbu prilikom aktiviranja scene. Ako je \"false\", AL se prilagođava bez obzira na prisutnost boje ili svjetline u početnim \"service_data\". Potrebno je omogućiti `take_over_control`. 🕵️ "
|
|
},
|
|
"data_description": {
|
|
"sunrise_offset": "Podesite vrijeme izlaska sunca s pozitivnim ili negativnim pomakom u sekundama. ⏰",
|
|
"sunset_offset": "Podesite vrijeme izlaska sunca s pozitivnim ili negativnim pomakom u sekundama. ⏰"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"title": "prilagodi svjetlinu",
|
|
"services": {
|
|
"change_switch_settings": {
|
|
"fields": {
|
|
"only_once": {
|
|
"description": "Prilagodi svjetla samo kada su uključena (true) ili ih neprestano prilagođavaj (false). 🔄"
|
|
},
|
|
"sunrise_offset": {
|
|
"description": "Podesite vrijeme izlaska sunca s pozitivnim ili negativnim pomakom u sekundama. ⏰"
|
|
},
|
|
"sunset_offset": {
|
|
"description": "Podesite vrijeme izlaska sunca s pozitivnim ili negativnim pomakom u sekundama. ⏰"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|