Skip to content

Instantly share code, notes, and snippets.

View andreibsk's full-sized avatar

Andrei Bîscă andreibsk

View GitHub Profile
@andreibsk
andreibsk / aqara_wall_outlet_h2_eu.py
Created October 19, 2025 15:00
Custom ZHA quirks for Aqara Wall Outlet H2 EU and Wall Switch H1 EU
from __future__ import annotations
from enum import Enum
from typing import Final
from zigpy import types
from zigpy.quirks import CustomCluster
from zigpy.quirks.v2 import QuirkBuilder
from zigpy.zcl.clusters.general import (
DeviceTemperature,
@andreibsk
andreibsk / layout.html
Last active September 15, 2020 15:27
Example page layout with two independently scrollable lists using flex. Preview: https://gistpreview.github.io/?74981f20e0c8aff1d836b0aff50a6962
<html>
<head>
<link rel="stylesheet" href="site.css" type="text/css">
<style>
body {
margin: 0;
height: 100%;
}
.vsplit {