feat: KVZ API JSON Data
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user