[text] Ombi start

Viewer

copydownloadembedprintName: Ombi start
  1. type: vertical-stack
  2. cards:
  3.   - type: entities
  4.     show_header_toggle: false
  5.     entities:
  6.       - entity: input_select.request_media
  7.   - type: conditional
  8.     conditions:
  9.       - entity: input_select.request_media
  10.         state_not: Select an option
  11.     card:
  12.       type: vertical-stack
  13.       cards:
  14.         - type: entities
  15.           entities:
  16.             - entity: input_text.type_here
  17.         - type: button
  18.           tap_action:
  19.             action: call-service
  20.             service: |
  21.               {% if is_state('input_select.request_media', 'Movie') %}
  22.                 ombi.submit_movie_request
  23.               {% elif is_state('input_select.request_media', 'Show') %}
  24.                 ombi.submit_tv_request
  25.               {% elif is_state('input_select.request_media', 'Music') %}
  26.                 ombi.submit_music_request
  27.               {% endif %}
  28.             data_template:
  29.               title: '{{ states(''input_text.type_here'') }}'
  30.           name: Submit
  31. input_select:
  32.   request_media:
  33.     name: Options
  34.     options:
  35.       - Select an option
  36.       - Movie
  37.       - Show
  38.       - Music
  39. input_text:
  40.   type_here:
  41.     name: Request
  42.     initial: ''
  43.  

Editor

You can edit this paste and save as new:


File Description
  • Ombi start
  • Paste Code
  • 19 Aug-2023
  • 1.17 Kb
You can Share it: