panzerbrummbar

Deeplink Morning

Jan 30th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. alias: Turn On TV In The Morning Weekend
  2. description: ""
  3. triggers:
  4. - entity_id:
  5. - binary_sensor.wake_up_house
  6. to: "on"
  7. trigger: state
  8. enabled: true
  9. conditions:
  10. - condition: state
  11. entity_id: media_player.living_room_tv
  12. state: "off"
  13. enabled: true
  14. actions:
  15. - data: {}
  16. target:
  17. entity_id: media_player.nvidia_living_room
  18. action: media_player.turn_on
  19. enabled: true
  20. - wait_template: "{{ is_state('media_player.living_room_tv', 'on') }}"
  21. continue_on_timeout: false
  22. - data:
  23. volume_level: 0.14
  24. target:
  25. entity_id: media_player.living_room_tv
  26. action: media_player.volume_set
  27. - metadata: {}
  28. action: androidtv.adb_command
  29. data:
  30. command: >-
  31. am start -a android.intent.action.VIEW -d
  32. https://www.discoveryplus.com/my-list
  33. target:
  34. entity_id: media_player.nvidia_living_room
  35. - wait_template: >-
  36. {{ state_attr('media_player.nvidia_living_room', 'source') | contains
  37. ('Discovery +') }}
  38. continue_on_timeout: true
  39. - delay:
  40. hours: 0
  41. minutes: 0
  42. seconds: 1
  43. milliseconds: 0
  44. - action: remote.send_command
  45. metadata: {}
  46. data:
  47. num_repeats: "{{ range(0,13) | random }}"
  48. delay_secs: 0.4
  49. hold_secs: 0
  50. command: DPAD_DOWN
  51. target:
  52. entity_id: remote.nvidia_living_room
  53. - delay:
  54. hours: 0
  55. minutes: 0
  56. seconds: 1
  57. milliseconds: 0
  58. - action: remote.send_command
  59. metadata: {}
  60. data:
  61. num_repeats: "{{ range(0,5) | random }}"
  62. delay_secs: 0.4
  63. hold_secs: 0
  64. command: DPAD_RIGHT
  65. target:
  66. entity_id: remote.nvidia_living_room
  67. - delay:
  68. hours: 0
  69. minutes: 0
  70. seconds: 1
  71. milliseconds: 0
  72. - action: remote.send_command
  73. metadata: {}
Advertisement
Add Comment
Please, Sign In to add comment