title: Cameras
views:
  - type: sections
    title: Live
    path: live
    icon: mdi:cctv
    max_columns: 2
    sections:

      - type: grid
        column_span: 1
        cards:
          - type: heading
            icon: mdi:bed
            heading: Bedroom 4K
            heading_style: title

          - type: picture-glance
            title: Bedroom - HD
            camera_view: live
            camera_image: camera.vish_bedroom_camera_4k_hd_stream
            entities:
              - binary_sensor.vish_bedroom_camera_4k_motion_alarm
              - binary_sensor.vish_bedroom_camera_4k_person_detection
              - switch.vish_bedroom_camera_4k_privacy
              - light.vish_bedroom_camera_4k_floodlight_timed

          - type: horizontal-stack
            cards:
              - type: button
                icon: mdi:arrow-up-bold
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.vish_bedroom_camera_4k_tilt_up
              - type: button
                icon: mdi:arrow-down-bold
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.vish_bedroom_camera_4k_tilt_down
              - type: button
                icon: mdi:arrow-left-bold
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.vish_bedroom_camera_4k_pan_left
              - type: button
                icon: mdi:arrow-right-bold
                tap_action:
                  action: call-service
                  service: button.press
                  target:
                    entity_id: button.vish_bedroom_camera_4k_pan_right

          - type: heading
            icon: mdi:cctv-off
            heading: Detection Settings
            heading_style: subtitle

          - type: grid
            columns: 2
            square: false
            cards:
              - type: tile
                entity: switch.vish_bedroom_camera_4k_motion_detection
                name: Motion
                icon: mdi:motion-sensor
                tap_action:
                  action: toggle
              - type: tile
                entity: switch.vish_bedroom_camera_4k_person_detection
                name: Person
                icon: mdi:account-search
                tap_action:
                  action: toggle
              - type: tile
                entity: switch.vish_bedroom_camera_4k_privacy
                name: Privacy
                icon: mdi:eye-off
                tap_action:
                  action: toggle
              - type: tile
                entity: select.vish_bedroom_camera_4k_night_vision
                name: Night Vision
                icon: mdi:weather-night
                tap_action:
                  action: more-info
              - type: tile
                entity: select.vish_bedroom_camera_4k_patrol_mode
                name: Patrol
                icon: mdi:shield-search
                tap_action:
                  action: more-info

      - type: grid
        column_span: 1
        cards:
          - type: heading
            icon: mdi:sofa
            heading: Living Room
            heading_style: title

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

          - type: heading
            icon: mdi:home-outline
            heading: Other Cameras
            heading_style: subtitle

          - type: picture-glance
            title: Camera (192.168.68.67)
            camera_view: live
            camera_image: camera.192_168_68_67
            entities: []

          - type: heading
            icon: mdi:cctv
            heading: Setillo (Estudio)
            heading_style: subtitle

          - type: picture-glance
            title: Estudio (Surveillance Station)
            camera_view: live
            camera_image: camera.estudio
            entities:
              - switch.setillo_surveillance_station_home_mode

          - type: conditional
            conditions:
              - condition: state
                entity: camera.192_168_12_155
                state_not: unavailable
            card:
              type: picture-glance
              title: Hawaii Camera
              camera_view: live
              camera_image: camera.192_168_12_155
              entities: []

  - type: sections
    title: Events
    path: events
    icon: mdi:motion-sensor
    sections:
      - type: grid
        cards:
          - type: heading
            icon: mdi:motion-sensor
            heading: Recent Motion
            heading_style: title

          - type: logbook
            hours_to_show: 24
            entities:
              - binary_sensor.vish_bedroom_camera_4k_motion_alarm
              - binary_sensor.vish_bedroom_camera_4k_person_detection
              - binary_sensor.vish_bedroom_camera_4k_cell_motion_detection
