Advertisement
noam76

state-switch exemple

Nov 30th, 2019
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.93 KB | None | 0 0
  1. type: horizontal-stack
  2. title: My Card
  3. cards:
  4.   - type: entity-button
  5.     icon_height: 20px
  6.     entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_1_channel_switch
  7.     tap_action:
  8.       action: navigate
  9.       navigation_path: '#p1'
  10.   - type: entity-button
  11.     icon_height: 20px
  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.   - type: entity-button
  17.     icon_height: 20px
  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: 'custom:state-switch'
  23.     entity: hash
  24.     default: p1
  25.     states:
  26.       p1:
  27.         type: markdown
  28.         content: |
  29.          # Page 1
  30.       p2:
  31.         type: markdown
  32.         content: |
  33.          # Page 2
  34.       p3:
  35.         type: markdown
  36.         content: |
  37.          # Page 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement