mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-25 17:02:14 +01:00
inhalt
@@ -266,33 +266,6 @@ Der QR Code funktioniert auf manchen Android Geräten nicht.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
```typescript
|
|
||||||
let Seitenname: PageType =
|
|
||||||
{
|
|
||||||
"type": "cardThermo",
|
|
||||||
"heading": "Test Klimaanlage",
|
|
||||||
"useColor": true,
|
|
||||||
"items": [{
|
|
||||||
id: "alias.0.NSPanel_1.TestKlimaanlage",
|
|
||||||
minValue: 50,
|
|
||||||
maxValue: 250,
|
|
||||||
stepValue: 5,
|
|
||||||
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'
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
**Parameter:**
|
|
||||||
minValue: Minimale einzustellende Temperatur (Beispiel: 17°C entspricht 170)
|
|
||||||
maxValue: Maximale einzustellende Temperatur (Beispiel: 30,5°C entspricht 305)
|
|
||||||
stepValue: Schrittgröße der Temperaturänderungen (Beispiel: 0,5°C Schritte entspricht 5)
|
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
# cardPower (ab TS-Script v.3.4.1)
|
# cardPower (ab TS-Script v.3.4.1)
|
||||||
|
|||||||
@@ -52,224 +52,31 @@ let Seitenname: PageType =
|
|||||||
Die cardUnlock dient der Absicherung spezieller Seiten, die vor unbefugtem Zugriff (ggfs. Service Pages) geschützt werden sollen:
|
Die cardUnlock dient der Absicherung spezieller Seiten, die vor unbefugtem Zugriff (ggfs. Service Pages) geschützt werden sollen:
|
||||||

|

|
||||||
|
|
||||||
> Bei Benutzung der cardUnlock wird die Zielseite aus dem Page-Array herausgenommen. Die Target-Page sollte nicht als Top-Level-Page, sondern als Subpage definiert sein.
|
Details zur Erstellung sind hier erklärt. [Spezailseiten](https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-cardtypen#cardunlock-ab-v433)
|
||||||
|
|
||||||
im Datenpunkt **0_userdata.0.NSPanel.Unlock.UnlockPin** kann eine PIN vergeben werden. Default wird diese PIN als **0000** definiert.
|
|
||||||
|
|
||||||
Erstellung des Alias:
|
***
|
||||||
Die cardUnlock wird ab Version `4.3.3.3` mit einem Alias vom Gerätetyp `Feueralarm` automatisch erstellt. Die Erstellung des Alias und der zugehörigen Datenpunkte erfolgt, `sobald die cardUnlock erstmals eingebunden und aufgerufen` wird.
|
|
||||||
|
|
||||||
Unter 0_userdata.0... werden folgende Datenpunkte automatisch angelegt:
|
|
||||||

|
|
||||||
Die angelegte PIN-Nummer lässt sich unter "Wert" von "0000" in (siehe Beispiel) z.B. "1234" ändern.
|
|
||||||
|
|
||||||
Unter alias.0... wird folgender Alias automatisch angelegt:
|
|
||||||

|
|
||||||
|
|
||||||
**Beispiel der Seitenerstellung:** (im Service-Menü enthalten)
|
|
||||||
```typescript
|
|
||||||
//Level 0 (if service pages are used with cardUnlock)
|
|
||||||
let Unlock_Service: PageType =
|
|
||||||
{
|
|
||||||
'type': 'cardUnlock',
|
|
||||||
'heading': 'Service Pages',
|
|
||||||
'useColor': true,
|
|
||||||
'items': [{ id: 'alias.0.NSPanel.Unlock',
|
|
||||||
targetPage: 'NSPanel_Service_SubPage',
|
|
||||||
autoCreateALias: true }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
siehe auch:
|
|
||||||
* https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Service-Men%C3%BC und
|
|
||||||
* https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-Page-%E2%80%90-Typen_How-2_Beispiele#page-beispiele
|
|
||||||
|
|
||||||
Da die cardUnlock innerhalb eines "Smart Home" nur einmal erforderlich sein sollte, teilt sie die Datenpunkte mit allen weiteren NSPanels im Haus. Es ist darüber hinaus jedoch auch möglich, `weitere Seiten` über die `cardUnlock` nach dem gleichen Schema vor unbefugten Zugriffen mit dem vergebenen `PIN` zu schützen.
|
|
||||||
|
|
||||||
Hierzu muss lediglich eine weitere `Page` vom Typ `cardUnlock` definiert werden und das Ziel `targetPage` auf eine `vorhandene subPage` zeigen:
|
|
||||||
```
|
|
||||||
let Unlock_PageXYZ: PageType =
|
|
||||||
{
|
|
||||||
'type': 'cardUnlock',
|
|
||||||
'heading': 'Titel der Page',
|
|
||||||
'useColor': true,
|
|
||||||
'items': [{ id: 'alias.0.NSPanel.Unlock',
|
|
||||||
targetPage: 'Eine_weitere_Subpage',
|
|
||||||
autoCreateALias: true }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
# cardAlarm
|
# cardAlarm
|
||||||

|

|
||||||
|
|
||||||
(Erstellung des cardAlarm siehe [ioBroker ALIAS Definition](https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---FAQ-&-Anleitungen#2-alarm-page))
|
Details zur Erstellung sind hier erklärt. [Spezailseiten](https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-cardtypen#alarm-page)
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
```typescript
|
|
||||||
let Alarmseite: PageType =
|
|
||||||
{
|
|
||||||
"type": "cardAlarm",
|
|
||||||
"heading": "Alarm",
|
|
||||||
"useColor": true,
|
|
||||||
"subPage": false,
|
|
||||||
"items": [
|
|
||||||
{ id: 'alias.0.NSPanel.Alarm' }
|
|
||||||
actionStringArray: ['Vollschhutz','Zuhause','Nacht','Besuch','Ausschalten'], // Optional - ansonsten aus Sprachdatei
|
|
||||||
autoCreateALias: true }
|
|
||||||
]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
# cardMedia v2.0 (ab Release v3.9.0)
|
# cardMedia v2.0 (ab Release v3.9.0)
|
||||||

|

|
||||||
|
|
||||||
**Neue Elemente**
|
Eine umfassnende Erläuterung gibt es hier
|
||||||
* Shuffle (nach verfügbarkeit des Adapters)
|
[CardMedia der Komplette Leitfaden](https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-%E2%80%90-cardMedia-%E2%80%90-Der-komplette-Leitfaden)
|
||||||

|
|
||||||
|
|
||||||
* Neue Auswahl für Speakerauswahl/-wechsel
|
***
|
||||||

|
|
||||||
|
|
||||||
* Playlist
|
|
||||||

|
|
||||||
|
|
||||||
* Tracklist (Bei Playlist und falls verfügbar)
|
|
||||||

|
|
||||||
|
|
||||||
* Equalizer-Profile
|
|
||||||

|
|
||||||
[Link: Blockly für Klangsteuerung in der cardMedia](https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---FAQ-&-Anleitungen#12-equalizer-f%C3%BCr-cardmedia)
|
|
||||||
|
|
||||||
* Repeat (nach Verfügbarkeit des Adapters)
|
|
||||||

|
|
||||||
|
|
||||||
(Erstellung des "PageItem" siehe [ioBroker ALIAS Definition](https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-ALIAS-Definitionen))
|
|
||||||
|
|
||||||
> **Definition ab TS-Version 3.9.0** (Breaking Changes)
|
|
||||||
|
|
||||||
**alexa2-Adapter**
|
|
||||||
```typescript
|
|
||||||
let Alexa: PageType =
|
|
||||||
{
|
|
||||||
'type': 'cardMedia',
|
|
||||||
'heading': 'Alexa',
|
|
||||||
'items': [{
|
|
||||||
id: AliasPath + 'Media.PlayerAlexa',
|
|
||||||
adapterPlayerInstance: 'alexa2.0.',
|
|
||||||
mediaDevice: 'G0XXXXXXXXXXXXXX', // Eigene Seriennummer des primären Device einstellen
|
|
||||||
speakerList: ['Überall','Gartenhaus','Esszimmer','Heimkino','Echo Dot Küche','Echo Spot Buero'],
|
|
||||||
//analog alexa2 Music-Provider
|
|
||||||
//Mögliche Playlists:
|
|
||||||
playList: ['Spotify-Playlist.Party Playlist',
|
|
||||||
'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,
|
|
||||||
alwaysOnDisplay: true,
|
|
||||||
autoCreateALias: true
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
**spotify-premium Adapter**
|
|
||||||
```typescript
|
|
||||||
let SpotifyPremium: PageType =
|
|
||||||
{
|
|
||||||
"type": "cardMedia",
|
|
||||||
"heading": "Spotify-Premium",
|
|
||||||
"subPage": false,
|
|
||||||
"parent": undefined,
|
|
||||||
"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'],
|
|
||||||
//Favoriten Playlists aus Spotify in Liste eintragen
|
|
||||||
playList: ['Party Playlist','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,
|
|
||||||
alwaysOnDisplay: true,
|
|
||||||
autoCreateALias: true
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
**Volumio-Player**
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
let VolumioBoss: PageType =
|
|
||||||
{
|
|
||||||
'type': 'cardMedia',
|
|
||||||
'heading': 'Volumio-Büro',
|
|
||||||
'subPage': false,
|
|
||||||
'parent': undefined,
|
|
||||||
'items': [{
|
|
||||||
id: 'alias.0.NSPanel.Volumio-Boss',
|
|
||||||
adapterPlayerInstance: 'volumio.0.',
|
|
||||||
speakerList: [], /* this must, no function */
|
|
||||||
playList: [], /* empty for dynamic reading */
|
|
||||||
colorMediaIcon: colorSpotify,
|
|
||||||
colorMediaTitle: colorSpotify,
|
|
||||||
colorMediaArtist: Yellow,
|
|
||||||
alwaysOnDisplay: true,
|
|
||||||
autoCreateALias: true
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
### Parameter
|
|
||||||
|
|
||||||
**adapterPlayerInstance:** "alexa.0." oder "spotify-premium.0." oder "sonos.0." oder "chromecast.0." oder "squeezeboxrpc.0.Players.DeinPlayer.
|
|
||||||
|
|
||||||
**mediaDevice:**
|
|
||||||
* für "alexa.0.": Seriennummer oder Gruppennummer des primären Alexa-Device
|
|
||||||
* für "sonos.0.": IP-Adresse des Sonsos primären Sonos-Device (getrennt mit "_") --> Beispiel: 192_168_1_250
|
|
||||||
* für "spotify-premium.0.": Zeile kann gelöscht werden, da Spotify immer nur einen Speaker oder Gruppe steuern kann (automatische Ermittlung)
|
|
||||||
* für "chromecast.0.": Zeile kann gelöscht werden, da GoogleHome keine Funktionalitäten zum Wechseln von Lautsprechern zur Verfügung stellt
|
|
||||||
* für "squeezeboxrpc.0.": Zeile kann gelöscht werden, da squeezeboxrpc keine Funktionalitäten zum Wechseln von Lautsprechern zur Verfügung stellt
|
|
||||||
|
|
||||||
**speakerList:** (Namen und Reihenfolge der Speaker selbst bestimmen)
|
|
||||||
* für "alexa.0.": Device-Namen aus alexa2 möglich. Wenn leer [] , dann alle Devices des alexa2-Adapter
|
|
||||||
* für "sonos.0.": Zeile kann gelöscht werden, da Funktionalität zum schieben auf andere Devices im Sonos-Adapter nicht möglich
|
|
||||||
* für "spotify-premium.0.": Alle SmartDevice-Namen aus Spotify möglich (Im Gegensatz zu Alexa auch Smartphones und Rechner)
|
|
||||||
* für "chromecast.0.": Zeile kann gelöscht werden, da GoogleHome keine Funktionalitäten zum Wechseln von Lautsprechern zur Verfügung stellt
|
|
||||||
* für "squeezeboxrpc.0.": "Bekannte Player unter Players (aktuell keine Funktion)
|
|
||||||
|
|
||||||
# cardQR
|
# cardQR
|
||||||

|

|
||||||
|
|
||||||
Erstellung der cardQR siehe (https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker---FAQ-&-Anleitungen#5-qr-code-page) by Kuckuckmann
|
Details zur Erstellung sind hier erklärt. [Spezailseiten](https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-cardtypen#cardqr)
|
||||||
|
***
|
||||||
```typescript
|
|
||||||
let Seitenname: PageType =
|
|
||||||
{
|
|
||||||
"type": "cardQR",
|
|
||||||
"heading": "Deine Überschrift",
|
|
||||||
"useColor": true,
|
|
||||||
"subPage": false,
|
|
||||||
"parent": undefined,
|
|
||||||
"items": [{ id: "alias.0.NSPanel.Guest_Wifi" }] // Beispiel
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
**Parameter:**
|
|
||||||
```typescript
|
|
||||||
hidePassword: true,
|
|
||||||
autoCreateALias: true
|
|
||||||
```
|
|
||||||
|
|
||||||
# cardThermo
|
# cardThermo
|
||||||
|
|
||||||
@@ -286,34 +93,9 @@ autoCreateALias: true
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
```typescript
|
Details zur Erstellung sind hier erklärt. [Spezailseiten](https://github.com/joBr99/nspanel-lovelace-ui/wiki/NSPanel-cardtypen#cardthermo)
|
||||||
let Seitenname: PageType =
|
|
||||||
{
|
|
||||||
"type": "cardThermo",
|
|
||||||
"heading": "Test Klimaanlage",
|
|
||||||
"useColor": true,
|
|
||||||
"subPage": false,
|
|
||||||
"parent": undefined,
|
|
||||||
"items": [{
|
|
||||||
id: "alias.0.NSPanel_1.TestKlimaanlage",
|
|
||||||
minValue: 50,
|
|
||||||
maxValue: 250,
|
|
||||||
stepValue: 5,
|
|
||||||
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'
|
|
||||||
}]
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
**Parameter:**
|
***
|
||||||
minValue: Minimale einzustellende Temperatur (Beispiel: 17°C entspricht 170)
|
|
||||||
maxValue: Maximale einzustellende Temperatur (Beispiel: 30,5°C entspricht 305)
|
|
||||||
stepValue: Schrittgröße der Temperaturänderungen (Beispiel: 0,5°C Schritte entspricht 5)
|
|
||||||
|
|
||||||
# cardPower (ab TS-Script v.3.4.1)
|
# cardPower (ab TS-Script v.3.4.1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user