noam76 icon

horizontal + state-switch

noam76 | PRO | 12/01/19 05:58:51 PM UTC | 0 ⭐ | 601 👁️ | Never ⏰ | []
YAML |

4.6 KB

|

None

|

0 👍

/

0 👎

choice area from a tap icon(kitchen,salon,room) from a sub-list choice the appropriate timer (kitchen timer1, kitchen timer2, etc..)
on the bottom 3 different card each for different timers.
 
cards:
  - cards:
      - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_1_channel_switch
        tap_action:
          action: navigate
          navigation_path: '#p1'
        icon: 'mdi:silverware-variant'
        type: entity-button
      - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch_2
        tap_action:
          action: navigate
          navigation_path: '#p2'
        icon: 'mdi:sofa'
        type: entity-button
      - entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch
        tap_action:
          action: navigate
          navigation_path: '#p3'
        type: entity-button
    type: horizontal-stack
  - default: p1
    entity: hash
    states:
      p1:
        entities:
          - entity: input_select.kitchen_timers_preset
        show_header_toggle: false
        type: entities
      p2:
        entities:
          - entity: input_select.salon_timers_preset
        show_header_toggle: false
        type: entities
      p3:
        entities:
          - entity: input_select.dining_room_timers_preset
        show_header_toggle: false
        type: entities
    type: 'custom:state-switch'
  - entity: input_select.kitchen_timers_preset
    states:
      Kitchen Timer1:
        entities:
          - entity: input_boolean.kitchen1_timer
            name: Timer ON/OFF
          - entity: input_datetime.kitchen1_timer_start
          - entity: input_datetime.kitchen1_timer_end
        show_header_toggle: false
        title: Kitchen Timer 1
        type: entities
      Kitchen Timer2:
        entities:
          - entity: input_boolean.kitchen2_timer
            name: Timer ON/OFF
          - entity: input_datetime.kitchen2_timer_start
          - entity: input_datetime.kitchen2_timer_end
        show_header_toggle: false
        title: Kitchen Timer 2
        type: entities
      Kitchen Timer3:
        entities:
          - entity: input_boolean.kitchen3_timer
            name: Timer ON/OFF
          - entity: input_datetime.kitchen3_timer_start
          - entity: input_datetime.kitchen3_timer_end
        show_header_toggle: false
        title: Kitchen Timer 3
        type: entities
    type: 'custom:state-switch'
  - entity: input_select.salon_timers_preset
    states:
      Salon Timer1:
        entities:
          - entity: input_boolean.salon1_timer
            name: Timer ON/OFF
          - entity: input_datetime.salon1_timer_start
          - entity: input_datetime.salon1_timer_end
        show_header_toggle: false
        title: Salon Timer 1
        type: entities
      Salon Timer2:
        entities:
          - entity: input_boolean.salon2_timer
            name: Timer ON/OFF
          - entity: input_datetime.salon2_timer_start
          - entity: input_datetime.salon2_timer_end
        show_header_toggle: false
        title: Salon Timer 2
        type: entities
      Salon Timer3:
        entities:
          - entity: input_boolean.salon3_timer
            name: Timer ON/OFF
          - entity: input_datetime.salon3_timer_start
          - entity: input_datetime.salon3_timer_end
        show_header_toggle: false
        title: Salon Timer 3
        type: entities
    type: 'custom:state-switch'
  - entity: input_select.dining_room_timers_preset
    states:
      Dining Room Timer1:
        entities:
          - entity: input_boolean.dining1_room
            name: Timer ON/OFF
          - entity: input_datetime.dining_room1_timer_start
          - entity: input_datetime.dining_room1_timer_end
        show_header_toggle: false
        title: Dining Room Timer 1
        type: entities
      Dining Room Timer2:
        entities:
          - entity: input_boolean.dining2_room
            name: Timer ON/OFF
          - entity: input_datetime.dining_room2_timer_start
          - entity: input_datetime.dining_room2_timer_end
        show_header_toggle: false
        title: Dining Room Timer 2
        type: entities
      Dining Room Timer3:
        entities:
          - entity: input_boolean.dining3_room
            name: Timer ON/OFF
          - entity: input_datetime.dining_room3_timer_start
          - entity: input_datetime.dining_room3_timer_end
        show_header_toggle: false
        title: Dining Room Timer 3
        type: entities
    type: 'custom:state-switch'
title: My Card
type: 'custom:vertical-stack-in-card'

Comments