32ea23906f
- also component renaming Signed-off-by: Peter Siegmund <developer@mars3142.org>
116 lines
3.5 KiB
JSON
116 lines
3.5 KiB
JSON
{
|
|
"screens": [
|
|
{
|
|
"id": "main_menu",
|
|
"title": "Hauptmenü",
|
|
"items": [
|
|
{
|
|
"id": "menu_lights",
|
|
"type": "submenu",
|
|
"label": "Lichtsteuerung",
|
|
"targetScreenId": "lights_menu"
|
|
},
|
|
{
|
|
"id": "menu_external",
|
|
"type": "submenu",
|
|
"label": "externe Geraete",
|
|
"targetScreenId": "external_devices_menu"
|
|
},
|
|
{
|
|
"id": "menu_settings",
|
|
"type": "submenu",
|
|
"label": "Einstellungen",
|
|
"targetScreenId": "settings_menu"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lights_menu",
|
|
"title": "Lichtsteuerung",
|
|
"items": [
|
|
{
|
|
"id": "light_active",
|
|
"type": "toggle",
|
|
"label": "Einschalten",
|
|
"persistent": true,
|
|
"valueType": "bool",
|
|
"actionTopic": "home/lights/activate"
|
|
},
|
|
{
|
|
"id": "light_mode",
|
|
"type": "selection",
|
|
"label": "Modus",
|
|
"persistent": true,
|
|
"valueType": "int",
|
|
"items": [
|
|
{
|
|
"value": "1",
|
|
"label": "Tag"
|
|
},
|
|
{
|
|
"value": "2",
|
|
"label": "Nacht"
|
|
},
|
|
{
|
|
"value": "0",
|
|
"label": "Simulation"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "light_variant",
|
|
"type": "selection",
|
|
"label": "Variante",
|
|
"persistent": true,
|
|
"valueType": "int",
|
|
"visibleWhen": {
|
|
"itemId": "light_mode",
|
|
"value": "0"
|
|
},
|
|
"items": [
|
|
{
|
|
"value": "1",
|
|
"label": "Standard"
|
|
},
|
|
{
|
|
"value": "2",
|
|
"label": "Warm"
|
|
},
|
|
{
|
|
"value": "3",
|
|
"label": "Natur"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "external_devices_menu",
|
|
"title": "externe Geräte",
|
|
"items": [
|
|
{
|
|
"id": "empty",
|
|
"type": "label",
|
|
"label": "keine Einträge"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "settings_menu",
|
|
"title": "Einstellungen",
|
|
"items": [
|
|
{
|
|
"id": "ota_update",
|
|
"type": "action",
|
|
"label": "OTA Einspielen",
|
|
"actionTopic": "home/settings/ota_update"
|
|
},
|
|
{
|
|
"id": "mac_suffix",
|
|
"type": "label",
|
|
"label": "Device-ID"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |