mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-03-05 11:06:51 +01:00
Updated ioBroker ALIAS Definitionen (markdown)
@@ -246,7 +246,11 @@ Bereits in der FAQ & Anleitung beschrieben: https://github.com/joBr99/nspanel-lo
|
||||
### Medien - cardMedia
|
||||
|
||||
**Skript zum Anlegen eines Spotify-Premium - media-Alias (ab Version 3.3.2)**
|
||||
`
|
||||
|
||||
<details>
|
||||
<summary>Blockly</summary>
|
||||
|
||||
```
|
||||
const aliasPath = 'alias.0.NSPanel_1.Media';
|
||||
const aliasDevice = 'PlayerSpotifyPremium';
|
||||
//Ergibt alias.0.NSPanel_1.Media.PlayerSpotifyPremium.
|
||||
@@ -298,7 +302,8 @@ createAlias(aliasPath + '.' + aliasDevice + '.STOP', 'STOP', spotifyPremiumInsta
|
||||
createAlias(aliasPath + '.' + aliasDevice + '.STATE', 'STATE', spotifyPremiumInstanz + 'player.isPlaying', '', 'state', 'media.state', 'boolean');
|
||||
createAlias(aliasPath + '.' + aliasDevice + '.VOLUME', 'VOLUME', spotifyPremiumInstanz + 'player.volume', '', 'state', 'level.volume', 'boolean');
|
||||
createAlias(aliasPath + '.' + aliasDevice + '.VOLUME_ACTUAL', 'VOLUME_ACTUAL', spotifyPremiumInstanz + 'player.volume', '', 'state', 'value.volume', 'boolean');
|
||||
`
|
||||
```
|
||||
</details>
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user