feat: KVZ API JSON Data

This commit is contained in:
ISA
2025-07-31 13:44:30 +02:00
parent 97eb40e1c6
commit 421e1f5425
18 changed files with 750 additions and 143 deletions

View File

@@ -44,6 +44,10 @@ interface KueDataState {
memoryInterval: number[];
// Fallsensors
win_fallSensorsActive: number[];
// KVZ System - 32 Slots mit je 4 LEDs
kvzPresence: number[]; // 32 Werte: 1 = KVZ vorhanden, 0 = nicht vorhanden
kvzActive: number[]; // 32 Werte: 1 = KVZ aktiviert, 0 = deaktiviert
kvzStatus: number[]; // 128 Werte: 4 LEDs pro Slot (32 * 4)
}
const initialState: KueDataState = {
@@ -89,6 +93,10 @@ const initialState: KueDataState = {
memoryInterval: [],
// Fallsensors
win_fallSensorsActive: [], // Fallsensors aktiv
// KVZ System - 32 Slots mit je 4 LEDs
kvzPresence: new Array(32).fill(0), // 32 Slots: 1 = KVZ vorhanden, 0 = nicht vorhanden
kvzActive: new Array(32).fill(0), // 32 Slots: 1 = KVZ aktiviert, 0 = deaktiviert
kvzStatus: new Array(128).fill(0), // 128 LEDs: 4 LEDs pro Slot (32 * 4)
};
const kueDataSlice = createSlice({