home.yaml

my home yaml file
mail@pastecode.io avatar
unknown
yaml
a year ago
1.8 kB
4
Indexable
Never
sidebar:
  digitalClock: true
  date: true
  hideTopMenu: false
  width:
    mobile: 20
    tablet: 25
    desktop: 20
  sidebarMenu:
    - action: navigate
      navigation_path: /dashboard-tab/0
      name: ראשי
      active: true
      hold_action:
        action: none
views:
  - title: Home
    panel: true
    badges: []
    cards:
      - type: custom:floorplan-card
        full_height: true
        config:
          image: /local/floorplan/home1.svg
          stylesheet: /local/floorplan/home.css
          defaults:
            hover_action: hover-info
            tap_action: more-info
          rules:
            - name: switches
              entities:
                - entity: switch.sonoff_10006440e7
                  element: switch.sonoff_10006440e7
                - entity: switch.1gang_wifi_switch_switch_1
                  element: switch.1gang_wifi_switch_switch_1
                - entity: switch.sonoff_100020a592_1
                  element: Elevators-up-button
              tap_action: toggle
              hold_action:
                action: more-info
              state_action:
                - action: call-service
                  service: floorplan.class_set
                  service_data: light-${entity.state}
            - entity: sensor.time
              element: sensor-time-text
              state_action:
                action: call-service
                service: floorplan.text_set
                service_data: ${entity.state.toUpperCase()}
              tap_action: false
            - name: OriginalClockValue
              element: sensor-time-text
              entities:
                - sensor.time
              state_action:
                - service: floorplan.text_set
                  service_data: ${entity.state}