noam76 icon

state-switch exemple

noam76 | PRO | 12/01/19 04:15:01 AM UTC | 0 ⭐ | 765 👁️ | Never ⏰ | []
YAML |

930 B

|

None

|

0 👍

/

0 👎

type: horizontal-stack
title: My Card
cards:
  - type: entity-button
    icon_height: 20px
    entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_1_channel_switch
    tap_action:
      action: navigate
      navigation_path: '#p1'
  - type: entity-button
    icon_height: 20px
    entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch_2
    tap_action:
      action: navigate
      navigation_path: '#p2'
  - type: entity-button
    icon_height: 20px
    entity: switch.shenzhen_neo_electronics_co_ltd_wall_switch_2_channels_switch
    tap_action:
      action: navigate
      navigation_path: '#p3'
  - type: 'custom:state-switch'
    entity: hash
    default: p1
    states:
      p1:
        type: markdown
        content: |
          # Page 1
      p2:
        type: markdown
        content: |
          # Page 2
      p3:
        type: markdown
        content: |
          # Page 3

Comments