title: My Home
icon: mdi:home
cards:
  - type: horizontal-stack
    cards:
      - type: "custom:button-card"
        entity: alarm_control_panel.home
        icon: mdi:security
        color_type: card
        show_state: true
        style:
          - font-weight: bold
          - color: rgb(255, 255, 255)
        state:
          - value: "disarmed"
            color: rgb(255,0,0)
          - value: "armed_home"
            color: rgb(0, 128, 0)
          - value: "armed_away"
            color: rgb(0, 0, 255)
        action: more_info

      - type: "custom:button-card"
        entity: climate.dining_room
        icon: mdi:thermometer-lines
        color_type: card
        show_state: true
        style:
          - font-weight: bold
          - color: rgb(255, 255, 255)
        state:
          - value: "heat"
            color: rgb(255,0,0)
          - value: "eco"
            color: rgb(0, 128, 0)
          - value: "cool"
            color: rgb(0, 0, 255)
        action: service
        service:
          domain: script
          action: toggle_climate

  - type: entity-filter
    title: Device Trackers
    show_header_toggle: false
    entities:
      - entity: device_tracker.life360_suresh
        name: Suresh
      - entity: device_tracker.life360_mallika
        name: Mallika
      - entity: device_tracker.life360_srinika
        name: Srinika
      - entity: device_tracker.life360_hasika
        name: Hasika
      - entity: device_tracker.mahasri_tesla_location_tracker
        name: Tesla
    state_filter:
      - "home"
    card:
      type: glance
      title: Kalavala Family

  - type: entities
    title: Pill Reminder
    show_header_toggle: false
    entities:
      - input_datetime.pill_reminder_time
      - input_boolean.pill_on_vacation
      - input_boolean.pill_taken
      - input_boolean.pill_voice_notification
      - binary_sensor.door_window_sensor_158d00040ad8ec
      - input_label.pill_taken_at

  - type: entities
    title: 3D Printer
    show_header_toggle: false
    entities:
      - sensor.octoprint_file
      - binary_sensor.octoprint_printing
      - binary_sensor.octoprint_printing_error
      - sensor.octoprint_actual_bed_temp
      - sensor.octoprint_actual_tool0_temp
      - sensor.octoprint_current_state
      - sensor.octoprint_job_percentage
      - sensor.octoprint_target_bed_temp
      - sensor.octoprint_target_tool0_temp
      - sensor.octoprint_time_elapsed
      - sensor.octoprint_time_remaining

  - type: glance
    show_icon: true
    show_name: true
    show_state: true
    title: Fitness
    entities:
      - entity: sensor.yo_mama_steps
        icon: "mdi:run"
        name: Suresh Steps
      - entity: sensor.yo_mama_floors_ascended
        icon: "mdi:run"
        name: Suresh Floors Ascended
      - entity: sensor.mallika_steps
        icon: "mdi:run"
        name: Mallika Steps
      - entity: sensor.mallika_floors_ascended
        icon: "mdi:run"
        name: Mallika Floors Ascended

  - type: entity-filter
    title: For Your Information
    show_empty: false
    show_header_toggle: false
    entities:
      - entity: input_label.suresh_charging
        name: Suresh
      - entity: input_label.mallika_charging
        name: Mallika
      - entity: input_label.srinika_charging
        name: Srinika
      - entity: input_label.hasika_charging
        name: Hasika

      - entity: input_label.hasika_wifi
        name: Hasika
      - entity: input_label.mallika_wifi
        name: Mallika
      - entity: input_label.srinika_wifi
        name: Srinika
      - entity: input_label.suresh_wifi
        name: Suresh

      - sensor.recycle_day
      - sensor.trash_day
    state_filter:
      - "Charging"
      - "yes"
      - "LTE"
      - "Not Connected"
    card:
      type: glance
      title: FYI

  - type: conditional
    conditions:
      - entity: input_boolean.emergency_mode
        state: "on"
    card:
      type: entities
      title: Emergency Scripts
      show_header_toggle: false
      entities:
        - script.all_indoor_lights_off
        - script.emergency_all_lights_switches_on
        - script.emergency_script
        - script.emergency_script_loop

  - type: horizontal-stack
    cards:
      - type: glance
        entities:
          - input_label.mallika_birthday_days2go
      - type: glance
        entities:
          - input_label.srinika_birthday_days2go
      - type: glance
        entities:
          - input_label.hasika_birthday_days2go

  - type: entity-filter
    title: Doors
    show_empty: false
    entities:
      - alarm_control_panel.home
      - entity: binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
        name: Front Door
      - entity: binary_sensor.back_door_sensor_sensor
        name: Back Door
      - entity: binary_sensor.basement_door_sensor_sensor
        name: Basement Door
      - entity: binary_sensor.garage_door_sensor_sensor
        name: Garage Door
      - entity: sensor.single_car_garage_door_sensor_status
        name: Single Car Garage Door
      - entity: binary_sensor.two_car_garage_door_tilt_sensor_sensor
        name: Double Car Garage Door
    state_filter:
      - "on"
      - "opened"
      - "Open"
    card:
      type: glance
      title: Doors

  - type: vertical-stack
    cards:
      - type: horizontal-stack
        cards:
          - type: gauge
            name: Suresh Phone
            unit: "%"
            entity: input_label.suresh_battery
            severity:
              green: 75
              yellow: 50
              red: 30
          - type: gauge
            name: Mallika Phone
            unit: "%"
            entity: input_label.mallika_battery
            severity:
              green: 75
              yellow: 50
              red: 30
      - type: horizontal-stack
        cards:
          - type: gauge
            name: Srinika Phone
            unit: "%"
            entity: input_label.srinika_battery
            severity:
              green: 75
              yellow: 50
              red: 30
          - type: gauge
            name: Hasika Phone
            unit: "%"
            entity: input_label.hasika_battery
            severity:
              green: 75
              yellow: 50
              red: 30

  - type: weather-forecast
    entity: weather.dark_sky

  - type: conditional
    conditions:
      - entity: sensor.usps_mail
        state_not: "0"
    card:
      type: picture-entity
      id: camera_usps_mail_pictures
      title: USPS Mail Pictures
      entity: camera.usps_mail_pictures
      camera_image: camera.usps_mail_pictures
      show_info: true
      tap_action:
        action: more-info

  - type: entities
    title: Xiaomi Motion Sensors
    show_header_toggle: false
    entities:
      - binary_sensor.motion_sensor_158d00016c2d0e # Dining Room
      - binary_sensor.motion_sensor_158d00016db6d2 # Front Room
      - binary_sensor.motion_sensor_158d0001a25041 # Family Room
      - binary_sensor.motion_sensor_158d0001a662fe # Kitchen
      - binary_sensor.motion_sensor_158d00024e57d3 # Master Bedroom
      - binary_sensor.motion_sensor_158d00024e842c # Backyard
      - binary_sensor.motion_sensor_158d00024ee084 # Front Door
      - binary_sensor.motion_sensor_158d000272bed1 # Srinika's Bedroom
      - binary_sensor.motion_sensor_158d000272bf48 # Inside Garage
      - binary_sensor.motion_sensor_158d000272bfd7 # Office Room
      - binary_sensor.motion_sensor_158d00047b6f69 # Hasika's Bedroom
      - binary_sensor.motion_sensor_158d00024e57fb # Driveway

  - type: entities
    title: Xiaomi Door Sensors
    show_header_toggle: false
    entities:
      - entity: binary_sensor.door_window_sensor_158d000424a6d6
        name: Front Door
      - entity: binary_sensor.door_window_sensor_158d000424718f
        name: Master Bathroom Door
      - entity: binary_sensor.door_window_sensor_158d00040ad8ec
        name: Pill Box

  - type: entity-filter
    title: Motion Sensors
    show_empty: false
    entities:
      - binary_sensor.motion_sensor_158d0001a662fe
      - binary_sensor.motion_sensor_158d0001a25041
      - binary_sensor.motion_sensor_158d00016db6d2
      - binary_sensor.motion_sensor_158d00016c2d0e
      - binary_sensor.garage_motion
      - binary_sensor.patio_camera_motion
      - binary_sensor.playarea_camera_motion
      - binary_sensor.frontdoor_camera_motion
      - binary_sensor.driveway_camera_motion
      - binary_sensor.audio_detector_sensor
      - binary_sensor.basement_door_sensor_sensor
      - binary_sensor.downstairs_multi_sensor_sensor
      - binary_sensor.front_room_multi_sensor_sensor
      - binary_sensor.aeotec_zw120_door_window_sensor_gen5_sensor
      - binary_sensor.garage_door_sensor_sensor
      - binary_sensor.kitchen_motion_sensor_sensor
      - binary_sensor.back_door_sensor_sensor
      - binary_sensor.stairs_motion_sensor_sensor
      - binary_sensor.tv_multi_sensor_sensor
      - binary_sensor.single_car_garage_door_tilt_sensor_sensor
      - binary_sensor.two_car_garage_door_tilt_sensor_sensor
      - binary_sensor.upstairs_multi_sensor_sensor
    state_filter:
      - "on"
      - "detected"
      - "opened"
      - "Open"
    card:
      type: entities
      title: Motion Sensors
      show_header_toggle: false

  - type: conditional
    conditions:
      - entity: sensor.season
        state: "spring"
    card:
      type: vertical-stack
      cards:
        - type: horizontal-stack
          cards:
            - type: gauge
              name: Pollen Today
              unit: "%"
              entity: sensor.allergy_index_today
              max: 12.0
              severity:
                green: 0
                yellow: 4
                red: 7
            - type: gauge
              name: Pollen Tomorrow
              unit: "%"
              entity: sensor.allergy_index_tomorrow
              max: 12.0
              severity:
                green: 0
                yellow: 4
                red: 7
        - type: horizontal-stack
          cards:
            - type: gauge
              name: Asthma Today
              unit: "%"
              entity: sensor.asthma_index_forecasted_average
              severity:
                green: 0
                yellow: 4
                red: 7
            - type: gauge
              name: Asthma Tomorrow
              unit: "%"
              entity: sensor.asthma_index_tomorrow
              severity:
                green: 0
                yellow: 4
                red: 7

  - type: entities
    title: Motion Counters
    show_header_toggle: false
    entities:
      - input_label.motion_sensor_158d00016c2d0e
      - input_label.motion_sensor_158d00016db6d2
      - input_label.motion_sensor_158d0001a25041
      - input_label.motion_sensor_158d0001a662fe
      - input_label.motion_sensor_158d00024e57d3
      - input_label.motion_sensor_158d00024e57fb
      - input_label.motion_sensor_158d00024e842c
      - input_label.motion_sensor_158d00024ee084
      - input_label.motion_sensor_158d000272bed1
      - input_label.motion_sensor_158d00047b6f69
      - input_label.motion_sensor_158d000272bf48
      - input_label.motion_sensor_158d000272bfd7
      - input_label.garage_motion
