This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Tuya 1 Phase Circuit Breaker with Current Leakage Detection and Electrical Measurement.""" | |
"""WIP: Need multi attribute -> DP code for over/under settings""" | |
from zigpy.quirks.v2 import SensorDeviceClass, SensorStateClass, EntityPlatform, EntityType | |
from zigpy.quirks.v2.homeassistant import ( | |
UnitOfElectricCurrent, | |
UnitOfEnergy, | |
UnitOfPower, | |
UnitOfTime | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""TS011F Circuit Breaker * Tongou TO-Q-SY2-JZT.""" | |
"""Supports HA 2025.08""" | |
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 ( |