{
  "version": 1,
  "minor_version": 1,
  "key": "lovelace.spy_the_foxx",
  "data": {
    "config": {
      "kiosk_mode": {
        "kiosk": true
      },
      "views": [
        {
          "title": "Spy The Foxx",
          "type": "sections",
          "max_columns": 2,
          "icon": "mdi:eye",
          "theme": "Cosmic Dream",
          "dense_section_placement": true,
          "sections": [
            {
              "type": "grid",
              "cards": [
                {
                  "type": "entities",
                  "entities": [
                    {
                      "type": "custom:bubble-card",
                      "card_type": "button",
                      "button_type": "state",
                      "show_name": true,
                      "name": "Foxxy's Naughty Cam #2",
                      "icon": "mdi:cctv",
                      "card_layout": "large",
                      "show_header": true,
                      "show_state": true,
                      "close_by_clicking_outside": true,
                      "bg_color": "var(--secondary-background-color)",
                      "entity": "switch.meow_cam_2_privacy",
                      "force_icon": true,
                      "scrolling_effect": true,
                      "sub_button": [
                        {
                          "entity": "input_boolean.meow_cam_2_quality",
                          "show_name": false,
                          "icon": "mdi:standard-definition",
                          "tap_action": {
                            "action": "toggle"
                          },
                          "name": "Quality",
                          "visibility": [
                            {
                              "condition": "state",
                              "entity": "input_boolean.meow_cam_2_quality",
                              "state": "off"
                            }
                          ]
                        },
                        {
                          "entity": "input_boolean.meow_cam_2_quality",
                          "icon": "mdi:high-definition",
                          "visibility": [
                            {
                              "condition": "state",
                              "entity": "input_boolean.meow_cam_2_quality",
                              "state": "on"
                            }
                          ],
                          "tap_action": {
                            "action": "toggle"
                          },
                          "name": "Quality"
                        }
                      ],
                      "show_last_changed": true,
                      "button_action": {
                        "tap_action": {
                          "action": "none",
                          "service": "switch.toggle",
                          "target": {
                            "entity_id": "switch.meow_cam_2_privacy"
                          }
                        }
                      },
                      "tap_action": {
                        "action": "none",
                        "service": "switch.toggle",
                        "target": {
                          "entity_id": "switch.meow_cam_2_privacy"
                        }
                      },
                      "show_attribute": false,
                      "bg_opacity": "100",
                      "bg_blur": "55",
                      "hide_backdrop": true
                    },
                    {
                      "type": "custom:state-switch",
                      "entity": "input_boolean.meow_cam_2_quality",
                      "states": {
                        "on": {
                          "show_state": false,
                          "camera_view": "live",
                          "type": "picture-entity",
                          "camera_image": "camera.meow_cam_2_mainstream_2",
                          "hold_action": {
                            "action": "more-info"
                          },
                          "entity": "camera.meow_cam_2_mainstream_2",
                          "name": "Foxxy's Naughty Cam #2 (HD)"
                        },
                        "off": {
                          "show_state": false,
                          "camera_view": "live",
                          "type": "picture-entity",
                          "camera_image": "camera.meow_cam_2_mainstream_3",
                          "hold_action": {
                            "action": "more-info"
                          },
                          "entity": "camera.meow_cam_2_mainstream_3",
                          "name": "Foxxy's Naughty Cam #2 (SD)"
                        }
                      }
                    },
                    {
                      "type": "custom:bubble-card",
                      "card_type": "button",
                      "name": "Video",
                      "icon": "mdi:video",
                      "card_layout": "normal",
                      "sub_button": [
                        {
                          "entity": "switch.meow_cam_2_flip",
                          "show_name": false,
                          "name": "Flip",
                          "icon": "",
                          "tap_action": {
                            "action": "toggle"
                          }
                        },
                        {
                          "entity": "switch.meow_cam_2_lens_distortion_correction",
                          "name": "Lens",
                          "show_name": false,
                          "tap_action": {
                            "action": "toggle"
                          },
                          "show_state": false
                        },
                        {
                          "tap_action": {
                            "action": "toggle"
                          },
                          "name": "Focus",
                          "show_name": false,
                          "entity": "switch.meow_cam_2_autofocus",
                          "icon": "mdi:focus-auto",
                          "show_background": true,
                          "show_attribute": false
                        },
                        {
                          "entity": "select.meow_cam_2_night_vision_switching",
                          "show_state": true,
                          "show_last_changed": false,
                          "show_icon": true,
                          "show_name": false,
                          "name": "Night",
                          "show_arrow": true,
                          "show_background": true
                        }
                      ],
                      "button_type": "name",
                      "styles": ".bubble-button-background { \n  background-color: transparent !important;\n  opacity: 0.5 !important;\n} .bubble-icon {\n  #color: ${'primary'}  !important;\n} .bubble-sub-button { \n \n    opacity: 1 !important;\n \n} .bubble-button-container { \n    background: transparent !important;\n    opacity: 1 !important;\n}  "
                    }
                  ],
                  "grid_options": {
                    "columns": "full"
                  }
                },
                {
                  "type": "tile",
                  "entity": "camera.meow_cam_2_mainstream_3",
                  "show_entity_picture": true
                },
                {
                  "type": "tile",
                  "entity": "camera.meow_cam_1_mainstream",
                  "show_entity_picture": true
                },
                {
                  "type": "custom:advanced-camera-card",
                  "cameras": [
                    {
                      "camera_entity": "camera.meow_cam_2_mainstream_3",
                      "live_provider": "ha",
                      "title": "Foxx Cam #2",
                      "icon": "mdi:eye-outline",
                      "id": "2",
                      "image": {
                        "mode": "camera",
                        "refresh_seconds": 15
                      }
                    }
                  ],
                  "menu": {
                    "style": "overlay",
                    "buttons": {
                      "recordings": {
                        "enabled": true
                      }
                    }
                  },
                  "live": {
                    "preload": true,
                    "lazy_load": false,
                    "auto_play": [
                      "visible"
                    ],
                    "display": {
                      "mode": "single"
                    }
                  },
                  "image": {
                    "mode": "camera"
                  }
                }
              ]
            },
            {
              "type": "grid",
              "cards": [
                {
                  "type": "entities",
                  "entities": [
                    {
                      "type": "custom:bubble-card",
                      "card_type": "button",
                      "button_type": "state",
                      "show_name": true,
                      "name": "Foxxy's Naughty Cam #1",
                      "icon": "mdi:cctv",
                      "card_layout": "large",
                      "show_header": true,
                      "show_state": true,
                      "close_by_clicking_outside": true,
                      "bg_color": "var(--secondary-background-color)",
                      "entity": "camera.meow_cam_hd_stream",
                      "force_icon": true,
                      "scrolling_effect": true,
                      "sub_button": [
                        {
                          "entity": "input_boolean.meow_cam_quality",
                          "show_name": false,
                          "icon": "mdi:standard-definition",
                          "tap_action": {
                            "action": "toggle"
                          },
                          "name": "Quality",
                          "visibility": [
                            {
                              "condition": "state",
                              "entity": "input_boolean.meow_cam_quality",
                              "state": "off"
                            }
                          ]
                        },
                        {
                          "entity": "input_boolean.meow_cam_quality",
                          "icon": "mdi:high-definition",
                          "visibility": [
                            {
                              "condition": "state",
                              "entity": "input_boolean.meow_cam_quality",
                              "state": "on"
                            }
                          ],
                          "tap_action": {
                            "action": "toggle"
                          }
                        }
                      ],
                      "show_last_changed": true,
                      "button_action": {
                        "tap_action": {
                          "action": "none",
                          "service": "switch.toggle",
                          "target": {
                            "entity_id": "switch.meow_cam_privacy"
                          }
                        }
                      },
                      "tap_action": {
                        "action": "none",
                        "service": "switch.toggle",
                        "target": {
                          "entity_id": "switch.meow_cam_privacy"
                        }
                      },
                      "show_attribute": false,
                      "bg_opacity": "100",
                      "bg_blur": "55",
                      "hide_backdrop": true
                    },
                    {
                      "type": "custom:state-switch",
                      "entity": "input_boolean.meow_cam_quality",
                      "states": {
                        "on": {
                          "show_state": false,
                          "camera_view": "live",
                          "type": "picture-entity",
                          "camera_image": "camera.meow_cam_hd_stream",
                          "hold_action": {
                            "action": "more-info"
                          },
                          "entity": "camera.meow_cam_hd_stream",
                          "name": "Foxxy's Naughty Cam #1 (HD)"
                        },
                        "off": {
                          "show_state": false,
                          "camera_view": "live",
                          "type": "picture-entity",
                          "camera_image": "camera.meow_cam_sd_stream",
                          "hold_action": {
                            "action": "more-info"
                          },
                          "entity": "camera.meow_cam_sd_stream",
                          "name": "Foxxy's Naughty Cam #1 (SD)"
                        }
                      }
                    },
                    {
                      "type": "custom:bubble-card",
                      "card_type": "button",
                      "name": "Video",
                      "icon": "mdi:video",
                      "card_layout": "normal",
                      "sub_button": [
                        {
                          "entity": "switch.meow_cam_flip",
                          "show_name": false,
                          "name": "Flip",
                          "icon": "",
                          "tap_action": {
                            "action": "toggle"
                          }
                        },
                        {
                          "entity": "switch.meow_cam_lens_distortion_correction",
                          "name": "Lens",
                          "show_name": false,
                          "tap_action": {
                            "action": "toggle"
                          },
                          "show_state": false
                        },
                        {
                          "tap_action": {
                            "action": "toggle"
                          },
                          "name": "Focus",
                          "show_name": false,
                          "entity": "switch.meow_cam_1_autofocus",
                          "icon": "mdi:focus-auto",
                          "show_state": false,
                          "show_attribute": false
                        },
                        {
                          "entity": "select.meow_cam_night_vision_switching",
                          "show_state": true,
                          "show_last_changed": false,
                          "show_icon": true,
                          "show_name": false,
                          "name": "Night",
                          "show_arrow": true,
                          "show_background": true
                        }
                      ],
                      "button_type": "name",
                      "styles": ".bubble-button-background { \n  background-color: transparent !important;\n  opacity: 0.5 !important;\n} .bubble-icon {\n  #color: ${'primary'}  !important;\n} .bubble-sub-button { \n \n    opacity: 1 !important;\n \n} .bubble-button-container { \n    background: transparent !important;\n    opacity: 1 !important;\n}  "
                    }
                  ],
                  "visibility": [
                    {
                      "condition": "user",
                      "users": [
                        "dd8da2ed051341f086805992caab5ee3"
                      ]
                    }
                  ]
                }
              ],
              "column_span": 1
            }
          ],
          "visible": [
            {
              "user": "dd8da2ed051341f086805992caab5ee3"
            }
          ],
          "cards": []
        }
      ]
    }
  }
}