mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 12:24: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.
57 lines
2 KiB
JSON
57 lines
2 KiB
JSON
{
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"data_description": {
|
|
"sleep_brightness": "Porcentaxe de brillo das luces en modo durmir. 😴",
|
|
"interval": "Frecuencia para adaptar as luces, en segundos. 🔄"
|
|
},
|
|
"title": "Configuración de Iluminación Adaptativa",
|
|
"menu_options": {
|
|
"advanced": "Configurar opcións avanzadas",
|
|
"finish": "Gardar e rematar"
|
|
},
|
|
"data": {}
|
|
},
|
|
"advanced": {
|
|
"title": "Configuración avanzada",
|
|
"description": "Configura as opcións avanzadas de Adaptive Lighting. A maioría dos usuarios non precisan cambiar esta configuración.",
|
|
"data": {},
|
|
"data_description": {
|
|
"send_split_delay": "Retraso (ms) entre `separate_turn_on_commands`",
|
|
"sunrise_offset": "Axusta a hora do amencer cun desfasamento positivo ou negativo en segundos. ⏰",
|
|
"sunset_offset": "Axusta a hora da posta de sol cun desfasamento positivo ou negativo en segundos. ⏰"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"title": "Iluminación Adaptativa",
|
|
"services": {
|
|
"change_switch_settings": {
|
|
"fields": {
|
|
"sleep_brightness": {
|
|
"description": "Porcentaxe de brillo das luces en modo durmir. 😴"
|
|
},
|
|
"only_once": {
|
|
"description": "Adaptar luces só cando estean acesas (`true`) ou mantelas adaptándose (`false`). 🔄"
|
|
},
|
|
"sunrise_offset": {
|
|
"description": "Axusta a hora do amencer cun desfasamento positivo ou negativo en segundos. ⏰"
|
|
},
|
|
"sunset_offset": {
|
|
"description": "Axusta a hora da posta de sol cun desfasamento positivo ou negativo en segundos. ⏰"
|
|
},
|
|
"transition": {
|
|
"description": "Duración da transición cando as luces cambian, en segundos. 🕑"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"title": "Escolle un nome para a instancia de Iluminación Dinámica"
|
|
}
|
|
}
|
|
}
|
|
}
|