{
  "version": 1,
  "minor_version": 1,
  "key": "lovelace.lovelace_control",
  "data": {
    "config": {
      "views": [
        {
          "title": "Control",
          "cards": [
            {
              "type": "vertical-stack",
              "cards": [
                {
                  "type": "custom:restriction-card",
                  "restrictions": {
                    "confirm": {
                      "exemptions": null
                    }
                  },
                  "card": {
                    "type": "entities",
                    "entities": [
                      {
                        "entity": "input_boolean.mode_away",
                        "name": "Away"
                      },
                      {
                        "entity": "input_boolean.mode_production",
                        "name": "Loud"
                      },
                      {
                        "type": "divider"
                      },
                      {
                        "entity": "input_boolean.mode_house_sleep",
                        "name": "House Sleep"
                      },
                      {
                        "entity": "input_boolean.mode_house_hibernate",
                        "name": "House Hibernate"
                      },
                      {
                        "type": "divider"
                      },
                      {
                        "entity": "input_boolean.mode_bright",
                        "name": "Bright Mode"
                      },
                      {
                        "entity": "input_boolean.mode_multiroom_manual",
                        "name": "Multiroom/No Auto"
                      },
                      {
                        "entity": "input_boolean.mode_hall_manual",
                        "name": "Keep Hall Lights"
                      },
                      {
                        "type": "divider"
                      },
                      {
                        "entity": "input_boolean.mode_alone",
                        "name": "Alone"
                      },
                      {
                        "entity": "input_boolean.mode_guests",
                        "name": "Guests"
                      }
                    ],
                    "title": "Modes"
                  }
                },
                {
                  "type": "custom:restriction-card",
                  "restrictions": {
                    "block": {
                      "exemptions": null
                    }
                  },
                  "card": {
                    "type": "entities",
                    "entities": [
                      {
                        "entity": "switch.office_power_strip_socket_1",
                        "name": "SmartPI"
                      },
                      {
                        "entity": "switch.office_smartpi",
                        "name": "SmartPI/Measure"
                      },
                      {
                        "entity": "switch.bedroom_router",
                        "name": "Asgard"
                      },
                      {
                        "entity": "switch.bedroom_roof",
                        "name": "Roof"
                      },
                      {
                        "entity": "switch.hall_infra",
                        "name": "Office"
                      },
                      {
                        "entity": "switch.hall_camera",
                        "name": "Camera"
                      }
                    ],
                    "title": "Infrastructure"
                  }
                },
                {
                  "type": "entities",
                  "entities": [
                    {
                      "entity": "switch.entrance_lights_left",
                      "name": "Toilet"
                    },
                    {
                      "entity": "switch.entrance_lights_center",
                      "name": "Entrance"
                    },
                    {
                      "entity": "switch.hall_lights_left",
                      "name": "Hall"
                    },
                    {
                      "entity": "switch.bathroom_lights_left",
                      "name": "Bathroom"
                    },
                    {
                      "entity": "switch.bathroom_lights_center",
                      "name": "Sauna"
                    },
                    {
                      "entity": "light.aqara_hub_m1s_426c",
                      "name": "M1S"
                    }
                  ],
                  "title": "Lights"
                }
              ]
            },
            {
              "type": "vertical-stack",
              "cards": [
                {
                  "square": true,
                  "columns": 2,
                  "type": "grid",
                  "cards": [
                    {
                      "type": "light",
                      "entity": "light.smart_light",
                      "name": "Bedroom Bulb"
                    },
                    {
                      "type": "light",
                      "entity": "light.yeelight_color_0x7caaf86",
                      "name": "Office Bulb"
                    }
                  ]
                },
                {
                  "type": "media-control",
                  "entity": "media_player.smartpi"
                },
                {
                  "square": true,
                  "columns": 2,
                  "type": "grid",
                  "cards": [
                    {
                      "type": "entities",
                      "entities": [
                        {
                          "entity": "switch.living_lights_left",
                          "name": "Lustre-1"
                        },
                        {
                          "entity": "switch.living_lights_center",
                          "name": "Lustre-2"
                        },
                        {
                          "entity": "light.living_led",
                          "name": "LED"
                        },
                        {
                          "entity": "light.office_led_office_led",
                          "name": "Office"
                        },
                        {
                          "entity": "light.yeelight_color_0x7caaf86",
                          "name": "Bulb"
                        },
                        {
                          "entity": "switch.living_tablelampsocket",
                          "name": "DeskLamp"
                        }
                      ],
                      "title": "Living Lights"
                    },
                    {
                      "type": "vertical-stack",
                      "cards": [
                        {
                          "type": "entities",
                          "entities": [
                            {
                              "entity": "switch.office_aircon",
                              "name": "AirCon"
                            }
                          ],
                          "title": "Living Plugs"
                        },
                        {
                          "type": "custom:restriction-card",
                          "restrictions": {
                            "confirm": {
                              "exemptions": null
                            }
                          },
                          "card": {
                            "type": "entities",
                            "entities": [
                              {
                                "entity": "switch.office_power_strip_socket_1",
                                "name": "UPS"
                              },
                              {
                                "entity": "switch.office_power_strip_socket_2",
                                "name": "Table"
                              },
                              {
                                "entity": "switch.office_table",
                                "name": "Power"
                              },
                              {
                                "entity": "switch.office_power_strip_socket_4",
                                "name": "Top"
                              },
                              {
                                "entity": "switch.office_shelftop",
                                "name": "Power"
                              },
                              {
                                "entity": "switch.office_sven",
                                "name": "Top/Sven"
                              },
                              {
                                "entity": "switch.office_power_strip_socket_3",
                                "name": "Bottom"
                              },
                              {
                                "entity": "switch.office_shelfbottom",
                                "name": "Power"
                              },
                              {
                                "entity": "switch.office_power_strip_usb_1",
                                "name": "USB"
                              }
                            ],
                            "title": "Office Plugs"
                          }
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "type": "vertical-stack",
              "cards": [
                {
                  "square": true,
                  "columns": 2,
                  "type": "grid",
                  "cards": [
                    {
                      "type": "entities",
                      "entities": [
                        {
                          "entity": "switch.bedroom_lights_left",
                          "name": "Lustre-1"
                        },
                        {
                          "entity": "switch.bedroom_lights_center",
                          "name": "Lustre-2"
                        },
                        {
                          "entity": "light.smart_light",
                          "name": "Bulb"
                        },
                        {
                          "entity": "switch.bedroom_tablelamp",
                          "name": "DeskLamp"
                        },
                        {
                          "entity": "binary_sensor.bedroom_bedsidelamp",
                          "name": "BedLED"
                        }
                      ],
                      "title": "Bedroom Lights"
                    },
                    {
                      "type": "entities",
                      "entities": [
                        {
                          "entity": "switch.bedroom_aircon",
                          "name": "AirCon"
                        },
                        {
                          "entity": "switch.bedroom_bedsidelampsocket",
                          "name": "BedLamp"
                        }
                      ],
                      "title": "Bedroom Plugs"
                    }
                  ]
                },
                {
                  "square": true,
                  "columns": 2,
                  "type": "grid",
                  "cards": [
                    {
                      "type": "entities",
                      "entities": [
                        {
                          "entity": "switch.kitchen_lights_left",
                          "name": "Lustre"
                        },
                        {
                          "entity": "switch.kitchen_ledlights",
                          "name": "LED"
                        }
                      ],
                      "title": "Kitchen Lights"
                    },
                    {
                      "type": "custom:restriction-card",
                      "restrictions": {
                        "confirm": {
                          "exemptions": null
                        }
                      },
                      "card": {
                        "type": "entities",
                        "entities": [
                          {
                            "entity": "switch.kitchen_oven",
                            "name": "Oven"
                          },
                          {
                            "entity": "switch.kitchen_wash",
                            "name": "Wash"
                          },
                          {
                            "entity": "switch.kitchen_teatable",
                            "name": "Table"
                          },
                          {
                            "entity": "switch.kitchen_fridge",
                            "name": "Fridge"
                          }
                        ],
                        "title": "Kitchen Plugs"
                      }
                    }
                  ]
                },
                {
                  "square": true,
                  "columns": 2,
                  "type": "grid",
                  "cards": [
                    {
                      "type": "entities",
                      "entities": [
                        {
                          "entity": "switch.guestroom_lights_left",
                          "name": "Lustre-1"
                        },
                        {
                          "entity": "switch.guestroom_lights_right",
                          "name": "Lustre-2"
                        }
                      ],
                      "title": "Guest Lights"
                    },
                    {
                      "type": "entities",
                      "entities": [],
                      "title": "Guest Plugs"
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  }
}