mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 20:34:20 +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.
52 lines
2.2 KiB
JSON
52 lines
2.2 KiB
JSON
{
|
|
"title": "明るさの自動調整",
|
|
"services": {
|
|
"change_switch_settings": {
|
|
"fields": {
|
|
"sunrise_offset": {
|
|
"description": "日の出時間を基準に秒単位で正値もしくは負値で調整する。⏰"
|
|
},
|
|
"only_once": {
|
|
"description": "一度だけ明るさを自動調整するには(`true`)、常に自動調整し続ける場合は(`false`)。"
|
|
},
|
|
"sunset_offset": {
|
|
"description": "日の入時間を基準に秒単位で正値もしくは負値で調整する。⏰"
|
|
},
|
|
"entity_id": {
|
|
"description": "スイッチのエンティティID。 📝"
|
|
}
|
|
}
|
|
},
|
|
"apply": {
|
|
"fields": {
|
|
"lights": {
|
|
"description": "適応する照明(か照明のリスト)の設定。 💡"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"options": {
|
|
"step": {
|
|
"init": {
|
|
"data": {},
|
|
"data_description": {},
|
|
"title": "明るさの自動調整オプション",
|
|
"menu_options": {
|
|
"advanced": "詳細オプションを設定",
|
|
"finish": "保存して終了"
|
|
}
|
|
},
|
|
"advanced": {
|
|
"title": "詳細設定",
|
|
"description": "Adaptive Lightingの詳細オプションを設定します。ほとんどのユーザーはこれらの設定を変更する必要はありません。",
|
|
"data": {
|
|
"adapt_only_on_bare_turn_on": "adapt_only_on_bare_turn_on: 最初に照明オンにするとき。`true`を設定すると、AL(適応型照明)は調色や明るさを指定せずや`light.turn_on`をしたときのみ適応します。❌🌈 例えば、適応型照明をシーンを有効にするときにしないようにする。`false`であれば、`service_data`に最初から、ALはシーンの状態に関係なく調色や明るさを適応する。`take_over_control`を有効にすることが必要。🕵️ "
|
|
},
|
|
"data_description": {
|
|
"sunrise_offset": "日の出時間を基準に秒単位で正値もしくは負値で調整する。⏰",
|
|
"sunset_offset": "日の入時間を基準に秒単位で正値もしくは負値で調整する。⏰"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|