Explorar el Código

add skip to automation

Karl Hudgell hace 6 meses
padre
commit
a057225e6f
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      home_assistant_automation.yaml

+ 16 - 0
home_assistant_automation.yaml

@@ -22,6 +22,12 @@ trigger:
     id: PAUSE
     to: PAUSE
     enabled: true
+  - platform: state
+    entity_id:
+      - sensor.floppy_player_device_status
+    id: SKIP
+    to: SKIP
+    enabled: true
 condition: []
 action:
   - if:
@@ -55,4 +61,14 @@ action:
           entity_id:
             - media_player.ytube_music_player
         data: {}
+  - if:
+      - condition: trigger
+        id:
+          - SKIP
+    then:
+      - service: media_player.media_next_track
+        target:
+          entity_id:
+            - media_player.ytube_music_player
+        data: {}
 mode: single