{
    "version": 1,
    "minor_version": 1,
    "key": "lovelace.lovelace_test",
    "data": {
        "config": {
            "views": [
                {
                    "theme": "Backend-selected",
                    "title": "Home",
                    "type": "custom:grid-layout",
                    "layout": {
                        "max_cols": 4,
                        "grid-template-columns": "25% 25% 25% 25%",
                        "grid-template-rows": "auto",
                        "mediaquery": {
                            "(max-width: 600px)": {
                                "grid-template-columns": "100%"
                            },
                            "(max-width: 1200px)": {
                                "grid-template-columns": "50% 50%"
                            },
                            "(max-width: 1800px)": {
                                "grid-template-columns": "33% 33% 33%"
                            }
                        }
                    },
                    "badges": [],
                    "cards": [
                        {
                            "type": "vertical-stack",
                            "cards": [
                                {
                                    "type": "entities",
                                    "entities": [
                                        {
                                            "entity": "group.master_phones",
                                            "name": "Phones"
                                        },
                                        {
                                            "entity": "group.master_laptops",
                                            "name": "Laptops"
                                        },
                                        {
                                            "entity": "sensor.192_168_50_1_devices_connected",
                                            "name": "Asgard clients"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "device_tracker.legion8",
                                            "name": "Legion8/Asgard"
                                        },
                                        {
                                            "entity": "device_tracker.lm_g810",
                                            "name": "Legion8/Hass"
                                        },
                                        {
                                            "entity": "device_tracker.nyx",
                                            "name": "Nyx/Asgard"
                                        }
                                    ]
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "group.master_phones",
                                            "name": "Phones"
                                        },
                                        {
                                            "entity": "group.master_laptops",
                                            "name": "Laptops"
                                        },
                                        {
                                            "entity": "device_tracker.legion8",
                                            "name": "Legion8/Asgard"
                                        },
                                        {
                                            "entity": "device_tracker.lm_g810",
                                            "name": "Legion8/Hass"
                                        },
                                        {
                                            "entity": "device_tracker.nyx",
                                            "name": "Nyx/Asgard"
                                        },
                                        {
                                            "entity": "sensor.192_168_50_1_devices_connected",
                                            "name": "Asgard clients"
                                        }
                                    ],
                                    "hours_to_show": 12
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "binary_sensor.entrance_door_contact",
                                            "name": "Contact"
                                        },
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Motions"
                                        },
                                        {
                                            "entity": "binary_sensor.entrance_vibrations_vibration",
                                            "name": "Vibration"
                                        },
                                        {
                                            "entity": "sensor.entrance_vibrations_strength",
                                            "name": "Strength"
                                        }
                                    ],
                                    "hours_to_show": 1,
                                    "title": "Vibration Sensor (1h)"
                                }
                            ]
                        },
                        {
                            "type": "vertical-stack",
                            "cards": [
                                {
                                    "type": "entities",
                                    "entities": [
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Hall"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions_occupancy",
                                            "name": "Kitchen/Table"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
                                            "name": "Kitchen/Sink"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "binary_sensor.bathroom_motions_occupancy",
                                            "name": "Bathroom"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_motions_occupancy",
                                            "name": "Toilet"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_door_contact",
                                            "name": "Door"
                                        }
                                    ]
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Hall"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions_occupancy",
                                            "name": "Kitchen/Table"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
                                            "name": "Kitchen/Sink"
                                        },
                                        {
                                            "entity": "binary_sensor.bathroom_motions_occupancy",
                                            "name": "Bathroom"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_motions_occupancy",
                                            "name": "Toilet"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_door_contact",
                                            "name": "Toilet Door"
                                        }
                                    ],
                                    "hours_to_show": 1,
                                    "title": "Motion Sensors (1h)"
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Hall"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions_occupancy",
                                            "name": "Kitchen/Table"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
                                            "name": "Kitchen/Sink"
                                        },
                                        {
                                            "entity": "binary_sensor.bathroom_motions_occupancy",
                                            "name": "Bathroom"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_motions_occupancy",
                                            "name": "Toilet"
                                        },
                                        {
                                            "entity": "binary_sensor.toilet_door_contact",
                                            "name": "Toilet Door"
                                        }
                                    ],
                                    "hours_to_show": 12,
                                    "title": "Motion Sensors (12h)"
                                }
                            ]
                        },
                        {
                            "type": "vertical-stack",
                            "cards": [
                                {
                                    "type": "entities",
                                    "entities": [
                                        {
                                            "entity": "switch.hall_lights_left",
                                            "name": "Hall Light"
                                        },
                                        {
                                            "entity": "switch.entrance_lights_left",
                                            "name": "Entrance Light"
                                        },
                                        {
                                            "entity": "switch.kitchen_lights_left",
                                            "name": "Kitchen/Lustre"
                                        },
                                        {
                                            "entity": "switch.kitchen_lights_center",
                                            "name": "Kitchen/LED"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Motions/Hall"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions_occupancy",
                                            "name": "Motions/Table"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
                                            "name": "Motions/Sink"
                                        },
                                        {
                                            "type": "divider"
                                        },
                                        {
                                            "entity": "sensor.hall_motions_illuminance_lux",
                                            "name": "Lux/Hall"
                                        },
                                        {
                                            "entity": "sensor.kitchen_motions_illuminance_lux",
                                            "name": "Lux/Table"
                                        },
                                        {
                                            "entity": "sensor.kitchen_motions2_illuminance_lux",
                                            "name": "Lux/Sink"
                                        }
                                    ]
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "switch.hall_lights_left",
                                            "name": "Hall Light"
                                        },
                                        {
                                            "entity": "switch.entrance_lights_left",
                                            "name": "Entrance Light"
                                        },
                                        {
                                            "entity": "switch.kitchen_lights_left",
                                            "name": "Kitchen/Lustre"
                                        },
                                        {
                                            "entity": "switch.kitchen_lights_center",
                                            "name": "Kitchen/LED"
                                        },
                                        {
                                            "entity": "switch.living_lights_left",
                                            "name": "Living/Lustre1"
                                        },
                                        {
                                            "entity": "switch.living_lights_center",
                                            "name": "Living/Lustre2"
                                        },
                                        {
                                            "entity": "switch.living_lights_right",
                                            "name": "Living/Office"
                                        },
                                        {
                                            "entity": "switch.bathroom_lights_left",
                                            "name": "Bedroom/Lustre1"
                                        },
                                        {
                                            "entity": "switch.bedroom_lights_center",
                                            "name": "Bedroom/Lustre1"
                                        },
                                        {
                                            "entity": "switch.bathroom_lights_left",
                                            "name": "Bathroom/Light"
                                        },
                                        {
                                            "entity": "switch.entrance_lights_left",
                                            "name": "Toilet/Light"
                                        },
                                        {
                                            "entity": "binary_sensor.hall_motions_occupancy",
                                            "name": "Motions"
                                        },
                                        {
                                            "entity": "sensor.hall_motions_illuminance_lux",
                                            "name": "Lux"
                                        }
                                    ],
                                    "hours_to_show": 1,
                                    "title": "Hall Illuminance (1h)"
                                },
                                {
                                    "type": "history-graph",
                                    "entities": [
                                        {
                                            "entity": "switch.kitchen_lights_left",
                                            "name": "Lustre"
                                        },
                                        {
                                            "entity": "switch.kitchen_lights_center",
                                            "name": "LED"
                                        },
                                        {
                                            "entity": "switch.hall_lights_left",
                                            "name": "Hall Light"
                                        },
                                        {
                                            "entity": "switch.entrance_lights_left",
                                            "name": "Entrance Light"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions_occupancy",
                                            "name": "Motions/Table"
                                        },
                                        {
                                            "entity": "binary_sensor.kitchen_motions2_occupancy",
                                            "name": "Motions/Sink"
                                        },
                                        {
                                            "entity": "sensor.kitchen_motions_illuminance_lux",
                                            "name": "Lux/Table"
                                        },
                                        {
                                            "entity": "sensor.kitchen_motions2_illuminance_lux",
                                            "name": "Lux/Sink"
                                        }
                                    ],
                                    "hours_to_show": 1,
                                    "title": "Kitchen Illuminance (1h)"
                                }
                            ]
                        },
                        {
                            "type": "conditional",
                            "conditions": [
                                {
                                    "entity": "binary_sensor.kitchen_motions_illuminance_lux",
                                    "state": "3333"
                                }
                            ],
                            "card": {
                                "type": "vertical-stack",
                                "cards": [
                                    {
                                        "type": "history-graph",
                                        "entities": [
                                            {
                                                "entity": "switch.living_lights_left",
                                                "name": "Lustre 1"
                                            },
                                            {
                                                "entity": "switch.living_lights_center",
                                                "name": "Lustre 2"
                                            },
                                            {
                                                "entity": "switch.living_lights_right",
                                                "name": "Smart Bulb"
                                            },
                                            {
                                                "entity": "switch.living_tablelamp",
                                                "name": "DeskLamp"
                                            },
                                            {
                                                "entity": "binary_sensor.living_motions_occupancy",
                                                "name": "Room Motions"
                                            },
                                            {
                                                "entity": "sensor.living_motions_illuminance_lux",
                                                "name": "Room Lux"
                                            },
                                            {
                                                "entity": "binary_sensor.office_motions_occupancy",
                                                "name": "Office Motions"
                                            },
                                            {
                                                "entity": "sensor.office_motions_illuminance_lux",
                                                "name": "Office Lux"
                                            }
                                        ],
                                        "hours_to_show": 1,
                                        "title": "Living Illuminance (1h)"
                                    },
                                    {
                                        "type": "history-graph",
                                        "entities": [
                                            {
                                                "entity": "switch.bedroom_lights_left",
                                                "name": "Lustre 1"
                                            },
                                            {
                                                "entity": "switch.bedroom_lights_center",
                                                "name": "Lustre 2"
                                            },
                                            {
                                                "entity": "switch.bedroom_lights_right",
                                                "name": "Smart Bulb"
                                            },
                                            {
                                                "entity": "switch.bedroom_tablelamp",
                                                "name": "DeskLamp"
                                            },
                                            {
                                                "entity": "binary_sensor.bedroom_bedsidelamp",
                                                "name": "BedLamp"
                                            },
                                            {
                                                "entity": "binary_sensor.bedroom_motions_occupancy",
                                                "name": "Motions"
                                            },
                                            {
                                                "entity": "sensor.bedroom_motions_illuminance_lux",
                                                "name": "Lux"
                                            }
                                        ],
                                        "hours_to_show": 1,
                                        "title": "Bedroom Illuminance (1h)"
                                    },
                                    {
                                        "type": "history-graph",
                                        "entities": [
                                            {
                                                "entity": "switch.bedroom_lights_left",
                                                "name": "Lustre 1"
                                            },
                                            {
                                                "entity": "switch.bedroom_lights_center",
                                                "name": "Lustre 2"
                                            },
                                            {
                                                "entity": "switch.bedroom_lights_right",
                                                "name": "Smart Bulb"
                                            },
                                            {
                                                "entity": "switch.bedroom_tablelamp",
                                                "name": "DeskLamp"
                                            },
                                            {
                                                "entity": "binary_sensor.bedroom_bedsidelamp",
                                                "name": "BedLamp"
                                            },
                                            {
                                                "entity": "binary_sensor.bedroom_motions_occupancy",
                                                "name": "Motions"
                                            },
                                            {
                                                "entity": "sensor.bedroom_motions_illuminance_lux",
                                                "name": "Lux"
                                            }
                                        ],
                                        "hours_to_show": 12,
                                        "title": "Bedroom Illuminance (12h)"
                                    }
                                ]
                            }
                        },
                        {
                            "type": "vertical-stack",
                            "cards": [
                                {
                                    "type": "entities",
                                    "entities": [
                                        {
                                            "entity": "input_number.knob_office_current"
                                        },
                                        {
                                            "entity": "input_number.knob_office_brightness0"
                                        },
                                        {
                                            "entity": "input_number.knob_office_temperature0"
                                        },
                                        {
                                            "entity": "input_number.knob_office_hue0"
                                        },
                                        {
                                            "entity": "input_number.knob_office_brightness1"
                                        },
                                        {
                                            "entity": "input_number.knob_office_temperature1"
                                        },
                                        {
                                            "entity": "input_number.knob_office_hue1"
                                        }
                                    ],
                                    "title": "Knob Control"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    }
}