diff --git a/src/devices/efekta.ts b/src/devices/efekta.ts index b4ac5e9c04af9..6cfeaff4c40e9 100644 --- a/src/devices/efekta.ts +++ b/src/devices/efekta.ts @@ -26,26 +26,33 @@ export const definitions: DefinitionWithExtend[] = [ description: "CO2 Monitor with IPS TFT Display, outdoor temperature and humidity, date and time", extend: [ m.deviceEndpoints({endpoints: {"1": 1, "2": 2}}), - m.co2({reporting: co2Reporting}), + m.co2({ + reporting: co2Reporting, + access: "STATE", + }), m.temperature({ endpointNames: ["1"], description: "Measured value of the built-in temperature sensor", reporting: fourReporting, + access: "STATE", }), m.temperature({ endpointNames: ["2"], description: "Measured value of the external temperature sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["1"], description: "Measured value of the built-in humidity sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["2"], description: "Measured value of the external humidity sensor", reporting: fourReporting, + access: "STATE", }), m.numeric({ name: "voc_index", @@ -455,28 +462,38 @@ export const definitions: DefinitionWithExtend[] = [ description: "CO2 Monitor with IPS TFT Display, outdoor temperature and humidity, date and time", extend: [ m.deviceEndpoints({endpoints: {"1": 1, "2": 2}}), - m.co2({reporting: co2Reporting}), + m.co2({ + reporting: co2Reporting, + access: "STATE", + }), m.temperature({ endpointNames: ["1"], description: "Measured value of the built-in temperature sensor", reporting: fourReporting, + access: "STATE", }), m.temperature({ endpointNames: ["2"], description: "Measured value of the external temperature sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["1"], description: "Measured value of the built-in humidity sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["2"], description: "Measured value of the external humidity sensor", reporting: fourReporting, + access: "STATE", + }), + m.illuminance({ + reporting: fourReporting, + access: "STATE", }), - m.illuminance({reporting: fourReporting}), m.numeric({ name: "reading_interval", unit: "seconds", @@ -485,6 +502,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0201, type: Zcl.DataType.UINT16}, description: "Setting the sensor reading interval.", + access: "STATE_SET", }), m.binary({ name: "auto_brightness", @@ -493,6 +511,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0203, type: Zcl.DataType.BOOLEAN}, description: "Enable or Disable Auto Brightness of the Display", + access: "STATE_SET", }), m.binary({ name: "night_onoff_backlight", @@ -501,6 +520,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0401, type: Zcl.DataType.BOOLEAN}, description: "Complete shutdown of the backlight at night mode", + access: "STATE_SET", }), m.numeric({ name: "night_on_backlight", @@ -510,6 +530,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0405, type: Zcl.DataType.UINT8}, description: "Night mode activation time", + access: "STATE_SET", }), m.numeric({ name: "night_off_backlight", @@ -519,6 +540,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0406, type: Zcl.DataType.UINT8}, description: "Night mode deactivation time", + access: "STATE_SET", }), m.enumLookup({ name: "rotate", @@ -526,6 +548,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0285, type: Zcl.DataType.UINT16}, description: "Display rotation angle", + access: "STATE_SET", }), m.binary({ name: "long_chart_period", @@ -534,6 +557,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0204, type: Zcl.DataType.BOOLEAN}, description: "The period of plotting the CO2 level(OFF - 1H | ON - 24H)", + access: "STATE_SET", }), m.numeric({ name: "set_altitude", @@ -543,6 +567,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0205, type: Zcl.DataType.UINT16}, description: "Setting the altitude above sea level (for high accuracy of the CO2 sensor)", + access: "STATE_SET", }), m.numeric({ name: "temperature_offset", @@ -554,6 +579,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0210, type: Zcl.DataType.INT16}, description: "Adjust temperature", + access: "STATE_SET", }), m.numeric({ name: "humidity_offset", @@ -564,6 +590,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0210, type: Zcl.DataType.INT16}, description: "Adjust humidity", + access: "STATE_SET", }), m.binary({ name: "automatic_calibrations", @@ -572,6 +599,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0402, type: Zcl.DataType.BOOLEAN}, description: "Automatic calibration of the CO2 sensor", + access: "STATE_SET", }), m.binary({ name: "forced_recalibration", @@ -580,6 +608,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0202, type: Zcl.DataType.BOOLEAN}, description: "Start FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "factory_reset_co2", @@ -588,6 +617,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0206, type: Zcl.DataType.BOOLEAN}, description: "Factory Reset CO2 sensor", + access: "STATE_SET", }), m.numeric({ name: "manual_forced_recalibration", @@ -597,6 +627,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0207, type: Zcl.DataType.UINT16}, description: "Start Manual FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "enable_gas", @@ -605,6 +636,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable CO2 Gas Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_gas", @@ -613,6 +645,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Enable invert logic CO2 Gas Control", + access: "STATE_SET", }), m.numeric({ name: "high_gas", @@ -622,6 +655,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0221, type: Zcl.DataType.UINT16}, description: "Setting High CO2 Gas Border", + access: "STATE_SET", }), m.numeric({ name: "low_gas", @@ -631,6 +665,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0222, type: Zcl.DataType.UINT16}, description: "Setting Low CO2 Gas Border", + access: "STATE_SET", }), ], }, @@ -640,9 +675,18 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "EFEKTA CO2 Smart Monitor, rgb indicator, can control the relay, binding", extend: [ - m.co2({reporting: co2Reporting}), - m.temperature({reporting: fourReporting}), - m.humidity({reporting: fourReporting}), + m.co2({ + reporting: co2Reporting, + access: "STATE", + }), + m.temperature({ + reporting: fourReporting, + access: "STATE", + }), + m.humidity({ + reporting: fourReporting, + access: "STATE", + }), m.numeric({ name: "reading_interval", unit: "seconds", @@ -651,6 +695,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0201, type: Zcl.DataType.UINT16}, description: "Setting the sensor reading interval.", + access: "STATE_SET", }), m.binary({ name: "light_indicator", @@ -659,6 +704,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0211, type: Zcl.DataType.BOOLEAN}, description: "Enable or Disable light indicator", + access: "STATE_SET", }), m.numeric({ name: "light_indicator_level", @@ -668,6 +714,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0209, type: Zcl.DataType.UINT8}, description: "Light indicator level", + access: "STATE_SET", }), m.numeric({ name: "set_altitude", @@ -677,6 +724,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0205, type: Zcl.DataType.UINT16}, description: "Setting the altitude above sea level (for high accuracy of the CO2 sensor)", + access: "STATE_SET", }), m.numeric({ name: "temperature_offset", @@ -688,6 +736,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0410, type: Zcl.DataType.INT16}, description: "Adjust temperature", + access: "STATE_SET", }), m.numeric({ name: "humidity_offset", @@ -698,6 +747,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0210, type: Zcl.DataType.INT16}, description: "Adjust humidity", + access: "STATE_SET", }), m.binary({ name: "automatic_calibrations", @@ -706,6 +756,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0402, type: Zcl.DataType.BOOLEAN}, description: "Automatic calibration of the CO2 sensor", + access: "STATE_SET", }), m.binary({ name: "forced_recalibration", @@ -714,6 +765,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0202, type: Zcl.DataType.BOOLEAN}, description: "Start FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "factory_reset_co2", @@ -722,6 +774,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0206, type: Zcl.DataType.BOOLEAN}, description: "Factory Reset CO2 sensor", + access: "STATE_SET", }), m.numeric({ name: "manual_forced_recalibration", @@ -731,6 +784,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0207, type: Zcl.DataType.UINT16}, description: "Start Manual FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "enable_gas", @@ -739,6 +793,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable CO2 Gas Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_gas", @@ -747,6 +802,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Enable invert logic CO2 Gas Control", + access: "STATE_SET", }), m.numeric({ name: "high_gas", @@ -756,6 +812,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0221, type: Zcl.DataType.UINT16}, description: "Setting High CO2 Gas Border", + access: "STATE_SET", }), m.numeric({ name: "low_gas", @@ -765,6 +822,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0222, type: Zcl.DataType.UINT16}, description: "Setting Low CO2 Gas Border", + access: "STATE_SET", }), ], }, @@ -774,9 +832,18 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "EFEKTA CO2 & VOC Index Smart Monitor, rgb indicator, can control the relay, binding", extend: [ - m.co2({reporting: co2Reporting}), - m.temperature({reporting: fourReporting}), - m.humidity({reporting: fourReporting}), + m.co2({ + reporting: co2Reporting, + access: "STATE", + }), + m.temperature({ + reporting: fourReporting, + access: "STATE", + }), + m.humidity({ + reporting: fourReporting, + access: "STATE", + }), m.numeric({ name: "voc_index", unit: "VOC Index points", @@ -794,6 +861,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0201, type: Zcl.DataType.UINT16}, description: "Setting the sensor reading interval.", + access: "STATE_SET", }), m.binary({ name: "light_indicator", @@ -802,6 +870,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0211, type: Zcl.DataType.BOOLEAN}, description: "Enable or Disable light indicator", + access: "STATE_SET", }), m.numeric({ name: "light_indicator_level", @@ -811,6 +880,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0209, type: Zcl.DataType.UINT8}, description: "Light indicator level", + access: "STATE_SET", }), m.numeric({ name: "set_altitude", @@ -820,6 +890,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0205, type: Zcl.DataType.UINT16}, description: "Setting the altitude above sea level (for high accuracy of the CO2 sensor)", + access: "STATE_SET", }), m.numeric({ name: "temperature_offset", @@ -831,6 +902,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0410, type: Zcl.DataType.INT16}, description: "Adjust temperature", + access: "STATE_SET", }), m.numeric({ name: "humidity_offset", @@ -841,6 +913,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0210, type: Zcl.DataType.INT16}, description: "Adjust humidity", + access: "STATE_SET", }), m.binary({ name: "automatic_calibrations", @@ -849,6 +922,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0402, type: Zcl.DataType.BOOLEAN}, description: "Automatic calibration of the CO2 sensor", + access: "STATE_SET", }), m.binary({ name: "forced_recalibration", @@ -857,6 +931,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0202, type: Zcl.DataType.BOOLEAN}, description: "Start FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "factory_reset_co2", @@ -865,6 +940,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0206, type: Zcl.DataType.BOOLEAN}, description: "Factory Reset CO2 sensor", + access: "STATE_SET", }), m.numeric({ name: "manual_forced_recalibration", @@ -874,6 +950,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0207, type: Zcl.DataType.UINT16}, description: "Start Manual FRC (Perform Forced Recalibration of the CO2 Sensor)", + access: "STATE_SET", }), m.binary({ name: "enable_co2_gas", @@ -882,6 +959,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable CO2 Gas Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_co2_gas", @@ -890,6 +968,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Enable invert logic CO2 Gas Control", + access: "STATE_SET", }), m.numeric({ name: "high_co2_gas", @@ -899,6 +978,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0221, type: Zcl.DataType.UINT16}, description: "Setting High CO2 Gas Border", + access: "STATE_SET", }), m.numeric({ name: "low_co2_gas", @@ -908,6 +988,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msCO2", attribute: {ID: 0x0222, type: Zcl.DataType.UINT16}, description: "Setting Low CO2 Gas Border", + access: "STATE_SET", }), m.binary({ name: "enable_voc", @@ -916,6 +997,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genAnalogInput", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable VOC Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_voc", @@ -924,6 +1006,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genAnalogInput", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Enable invert logic VOC Control", + access: "STATE_SET", }), m.numeric({ name: "high_voc", @@ -933,6 +1016,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genAnalogInput", attribute: {ID: 0x0221, type: Zcl.DataType.UINT16}, description: "Setting High VOC Border", + access: "STATE_SET", }), m.numeric({ name: "low_voc", @@ -942,6 +1026,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genAnalogInput", attribute: {ID: 0x0222, type: Zcl.DataType.UINT16}, description: "Setting Low VOC Border", + access: "STATE_SET", }), ], }, @@ -1588,6 +1673,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genPowerCfg", attribute: {ID: 0x0201, type: Zcl.DataType.UINT16}, description: "Setting the sensor reading interval in seconds, by default 15 seconds", + access: "STATE_SET", }), m.enumLookup({ name: "tx_radio_power", @@ -1604,6 +1690,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "genPowerCfg", attribute: {ID: 0x0216, type: Zcl.DataType.BOOLEAN}, description: "Enable Smart Sleep, short wakeup every 2-7 seconds", + access: "STATE_SET", }), ], }, @@ -1613,6 +1700,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature sensors with a signal amplifier. External DS18b20 sensor. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -1657,7 +1745,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -1696,6 +1784,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -1704,6 +1793,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -1713,6 +1803,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -1722,6 +1813,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), ], }, @@ -1731,6 +1823,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature sensors. External DS18b20 sensor. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -1767,7 +1860,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -1806,6 +1899,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -1814,6 +1908,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -1823,6 +1918,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -1832,6 +1928,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), ], }, @@ -1841,6 +1938,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature and humidity sensors with a signal amplifier. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -1889,7 +1987,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -1920,6 +2018,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -1928,6 +2027,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -1937,6 +2037,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -1946,6 +2047,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -1954,6 +2056,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -1962,6 +2065,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -1971,6 +2075,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -1980,6 +2085,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -1989,6 +2095,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature and humidity sensors. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -2029,7 +2136,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -2060,6 +2167,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -2068,6 +2176,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -2077,6 +2186,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -2086,6 +2196,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -2094,6 +2205,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -2102,6 +2214,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -2111,6 +2224,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -2120,6 +2234,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -2129,6 +2244,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature and humidity sensors with a signal amplifier. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -2177,7 +2293,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -2208,6 +2324,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -2216,6 +2333,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -2225,6 +2343,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -2234,6 +2353,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -2242,6 +2362,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -2250,6 +2371,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -2259,6 +2381,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -2268,6 +2391,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -2277,6 +2401,7 @@ export const definitions: DefinitionWithExtend[] = [ vendor: "EFEKTA", description: "Temperature and humidity sensors. Simple Thermostat.", extend: [ + m.identify(), m.temperature({ reporting: fourReporting, access: "STATE", @@ -2317,7 +2442,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -2348,6 +2473,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -2356,6 +2482,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -2365,6 +2492,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -2374,6 +2502,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -2382,6 +2511,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -2390,6 +2520,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -2399,6 +2530,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -2408,6 +2540,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -2422,21 +2555,25 @@ export const definitions: DefinitionWithExtend[] = [ endpointNames: ["1"], description: "Measured value of the built-in temperature sensor", reporting: fourReporting, + access: "STATE", }), m.temperature({ endpointNames: ["2"], description: "Measured value of the external temperature sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["1"], description: "Measured value of the built-in humidity sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["2"], description: "Measured value of the external humidity sensor", reporting: fourReporting, + access: "STATE", }), m.battery({ percentage: true, @@ -2478,7 +2615,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -2509,6 +2646,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "switching_temperature_sensor", @@ -2517,6 +2655,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0229, type: Zcl.DataType.BOOLEAN}, description: "Enable internal or external sensor control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -2525,6 +2664,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -2534,6 +2674,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -2543,6 +2684,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -2551,6 +2693,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "switching_humidity_sensor", @@ -2559,6 +2702,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0229, type: Zcl.DataType.BOOLEAN}, description: "Enable internal or external sensor control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -2567,6 +2711,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -2576,6 +2721,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -2585,6 +2731,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -2599,21 +2746,25 @@ export const definitions: DefinitionWithExtend[] = [ endpointNames: ["1"], description: "Measured value of the built-in temperature sensor", reporting: fourReporting, + access: "STATE", }), m.temperature({ endpointNames: ["2"], description: "Measured value of the external temperature sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["1"], description: "Measured value of the built-in humidity sensor", reporting: fourReporting, + access: "STATE", }), m.humidity({ endpointNames: ["2"], description: "Measured value of the external humidity sensor", reporting: fourReporting, + access: "STATE", }), m.battery({ percentage: true, @@ -2647,7 +2798,7 @@ export const definitions: DefinitionWithExtend[] = [ name: "uptime", unit: "Hours", cluster: "genTime", - attribute: "localTime", + attribute: "StandartTime", description: "Uptime", scale: 3600, precision: 1, @@ -2678,6 +2829,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "switching_temperature_sensor", @@ -2686,6 +2838,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0229, type: Zcl.DataType.BOOLEAN}, description: "Enable internal or external sensor control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -2694,6 +2847,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.numeric({ name: "high_temperature", @@ -2703,6 +2857,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -2712,6 +2867,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -2720,6 +2876,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "switching_humidity_sensor", @@ -2728,6 +2885,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0229, type: Zcl.DataType.BOOLEAN}, description: "Enable internal or external sensor control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -2736,6 +2894,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -2745,6 +2904,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -2754,6 +2914,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -5439,6 +5600,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -5447,6 +5609,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.enumLookup({ name: "invert", @@ -5464,6 +5627,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -5473,6 +5637,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -5481,6 +5646,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -5489,6 +5655,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -5498,6 +5665,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -5507,6 +5675,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], }, @@ -5568,6 +5737,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Temperature Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_temperature", @@ -5576,6 +5746,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Temperature Control", + access: "STATE_SET", }), m.enumLookup({ name: "invert", @@ -5593,6 +5764,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Temperature Border", + access: "STATE_SET", }), m.numeric({ name: "low_temperature", @@ -5602,6 +5774,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msTemperatureMeasurement", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Temperature Border", + access: "STATE_SET", }), m.binary({ name: "enable_humidity", @@ -5610,6 +5783,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0220, type: Zcl.DataType.BOOLEAN}, description: "Enable Humidity Control", + access: "STATE_SET", }), m.binary({ name: "invert_logic_humidity", @@ -5618,6 +5792,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0225, type: Zcl.DataType.BOOLEAN}, description: "Invert Logic Humidity Control", + access: "STATE_SET", }), m.numeric({ name: "high_humidity", @@ -5627,6 +5802,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0221, type: Zcl.DataType.INT16}, description: "Setting High Humidity Border", + access: "STATE_SET", }), m.numeric({ name: "low_humidity", @@ -5636,6 +5812,7 @@ export const definitions: DefinitionWithExtend[] = [ cluster: "msRelativeHumidity", attribute: {ID: 0x0222, type: Zcl.DataType.INT16}, description: "Setting Low Humidity Border", + access: "STATE_SET", }), ], },