This file contains 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
/* Custom converter for 4/8/12 channel zigbee switch */ | |
const { | |
fromZigbeeConverters, | |
toZigbeeConverters, | |
exposes | |
} = require('zigbee-herdsman-converters'); | |
const e = exposes.presets; | |
const ea = exposes.access; |
This file contains 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
const {deviceEndpoints, numeric, onOff, commandsOnOff, binary, quirkAddEndpointCluster} = require('zigbee-herdsman-converters/lib/modernExtend'); | |
const definition = { | |
zigbeeModel: ['alab.switch'], | |
model: 'alab.switch', | |
vendor: 'Alab', | |
description: 'Four channel relay board with four inputs', | |
extend: [ | |
deviceEndpoints({ | |
endpoints: {"l1":1,"l2":2,"l3":3,"l4":4,"in1":5,"in2":6,"in3":7,"in4":8}} |
This file contains 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
"""Module to handle quirks of the Alap CO2 Sensor. | |
manufacturer specific attributes to control displaying and specific configuration. | |
""" | |
import logging | |
import zigpy.profiles.zha as zha_p | |
from zigpy.quirks import CustomCluster, CustomDevice | |
from zigpy.zcl.clusters.homeautomation import Diagnostic | |
from zhaquirks import Bus, LocalDataCluster, QuickInitDevice |
OlderNewer