From dd1b18148d6ba5f01c8e9f7e7e0c35e8ba366eac Mon Sep 17 00:00:00 2001
From: kuckuckmann <99131208+kuckuckmann@users.noreply.github.com>
Date: Thu, 28 Sep 2023 23:50:53 +0200
Subject: [PATCH] =?UTF-8?q?Updated=20Test=20=E2=80=90=20Wir=20testen=20hie?=
=?UTF-8?q?r=20was=20(markdown)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Test-‐-Wir-testen-hier-was.md | 393 ++++++++++++++++++++++++++++------
1 file changed, 330 insertions(+), 63 deletions(-)
diff --git a/Test-‐-Wir-testen-hier-was.md b/Test-‐-Wir-testen-hier-was.md
index 43a0c78..5f527ad 100644
--- a/Test-‐-Wir-testen-hier-was.md
+++ b/Test-‐-Wir-testen-hier-was.md
@@ -65,7 +65,43 @@ Auf dieser Seite testen wir was für die zukünftige Wiki
PageEntities
-## Card
+## CardEntities
+
+
+
+```
+let button2Page =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Büro',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.Schreibtischlampe'},
+ { id: 'alias.0.NSPanel_1.Deckenbeleuchtung'}
+ ]
+};
+```
+
+## CardEntities - Color Aliase 1
+
+
+
+```
+let Test_Licht1 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Color Aliase 1',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.TestRGBLichteinzeln', name: 'RGB-Licht Hex-Color', interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.TestRGBLicht', name: 'RGB-Licht', minValueBrightness: 0, maxValueBrightness: 100, interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.TestCTmitHUE', name: 'HUE-Licht-CT', minValueBrightness: 0, maxValueBrightness: 70, minValueColorTemp: 500, maxValueColorTemp: 6500, interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.TestHUELicht', name: 'HUE-Licht-Color', minValueColorTemp: 500, maxValueColorTemp: 6500, interpolateColor: true}
+ ]
+};
+```
+
+## CardEntities

