Skip to content

Instantly share code, notes, and snippets.

View franortiz's full-sized avatar

Francisco Ortiz franortiz

View GitHub Profile
@franortiz
franortiz / tze204_fhvdgeuh.py
Last active April 21, 2026 18:32
zigpy quirk for TS0601 - Circuit Breaker with Current Leakage Detection and Electrical Measurement
"""Tuya Single Phase Circuit Breaker with Current Leakage Detection and Electrical Measurement."""
import logging
from zigpy.quirks.v2 import SensorDeviceClass, SensorStateClass, EntityPlatform, EntityType
from zigpy.quirks.v2.homeassistant import (
UnitOfElectricCurrent,
UnitOfElectricPotential,
UnitOfEnergy,
UnitOfPower,
UnitOfTime,
UnitOfTemperature,
@franortiz
franortiz / tz3000_cayepv1a.py
Last active July 20, 2026 20:17
zigpy quirk for TS011F Circuit Breaker * Tongou TO-Q-SY2-JZT and others
"""TS011F Circuit Breaker * Tongou TO-Q-SY2-JZT."""
"""Supports HA 2027.07"""
from typing import Any, Optional, Union
import logging
import enum
from struct import (iter_unpack, pack)
from zigpy.profiles import zgp, zha
from zigpy.quirks.v2 import (