"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wiserDimmerControlMode = exports.easyCodeTouchActions = exports.lockUserStatus = exports.lockSoundVolume = exports.colorModeLookup = exports.ColorMode = exports.iasMaxSecondsRemain = exports.armNotification = exports.armMode = exports.lockSourceName = exports.keypadLockoutMode = exports.develcoInterfaceMode = exports.danfossIconForcedHeatingCooling = exports.danfossIconApplication = exports.danfossMultimasterRole = exports.danfossHeatsupplyRequest = exports.danfossSystemStatusCode = exports.danfossSystemStatusWater = exports.danfossOutputStatus = exports.danfossIcon2PreHeatStatus = exports.danfossIcon2PreHeat = exports.danfossScheduleTypeUsed = exports.danfossRoomFloorSensorMode = exports.danfossRoomStatusCode = exports.danfossWindowOpen = exports.danfossAdaptionRunControl = exports.danfossAdaptionRunStatus = exports.temperatureDisplayMode = exports.fanMode = exports.thermostatScheduleMode = exports.thermostatAcLouverPositions = exports.thermostatRunningStates = exports.thermostatDayOfWeek = exports.thermostatRunningMode = exports.acovaThermostatSystemModes = exports.thermostatSystemModes = exports.thermostatSetpointChangeSource = exports.thermostatProgrammingOperationModes = exports.thermostatControlSequenceOfOperations = exports.repInterval = exports.defaultBindGroup = exports.OneJanuary2000 = void 0;
exports.OneJanuary2000 = new Date("January 01, 2000 00:00:00 UTC+00:00").getTime();
exports.defaultBindGroup = 901;
exports.repInterval = {
    HOUR: 3600,
    MAX: 65000,
    MINUTE: 60,
    SECONDS_10: 10,
    MINUTES_10: 600,
    MINUTES_15: 900,
    MINUTES_30: 1800,
    MINUTES_5: 300,
    SECONDS_5: 5,
};
exports.thermostatControlSequenceOfOperations = {
    0: "cooling_only",
    1: "cooling_with_reheat",
    2: "heating_only",
    3: "heating_with_reheat",
    4: "cooling_and_heating_4-pipes",
    5: "cooling_and_heating_4-pipes_with_reheat",
};
exports.thermostatProgrammingOperationModes = {
    0: "setpoint",
    1: "schedule",
    3: "schedule_with_preheat",
    4: "eco",
};
exports.thermostatSetpointChangeSource = {
    0: "manual",
    1: "schedule",
    2: "externally",
};
exports.thermostatSystemModes = {
    0: "off",
    1: "auto",
    3: "cool",
    4: "heat",
    5: "emergency_heating",
    6: "precooling",
    7: "fan_only",
    8: "dry",
    9: "sleep",
};
exports.acovaThermostatSystemModes = {
    0: "off",
    1: "heat",
    3: "auto",
    4: "away_or_vacation",
};
exports.thermostatRunningMode = {
    0: "off",
    3: "cool",
    4: "heat",
};
exports.thermostatDayOfWeek = {
    0: "sunday",
    1: "monday",
    2: "tuesday",
    3: "wednesday",
    4: "thursday",
    5: "friday",
    6: "saturday",
    7: "away_or_vacation",
};
exports.thermostatRunningStates = {
    0: "idle",
    1: "heat",
    2: "cool",
    4: "fan_only",
    5: "heat",
    6: "cool",
    8: "heat",
    9: "heat",
    A: "heat",
    D: "heat",
    10: "cool",
    12: "cool",
    14: "cool",
    15: "cool",
    22: "cool",
    33: "heat",
    34: "cool",
    65: "heat",
    66: "cool",
    32768: "idle",
    32769: "heat",
};
exports.thermostatAcLouverPositions = {
    0: "fully_closed",
    1: "fully_closed",
    2: "fully_open",
    3: "quarter_open",
    4: "half_open",
    5: "three_quarters_open",
};
exports.thermostatScheduleMode = {
    0: "heat",
    1: "cool",
};
exports.fanMode = {
    off: 0,
    low: 1,
    medium: 2,
    high: 3,
    on: 4,
    auto: 5,
    smart: 6,
};
exports.temperatureDisplayMode = {
    0: "celsius",
    1: "fahrenheit",
};
exports.danfossAdaptionRunStatus = {
    0: "none",
    1: "in_progress",
    2: "found",
    4: "lost",
    5: "lost_in_progress",
};
exports.danfossAdaptionRunControl = {
    0: "none",
    1: "initiate_adaptation",
    2: "cancel_adaptation",
};
exports.danfossWindowOpen = {
    0: "quarantine",
    1: "closed",
    2: "hold",
    3: "open",
    4: "external_open",
};
exports.danfossRoomStatusCode = {
    0: "no_error",
    257: "missing_rt",
    513: "rt_touch_error",
    1025: "floor_sensor_short_circuit",
    2049: "floor_sensor_disconnected",
};
exports.danfossRoomFloorSensorMode = {
    0: "comfort",
    1: "floor_only",
    2: "dual_mode",
};
exports.danfossScheduleTypeUsed = {
    0: "regular_schedule_selected",
    1: "vacation_schedule_selected",
};
exports.danfossIcon2PreHeat = {
    0: "disable",
    1: "enable",
};
exports.danfossIcon2PreHeatStatus = {
    0: "disable",
    1: "enable",
};
exports.danfossOutputStatus = {
    0: "inactive",
    1: "active",
};
exports.danfossSystemStatusWater = {
    0: "hot_water_flow_in_pipes",
    1: "cool_water_flow_in_pipes",
};
exports.danfossSystemStatusCode = {
    0: "no_error",
    257: "missing_expansion_board",
    513: "missing_radio_module",
    1025: "missing_command_module",
    2049: "missing_master_rail",
    4097: "missing_slave_rail_no_1",
    8193: "missing_slave_rail_no_2",
    16385: "pt1000_input_short_circuit",
    32769: "pt1000_input_open_circuit",
    258: "error_on_one_or_more_output",
};
exports.danfossHeatsupplyRequest = {
    0: "none",
    1: "heat_supply_request",
};
exports.danfossMultimasterRole = {
    0: "invalid_unused",
    1: "master",
    2: "slave_1",
    3: "slave_2",
};
exports.danfossIconApplication = {
    0: "0",
    1: "1",
    2: "2",
    3: "3",
    4: "4",
    5: "5",
    6: "6",
    7: "7",
    8: "8",
    9: "9",
    10: "10",
    11: "11",
    12: "12",
    13: "13",
    14: "14",
    15: "15",
    16: "16",
    17: "17",
    18: "18",
    19: "19",
    20: "20",
};
exports.danfossIconForcedHeatingCooling = {
    0: "force_heating",
    1: "force_cooling",
    2: "none",
};
exports.develcoInterfaceMode = {
    0: "electricity",
    1: "gas",
    2: "water",
    256: "kamstrup-kmp",
    257: "linky",
    258: "IEC62056-21",
    259: "DSMR-2.3",
    260: "DSMR-4.0",
};
exports.keypadLockoutMode = {
    0: "unlock",
    1: "lock1",
    2: "lock2",
    3: "lock3",
    4: "lock4",
    5: "lock5",
};
exports.lockSourceName = {
    0: "keypad",
    1: "rf",
    2: "manual",
    3: "rfid",
    4: "fingerprint",
};
exports.armMode = {
    0: "disarm",
    1: "arm_day_zones",
    2: "arm_night_zones",
    3: "arm_all_zones",
    4: "exit_delay",
    5: "entry_delay",
    6: "not_ready",
    7: "in_alarm",
    8: "arming_stay",
    9: "arming_night",
    10: "arming_away",
};
exports.armNotification = {
    0: "disarm",
    1: "arm_day_zones",
    2: "arm_night_zones",
    3: "arm_all_zones",
    4: "invalid_code",
    5: "not_ready",
    6: "already_disarmed",
};
exports.iasMaxSecondsRemain = 255;
// ID's from ZCL mapped to ha names where appropriate
// https://github.com/home-assistant/core/pull/47720
exports.ColorMode = {
    HS: 0,
    XY: 1,
    ColorTemp: 2,
};
exports.colorModeLookup = {
    [exports.ColorMode.HS]: "hs",
    [exports.ColorMode.XY]: "xy",
    [exports.ColorMode.ColorTemp]: "color_temp",
};
exports.lockSoundVolume = ["silent_mode", "low_volume", "high_volume"];
exports.lockUserStatus = {
    0: "available",
    1: "enabled",
    3: "disabled",
};
exports.easyCodeTouchActions = {
    // First byte are source / msg.data[3]
    // 0x00 KeyPad: If the user uses the code panel.
    // 0x02 Manual: If the user used a key, button or fingerprint.
    // 0x03 RFID: If the user used an RFID tag.
    // 0xFF Other: If the user used an unknown method
    // Last byte are eventCode / msg.data[4]
    // 0x00 Lock: The device was locked using either button, code panel or RFID.
    // 0x01 Unlock: The device was unlocked using either button, code panel or RFID.
    // 0x08 Key Lock: If the user locked with a key.
    // 0x09 Key Unlock: If the user unlocked with a key.
    // 0x10 Fingerprint Lock: The device was locked using fingerprint.
    // 0x11 Fingerprint Unlock: The device was unlocked using fingerprint.
    0: "keypad_lock",
    1: "keypad_unlock",
    // Manual says 0x0001 but the lock sends 0x0002 when you unlock it using the keypad
    2: "keypad_unlock",
    512: "manual_lock",
    513: "manual_unlock",
    520: "key_lock",
    521: "key_unlock",
    528: "fingerprint_lock",
    529: "fingerprint_unlock",
    768: "rfid_lock",
    769: "rfid_unlock",
    65293: "lock",
    65294: "zigbee_unlock",
};
exports.wiserDimmerControlMode = {
    0: "auto",
    1: "rc",
    2: "rl",
    3: "rl_led",
};
//# sourceMappingURL=constants.js.map