@@ -73,76 +109,139 @@ Auf dieser Seite testen wir was für die zukünftige Wiki
```
-## Card
+## CardEntities - Color Aliase 2

```
-
+let Test_Licht2 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Color Aliase 2',
+ 'useColor': true,
+ 'items': [
+ //Beispiel für RGB Light mit neuem PageItem-Parameter colormode: "xy" alternativ colormode: "rgb" oder weglassen
+ //Steuert im z.B. DeConz Adapter unter Lampen die Farben per CIE (XY)
+ { id: "alias.0.NSPanel_2.WZ_E14_Fenster_rechts", name: 'Fensterbank rechts', minValueBrightness: 0, maxValueBrightness: 100, minValueColorTemp: 500, maxValueColorTemp: 150, interpolateColor: true, colormode: 'xy'},
+ { id: "alias.0.NSPanel_1.TestFarbtemperatur", name: 'Farbtemperatur', interpolateColor: true},
+ { id: "alias.0.NSPanel_1.TestFarbtemperatur", prefixName: 'Büro: ', name: "getState('0_userdata.0.Test.Wiki_Router').val", suffixName: '%', interpolateColor: true},
+ ]
+};
```
-## Card
+## CardEntities - Sonstige Aliase

```
-
+let Test_Funktionen =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Sonstige Aliase',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.TestLautstärke', offColor: MSRed, onColor: MSGreen, name: 'Echo Spot Büro', minValue: 0, maxValue: 100 },
+ { id: 'alias.0.NSPanel_1.TestTemperatur',name: 'Temperatur außen', icon: 'thermometer', onColor: White , colorScale: {'val_min': -20, 'val_max': 40, 'val_best': 20} },
+ { id: 'alias.0.NSPanel_1.TestFeuchtigkeit', name: 'Luftfeuchte außen', icon: 'water-percent', unit: '%H', onColor: White, colorScale: {'val_min': 0, 'val_max': 100, 'val_best': 65} },
+ //{ id: 'alias.0.NSPanel_1.TestInfo', name: 'Windstärke', icon: 'wind-power-outline', offColor: MSRed, onColor: MSGreen, unit: 'bft', minValue: 0, maxValue: 12, interpolateColor: true, useColor: true },
+ { id: 'alias.0.NSPanel_1.Ventilator.Fan_1',name: 'Ventilator', icon: 'fan', onColor: On, offColor: HMIOff, modeList: ['Low', 'Medium', 'High', 'Move', 'Sleep', 'Auto', 'Manual']},
+ ]
+};
```
-## Card
+## CardEntities - Diverses

```
-
+let Buero_Seite_1 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Büro',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.Schreibtischlampe', interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.Deckenbeleuchtung', interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.Testlampe2', name: 'Filamentlampe', minValueBrightness: 0, maxValueBrightness: 70, interpolateColor: true},
+ { id: 'alias.0.NSPanel_1.Luftreiniger', icon: 'power', icon2: 'power',offColor: MSRed, onColor: MSGreen}
+ ]
+};
```
-## Card
+## CardEntities - Fenster und Türen

```
-
+let Fenster_1 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Fenster und Türen',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.TestFenster', offColor: MSRed, onColor: MSGreen, name: 'Büro Fenster'},
+ { id: 'alias.0.NSPanel_1.Haustuer', offColor: MSRed, onColor: MSGreen, name: 'Haustür'},
+ { id: 'alias.0.NSPanel_1.TestBlind', icon: "blinds-horizontal", offColor: White, onColor: Yellow, name: 'Büro', secondRow: 'Hier Text für 2. Zeile'},
+ { id: 'alias.0.NSPanel_1.TestDoorlock', offColor: MSRed, onColor: MSGreen, name: 'Türschloss'},
+ ]
+};
```
-## Card
+## CardEntities - Button Aliase

```
-
+let Button_1 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Button Aliase',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.TestTastensensor', name: 'Tastensensor (FFN)'},
+ { id: 'alias.0.NSPanel_1.Radio.NDR2', icon: 'radio', name: 'Taste (NDR2)', onColor: colorRadio, buttonText: 'starten'},
+ { id: 'alias.0.NSPanel_1.TestVentil1', icon: 'valve-open', icon2: 'valve-closed',offColor: MSRed, onColor: MSGreen, name: 'Test-Ventil 1'},
+ { id: 'alias.0.NSPanel_1.Radio.NDR2', icon: 'alarm-light', name: 'Alert mit Zielseite', offColor: MSGreen, onColor: MSRed, targetPage: 'Abfall', buttonText: 'Popup'},
+ ]
+};
```
-## Card
+## CardEntities - Navigate für Subpages

```
-
+let Subpages_1 =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Test Subpages',
+ 'useColor': true,
+ 'items': [
+ { navigate: true, id: 'alias.0.NSPanel_1.Abfall.event1', targetPage: 'Abfall', name: 'Abfallkalender'},
+ { navigate: true, id: null, targetPage: 'WLAN', onColor: White, name: 'Gäste WLAN'},
+ ]
+};
```
-## Card
+## CardEntities - Abfallkalender

```
-
-```
-
-## Card
-
-
-
-```
-
-```
-
-## Card
-
-
-
-```
-
+let Abfall =
+{
+ 'type': 'cardEntities',
+ 'heading': 'Abfallkalender',
+ 'useColor': true,
+ 'subPage': true,
+ 'parent': Subpages_1,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.Abfall.event1',icon: 'trash-can'},
+ { id: 'alias.0.NSPanel_1.Abfall.event2',icon: 'trash-can'},
+ { id: 'alias.0.NSPanel_1.Abfall.event3',icon: 'trash-can'},
+ { id: 'alias.0.NSPanel_1.Abfall.event4',icon: 'trash-can'}
+ ]
+};
```
@@ -171,36 +270,72 @@ let SensorGrid = {
]};
```
-## Card
+## CardCrid2 - 8 statt 6 PageItems

```
-
+let Buero_Seite_2 =
+{
+ 'type': 'cardGrid2',
+ 'heading': 'Büro 2',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.Schreibtischlampe', name: 'Schreibtisch'},
+ { id: 'alias.0.NSPanel_1.Deckenbeleuchtung', name: 'Deckenlampe'},
+ { id: 'alias.0.NSPanel_1.TestFenster', offColor: MSRed, onColor: MSGreen, name: 'Büro Fenster'},
+ { id: 'alias.0.NSPanel_1.Luftreiniger', icon: 'power', offColor: MSRed, onColor: MSGreen},
+ { id: 'alias.0.NSPanel_1.TestBlind', icon: 'projector-screen', onColor: White, name: 'Beamer', secondRow: 'auch Text'},
+ { id: 'alias.0.NSPanel_1.Kippfenster', useValue: true },
+ { id: 'alias.0.NSPanel_1.Radio.Bob', icon: 'play', onColor: White, name: 'TuneIn'}
+ ]
+};
```
-## Card
+## CardGrid - Radiosender

```
-
+let Radiosender =
+{
+ 'type': 'cardGrid',
+ 'heading': 'Büro 2',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.Radio.Bob', icon: 'radio', name: 'Radio BOB', onColor: colorRadio},
+ { id: 'alias.0.NSPanel_1.Countdown', icon: 'timer-outline', name: 'Timer', onColor: White}
+ ]
+};
```
-## Card
+## CardCrid - WLED

