update yaml
This commit is contained in:
parent
35bc4430e6
commit
0644e9f647
@ -3,8 +3,8 @@ description: ""
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.floppy_player_current_disc
|
- sensor.floppy_player_current_disc_id
|
||||||
id: play song
|
id: disc_changed
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.floppy_player_device_status
|
- sensor.floppy_player_device_status
|
||||||
@ -15,22 +15,24 @@ trigger:
|
|||||||
- sensor.floppy_player_device_status
|
- sensor.floppy_player_device_status
|
||||||
id: PLAY
|
id: PLAY
|
||||||
to: PLAY
|
to: PLAY
|
||||||
|
enabled: true
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- sensor.floppy_player_device_status
|
- sensor.floppy_player_device_status
|
||||||
id: PAUSE
|
id: PAUSE
|
||||||
to: PAUSE
|
to: PAUSE
|
||||||
|
enabled: true
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- if:
|
- if:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- play song
|
- disc_changed
|
||||||
then:
|
then:
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data:
|
data:
|
||||||
media_content_id: "{{ states('sensor.floppy_player_current_disc_id') }}"
|
media_content_id: "{{ states('sensor.floppy_player_current_disc_id') | string }}"
|
||||||
media_content_type: "{{ states('sensor.floppy_player_current_disc_type') }}"
|
media_content_type: "{{ states('sensor.floppy_player_current_disc_type') | string }}"
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.ytube_music_player
|
entity_id: media_player.ytube_music_player
|
||||||
- if:
|
- if:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user