title: Living Room
views:
  - type: sections
    title: Living Room
    path: living-room
    icon: mdi:sofa
    max_columns: 3
    sections:

      # ---- Weather ----
      - type: grid
        column_span: 1
        cards:
          - type: heading
            icon: mdi:weather-partly-cloudy
            heading: Weather
            heading_style: title

          - type: weather-forecast
            entity: weather.forecast_home
            forecast_type: daily
            show_current: true
            show_forecast: true

          - type: weather-forecast
            entity: weather.forecast_home
            forecast_type: hourly
            show_current: false
            show_forecast: true

      # ---- Media ----
      - type: grid
        column_span: 2
        cards:
          - type: heading
            icon: mdi:television
            heading: Media
            heading_style: title

          - type: media-control
            entity: media_player.tv_living_room

          - type: horizontal-stack
            cards:
              - type: button
                icon: mdi:spotify
                name: Spotify
                tap_action:
                  action: navigate
                  navigation_path: /bedroom-yaml/bedroom
              - type: button
                icon: mdi:cast
                name: Cast Hub
                tap_action:
                  action: more-info
                  entity: media_player.tv_living_room
              - type: button
                icon: mdi:remote-tv
                name: TV Power
                tap_action:
                  action: call-service
                  service: media_player.toggle
                  target:
                    entity_id: media_player.tv_living_room

          - type: picture-glance
            title: Living Room Camera
            camera_view: live
            camera_image: camera.192_168_69_116
            entities: []

      # ---- Security / Hub ----
      - type: grid
        column_span: 1
        cards:
          - type: heading
            icon: mdi:security
            heading: Hub & Alarm
            heading_style: title

          - type: tile
            entity: siren.hub_wired
            name: Hub Siren
            icon: mdi:alarm-light
            vertical: true
            tap_action:
              action: toggle

          - type: entities
            title: Hub
            show_header_toggle: false
            entities:
              - entity: switch.hub_wired_led
                name: Hub LED
              - entity: select.hub_wired_alarm_sound
                name: Alarm Sound

      # ---- Network health ----
      - type: grid
        column_span: 2
        cards:
          - type: heading
            icon: mdi:wifi
            heading: Network
            heading_style: title

          - type: horizontal-stack
            cards:
              - type: gauge
                entity: sensor.speedtest_download
                name: Download
                unit: Mbps
                min: 0
                max: 1000
                severity:
                  green: 300
                  yellow: 100
                  red: 0
              - type: gauge
                entity: sensor.speedtest_upload
                name: Upload
                unit: Mbps
                min: 0
                max: 500
                severity:
                  green: 100
                  yellow: 30
                  red: 0
              - type: gauge
                entity: sensor.speedtest_ping
                name: Ping
                unit: ms
                min: 0
                max: 100
                severity:
                  green: 0
                  yellow: 30
                  red: 60
                needle: true

          - type: history-graph
            title: Download / Upload (24h)
            hours_to_show: 24
            entities:
              - entity: sensor.speedtest_download
              - entity: sensor.speedtest_upload

          - type: entities
            title: Deco Mesh
            show_header_toggle: false
            entities:
              - entity: binary_sensor.living_room_deco_internet_online
                name: Living Room Deco - Internet
              - entity: binary_sensor.living_room_deco_deco_online
                name: Living Room Deco - Online
              - entity: binary_sensor.main_bedroom_deco_deco_online
                name: Main Bedroom Deco
              - entity: binary_sensor.kevins_room_deco_deco_online
                name: Kevin's Room Deco

      # ---- Electricity (PG&E) ----
      - type: grid
        column_span: 2
        cards:
          - type: heading
            icon: mdi:flash
            heading: Electricity (PG&E)
            heading_style: title

          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.current_bill_electric_usage_to_date
                name: Usage So Far
                icon: mdi:meter-electric
              - type: tile
                entity: sensor.current_bill_electric_forecasted_usage
                name: Forecasted Usage
                icon: mdi:chart-line-variant
              - type: tile
                entity: sensor.typical_monthly_electric_usage
                name: Typical
                icon: mdi:calendar-month

          - type: horizontal-stack
            cards:
              - type: tile
                entity: sensor.current_bill_electric_cost_to_date
                name: Cost So Far
                icon: mdi:currency-usd
              - type: tile
                entity: sensor.current_bill_electric_forecasted_cost
                name: Forecast
                icon: mdi:cash-multiple
              - type: tile
                entity: sensor.typical_monthly_electric_cost
                name: Typical Cost
                icon: mdi:cash-clock

      # ---- AdGuard ----
      - type: grid
        column_span: 1
        cards:
          - type: heading
            icon: mdi:shield-check
            heading: AdGuard
            heading_style: title

          - type: tile
            entity: switch.adguard_home_protection
            name: Protection
            icon: mdi:shield

          - type: entities
            title: Today
            show_header_toggle: false
            entities:
              - entity: sensor.adguard_home_dns_queries
                name: DNS Queries
              - entity: sensor.adguard_home_dns_queries_blocked
                name: Blocked
              - entity: sensor.adguard_home_dns_queries_blocked_ratio
                name: Block Ratio
              - entity: sensor.adguard_home_safe_browsing_blocked
                name: Safe Browsing
              - entity: sensor.adguard_home_rules_count
                name: Rules
