Schalter „Alle Kategorien“: automatischer Wechsel durch alle Effekte

Neues Feld allCategories in /api/state (nach dem Einschalten false),
in der App ein zweiter Schalter unter „Automatisch wechseln“.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mikeandClaude Opus 5.5 committed 2026-11-16 15:28:42 +01:00
1 parent e5e424a7a6
commit f8360c31f6
9 files changed
+39 -10

No files matched your search

+3
View File
@@ -4,6 +4,8 @@ import Foundation
struct CubeState: Codable, Equatable {
var effect: String
var auto: Bool
/// automatisch durch alle Kategorien statt nur die laufende (fehlt bei älterer Firmware)
var allCategories: Bool?
var brightness: Int
}
@@ -25,6 +27,7 @@ struct CubeEffect: Codable, Identifiable, Hashable {
struct CubeStatePatch: Encodable {
var effect: String?
var auto: Bool?
var allCategories: Bool?
var brightness: Int?
}