```
-
-```
-
-## Card
-
-
-
-```
-
+let WLED =
+{
+ 'type': 'cardGrid',
+ 'heading': 'WLED Stripes WZ',
+ 'useColor': true,
+ 'items': [
+ { id: 'alias.0.NSPanel_1.WLED.Example.On', name: 'Power', icon: 'power', onColor: HMIOn, offColor: HMIOff},
+ { id: 'alias.0.NSPanel_1.WLED.Example.Sync', name: 'Sync', icon: 'sync', onColor: HMIOn, offColor: White},
+ { id: 'alias.0.NSPanel_1.WLED.Example.Presets', icon: 'heart-outline', name: 'Presets', onColor: White, modeList: ['Preset 0', 'Add Preset']},
+ { id: 'alias.0.NSPanel_1.WLED.Example.Colors', icon: 'palette', name: 'Colors', onColor: White,
+ modeList: ['Default', '* Color 1', '* Color Gradient', '* Colors 1&2', '* Colors Only', '* Random Cycle', 'Analogus','April Night', 'Aqua Flash', 'Atlantica', 'Aurora',
+ 'Beach', 'Beech', 'Blink Red', 'Breeze', 'C9', 'C9 New', 'Candy', 'Candy2', 'Cloud',
+ 'Cyane', 'Departure', 'Drywet', 'Fairy Reaf', 'Fire', 'Forest', 'etc'
+ ]},
+ { id: 'alias.0.NSPanel_1.WLED.Example.Effects', icon: 'emoticon-outline', name: 'Effects', onColor: White,
+ modeList: ['Solid', 'Android', 'Aurora', 'Blends', 'Blink', 'Blink Rainbow', 'Bouncing Balls','Bpm', 'Breathe', 'Candle', 'Candle Multi',
+ 'Candy Cane', 'Chase', 'Chase 1', 'Chase 2', 'Chase 3', 'Chase Flash', 'Chase Flash Rnd', 'Chase Rainbow', 'Chase Random',
+ 'Chunchun', 'Colorful', 'Colorloop', 'Colortwinkles', 'Colorwaves', 'Dancing Shadows', 'etc'
+ ]},
+ { id: 'alias.0.NSPanel_1.WLED.Example.Segments', icon: 'layers', name: 'Segments', onColor: White, modeList: ['Segment 0', 'Add Segment']},
+ ]
+};
```
@@ -209,36 +344,113 @@ let SensorGrid = {
PageMedia
-## Card
+## CardMedia - Alexa

```
-
+// NEW: Neue Definition von Medien-Aliasen
+// adapterPlayerInstance = alexa2.0. or spotify-premium.0. or sonos.0. or chromecast.0.
+let Alexa =
+{
+ 'type': 'cardMedia',
+ 'heading': 'Alexa',
+ 'useColor': true,
+ 'items': [{
+ id: AliasPath + 'Media.PlayerAlexa',
+ adapterPlayerInstance: 'alexa2.0.',
+ mediaDevice: 'G0XXXXXXXXXXXXXX',
+ speakerList: ['Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'],
+ //analog alexa2 Music-Provider
+ playList: ['Spotify-Playlist.PartyPlaylist',
+ 'Amazon-Music-Playlist.Mein Discovery Mix',
+ 'My-Library-Playlist.2020',
+ 'My-Library-Playlist.2021',
+ 'TuneIn.Radio Bob Rock',
+ 'TuneIn.NDR2',
+ 'Spotify-Playlist.Sabaton Radio',
+ 'Spotify-Playlist.Rock Party',
+ 'Spotify-Playlist.This Is Nightwish',
+ 'Spotify-Playlist.Metal Christmas'],
+ equalizerList: ['Bassboost','Klassik','Dance', 'Deep', 'Electronic', 'Flat', 'Hip-Hop', 'Rock',
+ 'Metal', 'Jazz', 'Latin', 'Tonstärke', 'Lounge', 'Piano'],
+ colorMediaIcon: colorAlexa,
+ colorMediaArtist: Yellow,
+ colorMediaTitle: Yellow,
+ autoCreateALias : true
+ }]
+};
```
-## Card
+## CardMedia - Sonos

```
-
+let Sonos =
+{
+ 'type': 'cardMedia',
+ 'heading': 'Sonos',
+ 'useColor': true,
+ 'items': [{
+ id: AliasPath + 'Media.PlayerSonos',
+ adapterPlayerInstance: 'sonos.0.',
+ mediaDevice: '192_168_1_212',
+ speakerList: ['Terrasse'],
+ colorMediaIcon: colorSpotify,
+ colorMediaArtist: Yellow,
+ colorMediaTitle: Yellow,
+ autoCreateALias : true
+ }]
+};
```
-## Card
+## CardMedia - Spotify-Premium

```
-
+let SpotifyPremium =
+{
+ 'type': 'cardMedia',
+ 'heading': 'Spotify-Premium',
+ 'useColor': true,
+ 'items': [{
+ id: AliasPath + 'Media.PlayerSpotifyPremium',
+ adapterPlayerInstance: "spotify-premium.0.",
+ speakerList: ['LENOVO-W11-01', 'Terrasse','Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche',
+ 'Echo Spot Buero'],
+ playList: ['PartyPlaylist','Sabaton Radio','Rock Party','This Is Nightwish','Metal Christmas'],
+ repeatList: ['off','context','track'],
+ equalizerList: ['Bassboost','Klassik','Dance', 'Deep', 'Electronic', 'Flat', 'Hip-Hop', 'Rock',
+ 'Metal', 'Jazz', 'Latin', 'Tonstärke', 'Lounge', 'Piano'],
+ colorMediaIcon: colorSpotify,
+ colorMediaArtist: Yellow,
+ colorMediaTitle: Yellow,
+ autoCreateALias : true
+ }]
+};
```
-## Card
+## CardMedia - SqueezeboxRPC

```
-
+let SqueezeboxRPC =
+{
+ 'type': 'cardMedia',
+ 'heading': 'SqueezeboxRPC',
+ 'useColor': true,
+ 'items': [{
+ id: 'alias.0.Media.LMS',
+ adapterPlayerInstance: 'squeezeboxrpc.0',
+ speakerList: ['SqueezePlay'],
+ mediaDevice: 'SqueezePlay',
+ playList: ['Playlist'],
+ autoCreateALias : true
+ }]
+};
```
@@ -247,28 +459,71 @@ let SensorGrid = {
PageThermo
-## Card
+## CardThermo - Thermostat

```
-
+let Buero_Themostat =
+{
+ 'type': 'cardThermo',
+ 'heading': 'Test Thermostat',
+ 'useColor': true,
+ 'items': [{
+ id: 'alias.0.NSPanel_1.Thermostat_Buero',
+ minValue: 50,
+ maxValue: 300,
+ stepValue: 5
+ }]
+};
```
-## Card
+## CardThermo - Klimaanlage

```
-
+let Buero_Klimaanlage =
+{
+ 'type': 'cardThermo',
+ 'heading': 'Test Klimaanlage',
+ 'useColor': true,
+ 'items': [{
+ id: 'alias.0.NSPanel_1.TestKlimaanlage',
+ minValue: 50,
+ maxValue: 250,
+ stepValue: 5,
+ iconArray: ['power-standby','air-conditioner','snowflake','fire','alpha-e-circle-outline','fan','water-percent','swap-vertical-bold'],
+ popupThermoMode1: ['Auto','0','1','2','3'],
+ popupThermoMode2: ['Auto','0','1','2','3','4','5'],
+ popupThermoMode3: ['Auto','Manual','Boost',],
+ popUpThermoName: ['Schwenk-Modus', 'Speed', 'Temperatur'],
+ icon: 'fan',
+ setThermoAlias: ['MODE1','MODE2','MODE3'],
+ //setThermoDestTemp2: 'ACTUAL2'
+ }]
+};
```
-## Card
+## CardThermo - Wärmepumpe

```
-
+let Pool_Waermepumpe =
+{
+ 'type': 'cardThermo',
+ 'heading': 'Pool Wärmepumpe',
+ 'useColor': true,
+ 'items': [{
+ id: 'alias.0.NSPanel_1.Pool_Waermepumpe',
+ minValue: 100,
+ maxValue: 300,
+ stepValue: 5,
+ iconArray: ['power-standby','alpha-a-circle-outline','snowflake','fire'],
+ //iconArray: ['power-standby','air-conditioner','snowflake','fire','alpha-e-circle-outline','fan','water-percent','swap-vertical-bold'],
+ }]
+};
```
@@ -277,20 +532,32 @@ let SensorGrid = {
PageAlarm & PageUnlock
-## Card
+## CardAlarm

```
-
+let Buero_Alarm =
+{
+ 'type': 'cardAlarm',
+ 'heading': 'Alarmanlage',
+ 'useColor': true,
+ 'items': [{ id: 'alias.0.Alarm' }]
+};
```
-## Card
+## CardUnlock

```
-
+let Unlock_Service =
+{
+ 'type': 'cardUnlock',
+ 'heading': 'Service Pages',
+ 'useColor': true,
+ 'items': [{ id: 'alias.0.Unlock', targetPage: 'NSPanel_Service' }]
+};
```