Cleanup documentation, examples and repo
This commit is contained in:
+11
-11
@@ -6,7 +6,7 @@
|
||||
## players current state
|
||||
## USAGE:
|
||||
## substitutions:
|
||||
## music_card_enity_id: 'media_player.media_keuken_2'
|
||||
## music_card_entity_id: 'media_player.media_keuken_2'
|
||||
## package:
|
||||
## remote_package_files:
|
||||
## url: https://gitea.furb.it/kennyboy55/ESPHome_ButtonPlusV2
|
||||
@@ -110,25 +110,25 @@ color:
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
id: music_album
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
attribute: media_album_name
|
||||
on_value:
|
||||
- delay: 500ms
|
||||
- script.execute: update_main
|
||||
- platform: homeassistant
|
||||
id: music_artist
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
attribute: media_artist
|
||||
- platform: homeassistant
|
||||
id: music_title
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
attribute: media_title
|
||||
on_value:
|
||||
- delay: 500ms
|
||||
- script.execute: update_main
|
||||
- platform: homeassistant
|
||||
id: music_playerstate
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
on_value:
|
||||
- script.execute: update_all
|
||||
|
||||
@@ -194,34 +194,34 @@ script:
|
||||
- homeassistant.action:
|
||||
action: media_player.volume_up
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
- id: music_card_vol_down
|
||||
then:
|
||||
- homeassistant.action:
|
||||
action: media_player.volume_down
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
- id: music_card_next
|
||||
then:
|
||||
- homeassistant.action:
|
||||
action: media_player.media_next_track
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
- id: music_card_prev
|
||||
then:
|
||||
- homeassistant.action:
|
||||
action: media_player.media_previous_track
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
- id: music_card_playpause
|
||||
then:
|
||||
- homeassistant.action:
|
||||
action: media_player.media_play_pause
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
- id: music_card_power
|
||||
then:
|
||||
- homeassistant.action:
|
||||
action: media_player.toggle
|
||||
data:
|
||||
entity_id: ${music_card_enity_id}
|
||||
entity_id: ${music_card_entity_id}
|
||||
|
||||
Reference in New Issue
Block a user