noam76

horizontal + state-switch

Dec 1st, 2019
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.60 KB | None | 0 0
  1. choice area from a tap icon(kitchen,salon,room) from a sub-list choice the appropriate timer (kitchen timer1, kitchen timer2, etc..)
  2. on the bottom 3 different card each for different timers.
  3.  
  4. cards:
  5.   - cards:
  6.       - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_1_channel_switch
  7.         tap_action:
  8.           action: navigate
  9.           navigation_path: '#p1'
  10.         icon: 'mdi:silverware-variant'
  11.         type: entity-button
  12.       - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch_2
  13.         tap_action:
  14.           action: navigate
  15.           navigation_path: '#p2'
  16.         icon: 'mdi:sofa'
  17.         type: entity-button
  18.       - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch
  19.         tap_action:
  20.           action: navigate
  21.           navigation_path: '#p3'
  22.         type: entity-button
  23.     type: horizontal-stack
  24.   - default: p1
  25.     entity: hash
  26.     states:
  27.       p1:
  28.         entities:
  29.           - entity: input_select.kitchen_timers_preset
  30.         show_header_toggle: false
  31.         type: entities
  32.       p2:
  33.         entities:
  34.           - entity: input_select.salon_timers_preset
  35.         show_header_toggle: false
  36.         type: entities
  37.       p3:
  38.         entities:
  39.           - entity: input_select.dining_room_timers_preset
  40.         show_header_toggle: false
  41.         type: entities
  42.     type: 'custom:state-switch'
  43.   - entity: input_select.kitchen_timers_preset
  44.     states:
  45.       Kitchen Timer1:
  46.         entities:
  47.           - entity: input_boolean.kitchen1_timer
  48.             name: Timer ON/OFF
  49.           - entity: input_datetime.kitchen1_timer_start
  50.           - entity: input_datetime.kitchen1_timer_end
  51.         show_header_toggle: false
  52.         title: Kitchen Timer 1
  53.         type: entities
  54.       Kitchen Timer2:
  55.         entities:
  56.           - entity: input_boolean.kitchen2_timer
  57.             name: Timer ON/OFF
  58.           - entity: input_datetime.kitchen2_timer_start
  59.           - entity: input_datetime.kitchen2_timer_end
  60.         show_header_toggle: false
  61.         title: Kitchen Timer 2
  62.         type: entities
  63.       Kitchen Timer3:
  64.         entities:
  65.           - entity: input_boolean.kitchen3_timer
  66.             name: Timer ON/OFF
  67.           - entity: input_datetime.kitchen3_timer_start
  68.           - entity: input_datetime.kitchen3_timer_end
  69.         show_header_toggle: false
  70.         title: Kitchen Timer 3
  71.         type: entities
  72.     type: 'custom:state-switch'
  73.   - entity: input_select.salon_timers_preset
  74.     states:
  75.       Salon Timer1:
  76.         entities:
  77.           - entity: input_boolean.salon1_timer
  78.             name: Timer ON/OFF
  79.           - entity: input_datetime.salon1_timer_start
  80.           - entity: input_datetime.salon1_timer_end
  81.         show_header_toggle: false
  82.         title: Salon Timer 1
  83.         type: entities
  84.       Salon Timer2:
  85.         entities:
  86.           - entity: input_boolean.salon2_timer
  87.             name: Timer ON/OFF
  88.           - entity: input_datetime.salon2_timer_start
  89.           - entity: input_datetime.salon2_timer_end
  90.         show_header_toggle: false
  91.         title: Salon Timer 2
  92.         type: entities
  93.       Salon Timer3:
  94.         entities:
  95.           - entity: input_boolean.salon3_timer
  96.             name: Timer ON/OFF
  97.           - entity: input_datetime.salon3_timer_start
  98.           - entity: input_datetime.salon3_timer_end
  99.         show_header_toggle: false
  100.         title: Salon Timer 3
  101.         type: entities
  102.     type: 'custom:state-switch'
  103.   - entity: input_select.dining_room_timers_preset
  104.     states:
  105.       Dining Room Timer1:
  106.         entities:
  107.           - entity: input_boolean.dining1_room
  108.             name: Timer ON/OFF
  109.           - entity: input_datetime.dining_room1_timer_start
  110.           - entity: input_datetime.dining_room1_timer_end
  111.         show_header_toggle: false
  112.         title: Dining Room Timer 1
  113.         type: entities
  114.       Dining Room Timer2:
  115.         entities:
  116.           - entity: input_boolean.dining2_room
  117.             name: Timer ON/OFF
  118.           - entity: input_datetime.dining_room2_timer_start
  119.           - entity: input_datetime.dining_room2_timer_end
  120.         show_header_toggle: false
  121.         title: Dining Room Timer 2
  122.         type: entities
  123.       Dining Room Timer3:
  124.         entities:
  125.           - entity: input_boolean.dining3_room
  126.             name: Timer ON/OFF
  127.           - entity: input_datetime.dining_room3_timer_start
  128.           - entity: input_datetime.dining_room3_timer_end
  129.         show_header_toggle: false
  130.         title: Dining Room Timer 3
  131.         type: entities
  132.     type: 'custom:state-switch'
  133. title: My Card
  134. type: 'custom:vertical-stack-in-card'
Add Comment
Please, Sign In to add comment