[External Converter]: EKO07259 from Schneider Electric
Link
https://proff.elko.no/elko-smart/ELKO%20-%20Smart%20ZB%20Thermostat%2016%20A_Device%20User%20Guide/English/ELKO%20-%20Smart%20ZB%20Thermostat%2016%20A_Device%20User%20Guide_0000930613_files/SelectionPage_ZBThermostat.html
Database entry
{"id":23,"type":"Router","ieeeAddr":"0xb0c7defffebbcb8a","nwkAddr":20059,"manufId":4190,"manufName":"Schneider Electric","powerSource":"Mains (single phase)","modelId":"EKO07259","epList":[1,2,3,5,242],"endpoints":{"1":{"profId":260,"epId":1,"devId":769,"inClusterList":[0,3,4,513,516,2821,65027,65302,65315],"outClusterList":[3,10,25,1026,1030],"clusters":{"65302":{"attributes":{"16":600,"17":300,"18":1800}},"genBasic":{"attributes":{"modelId":"EKO07259","manufacturerName":"Schneider Electric","powerSource":1,"zclVersion":8}},"hvacUserInterfaceCfg":{"attributes":{"57344":100,"57345":10,"57346":60,"keypadLockout":0,"tempDisplayMode":0}},"hvacThermostat":{"attributes":{"57362":0,"57873":0,"57874":3,"57875":1,"localTemp":2414,"pICoolingDemand":0,"occupiedHeatingSetpoint":2400,"systemMode":4,"pIHeatingDemand":14,"maxHeatSetpointLimit":4000,"minHeatSetpointLimit":1000}},"schneiderSpecificPilotMode":{"attributes":{"pilotMode":1}}},"binds":[{"cluster":513,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1},{"cluster":516,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1}],"configuredReportings":[{"cluster":513,"attrId":22,"minRepIntval":0,"maxRepIntval":3600,"repChange":0},{"cluster":513,"attrId":21,"minRepIntval":0,"maxRepIntval":3600,"repChange":0},{"cluster":516,"attrId":1,"minRepIntval":0,"maxRepIntval":3600,"repChange":0},{"cluster":513,"attrId":0,"minRepIntval":10,"maxRepIntval":60,"repChange":50},{"cluster":513,"attrId":8,"minRepIntval":10,"maxRepIntval":60,"repChange":1},{"cluster":513,"attrId":18,"minRepIntval":1,"maxRepIntval":300,"repChange":50},{"cluster":513,"attrId":28,"minRepIntval":1,"maxRepIntval":300,"repChange":0},{"cluster":513,"attrId":57873,"minRepIntval":1,"maxRepIntval":300,"repChange":0,"manufacturerCode":4190}],"meta":{}},"2":{"profId":260,"epId":2,"devId":770,"inClusterList":[0,3,1026],"outClusterList":[3],"clusters":{"genBasic":{"attributes":{}},"msTemperatureMeasurement":{"attributes":{"measuredValue":2005}}},"binds":[{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1},{"cluster":1026,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1}],"configuredReportings":[{"cluster":1026,"attrId":0,"minRepIntval":10,"maxRepIntval":60,"repChange":50}],"meta":{}},"3":{"profId":260,"epId":3,"devId":770,"inClusterList":[0,3,1026],"outClusterList":[3],"clusters":{"genBasic":{"attributes":{}},"msTemperatureMeasurement":{"attributes":{"57377":2,"measuredValue":2414}}},"binds":[{"cluster":1026,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1}],"configuredReportings":[{"cluster":1026,"attrId":0,"minRepIntval":10,"maxRepIntval":60,"repChange":50}],"meta":{}},"5":{"profId":260,"epId":5,"devId":13,"inClusterList":[0,3,4,1794],"outClusterList":[],"clusters":{"genBasic":{"attributes":{}},"seMetering":{"attributes":{"17680":800,"instantaneousDemand":0,"multiplier":1,"divisor":1000,"currentSummDelivered":3369}}},"binds":[{"cluster":1794,"type":"endpoint","deviceIeeeAddress":"0x00124b0033c762a9","endpointID":1}],"configuredReportings":[{"cluster":1794,"attrId":1024,"minRepIntval":10,"maxRepIntval":60,"repChange":1},{"cluster":1794,"attrId":0,"minRepIntval":60,"maxRepIntval":300,"repChange":1}],"meta":{}},"242":{"profId":41440,"epId":242,"devId":97,"inClusterList":[],"outClusterList":[33],"clusters":{},"binds":[],"configuredReportings":[],"meta":{}}},"zclVersion":8,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1768995965825}
Zigbee2MQTT version
2.7.2 (unknown)
External converter
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const {deviceEndpoints} = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
// Schneider Electric manufacturer code
const SCHNEIDER_MFG_CODE = 0x105e;
// Manufacturer-specific attribute IDs
const ATTR = {
// Thermostat cluster (0x0201)
CONTROL_STATUS: 0xe211,
LOCAL_TEMP_SOURCE_SELECT: 0xe212,
CONTROL_TYPE: 0xe213,
THERMOSTAT_APPLICATION: 0xe216,
// Thermostat UI cluster (0x0204)
BRIGHTNESS: 0xe000,
INACTIVE_BRIGHTNESS: 0xe001,
ACTIVITY_TIMEOUT: 0xe002,
// Temperature Measurement cluster (0x0402) on EP2/EP3
TEMP_SENSOR_TYPE: 0xe021,
SENSOR_CORRECTION: 0xe020,
// Cycle Time cluster (0xff16) - manufacturer specific cluster
CYCLE_TIME: 0x0010,
MIN_CYCLE_TIME: 0x0011,
MAX_CYCLE_TIME: 0x0012,
};
// Control status lookup (from official spec)
const controlStatusLookup = {
0x00: 'normal_operation',
0x20: 'no_temperature',
0x40: 'remote_demand_override',
0x41: 'window_open',
0x60: 'local_force_off',
0x61: 'local_force_on',
0x80: 'output_thermal_limit',
0x81: 'condensation_detected',
0x82: 'maintenance',
0x83: 'output_temporal_limit',
0x84: 'sensor_fault',
0xa0: 'actuator_fault',
0xa1: 'power_fault',
0xa2: 'communications_fault',
};
// Control type lookup
const controlTypeLookup = {
0: 'on_off',
1: 'pi',
0xff: 'none',
};
// Thermostat application lookup
const thermostatApplicationLookup = {
0: 'occupied_space',
1: 'floor',
0xff: 'not_known',
};
const thermostatApplicationLookupReverse = {
'occupied_space': 0,
'floor': 1,
'not_known': 0xff,
};
// Temperature source lookup (matches endpoint numbers)
const tempSourceLookup = {
2: 'ambient',
3: 'floor',
};
const tempSourceLookupReverse = {
'ambient': 2,
'floor': 3,
};
// External temperature sensor type lookup (EP3 only)
const tempSensorTypeLookup = {
1: 'hrt_alre_2k',
2: 'bj_10k',
3: 'oj_12k',
4: 'devi_15k',
5: 'eberle_33k',
6: 'ctm_47k',
0xff: 'not_fitted',
};
const tempSensorTypeLookupReverse = {
'hrt_alre_2k': 1,
'bj_10k': 2,
'oj_12k': 3,
'devi_15k': 4,
'eberle_33k': 5,
'ctm_47k': 6,
'not_fitted': 0xff,
};
// Custom fromZigbee converters
const fzLocal = {
// Main thermostat converter with running_state derived from pIHeatingDemand
schneider_thermostat_state: {
cluster: 'hvacThermostat',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
const result = {};
// Standard thermostat attributes
if (msg.data.hasOwnProperty('localTemp')) {
result.local_temperature = msg.data.localTemp / 100;
}
if (msg.data.hasOwnProperty('occupiedHeatingSetpoint')) {
result.occupied_heating_setpoint = msg.data.occupiedHeatingSetpoint / 100;
}
if (msg.data.hasOwnProperty('systemMode')) {
const modes = {0: 'off', 3: 'cool', 4: 'heat'};
result.system_mode = modes[msg.data.systemMode] || 'unknown';
}
// PI Heating Demand - derive running_state from this
// Device does NOT support runningState (0x0029) attribute
if (msg.data.hasOwnProperty('pIHeatingDemand')) {
const demand = msg.data.pIHeatingDemand;
result.pi_heating_demand = demand;
// Derive running_state: heating when demand > 0
result.running_state = demand > 0 ? 'heat' : 'idle';
// Calculate power from demand and fixed_load_demand
// Device does NOT report instantaneousDemand - it estimates energy internally
// We calculate average power: (demand% / 100) * fixed_load_demand
const fixedLoad = meta.state?.fixed_load_demand;
if (fixedLoad !== undefined && fixedLoad > 0) {
result.power = Math.round((demand / 100) * fixedLoad);
}
}
// Control Status (0xe211) - Manufacturer specific
if (msg.data.hasOwnProperty(ATTR.CONTROL_STATUS)) {
const value = msg.data[ATTR.CONTROL_STATUS];
result.control_status = controlStatusLookup[value] || `unknown_0x${value.toString(16)}`;
}
// Local Temperature Source Select (0xe212)
if (msg.data.hasOwnProperty(ATTR.LOCAL_TEMP_SOURCE_SELECT)) {
const value = msg.data[ATTR.LOCAL_TEMP_SOURCE_SELECT];
result.temperature_source = tempSourceLookup[value] || `endpoint_${value}`;
}
// Control Type (0xe213)
if (msg.data.hasOwnProperty(ATTR.CONTROL_TYPE)) {
const value = msg.data[ATTR.CONTROL_TYPE];
result.control_type = controlTypeLookup[value] || `unknown_${value}`;
}
// Thermostat Application (0xe216)
if (msg.data.hasOwnProperty(ATTR.THERMOSTAT_APPLICATION)) {
const value = msg.data[ATTR.THERMOSTAT_APPLICATION];
result.thermostat_application = thermostatApplicationLookup[value] || `unknown_${value}`;
}
// Min/Max Heat Setpoint Limits (standard ZCL attributes)
if (msg.data.hasOwnProperty('minHeatSetpointLimit')) {
result.min_heat_setpoint_limit = msg.data.minHeatSetpointLimit / 100;
}
if (msg.data.hasOwnProperty('maxHeatSetpointLimit')) {
result.max_heat_setpoint_limit = msg.data.maxHeatSetpointLimit / 100;
}
return result;
},
},
// Thermostat UI Configuration (display settings + child lock)
schneider_thermostat_ui: {
cluster: 'hvacUserInterfaceCfg',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
const result = {};
// Standard keypad lockout (child lock)
if (msg.data.hasOwnProperty('keypadLockout')) {
result.child_lock = msg.data.keypadLockout === 1 ? 'LOCK' : 'UNLOCK';
}
// Display brightness (0xe000)
if (msg.data.hasOwnProperty(ATTR.BRIGHTNESS)) {
result.display_brightness = msg.data[ATTR.BRIGHTNESS];
}
// Inactive brightness (0xe001)
if (msg.data.hasOwnProperty(ATTR.INACTIVE_BRIGHTNESS)) {
result.display_inactive_brightness = msg.data[ATTR.INACTIVE_BRIGHTNESS];
}
// Activity timeout (0xe002)
if (msg.data.hasOwnProperty(ATTR.ACTIVITY_TIMEOUT)) {
const value = msg.data[ATTR.ACTIVITY_TIMEOUT];
result.display_activity_timeout = value === 0xffff ? 'always_on' : value;
}
return result;
},
},
// Cycle Time cluster (0xff16) - for PI mode PWM cycle configuration
schneider_cycle_time: {
cluster: 0xff16, // Manufacturer specific cluster
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
const result = {};
// Cycle Time (0x0010) - in seconds
if (msg.data.hasOwnProperty(ATTR.CYCLE_TIME)) {
result.cycle_time = msg.data[ATTR.CYCLE_TIME];
}
// Min Cycle Time (0x0011) - read only
if (msg.data.hasOwnProperty(ATTR.MIN_CYCLE_TIME)) {
result.min_cycle_time = msg.data[ATTR.MIN_CYCLE_TIME];
}
// Max Cycle Time (0x0012) - read only
if (msg.data.hasOwnProperty(ATTR.MAX_CYCLE_TIME)) {
result.max_cycle_time = msg.data[ATTR.MAX_CYCLE_TIME];
}
return result;
},
},
// Temperature sensor type (EP3 only - floor/external sensor)
schneider_floor_sensor_type: {
cluster: 'msTemperatureMeasurement',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
// Only process for endpoint 3 (floor sensor)
if (msg.endpoint.ID !== 3) return {};
const result = {};
if (msg.data.hasOwnProperty(ATTR.TEMP_SENSOR_TYPE)) {
const value = msg.data[ATTR.TEMP_SENSOR_TYPE];
result.floor_sensor_type = tempSensorTypeLookup[value] || `unknown_${value}`;
}
return result;
},
},
// Ambient temperature (EP2)
schneider_ambient_temperature: {
cluster: 'msTemperatureMeasurement',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.endpoint.ID !== 2) return {};
const result = {};
if (msg.data.hasOwnProperty('measuredValue')) {
const temp = msg.data.measuredValue;
if (temp !== 0x8000) { // Not invalid/null
result.temperature_ambient = temp / 100;
}
}
// Sensor correction (0xe020) - in 0.01°C units
if (msg.data.hasOwnProperty(ATTR.SENSOR_CORRECTION)) {
// int16, can be negative
let correction = msg.data[ATTR.SENSOR_CORRECTION];
if (correction > 32767) correction -= 65536; // Convert to signed
result.temperature_ambient_correction = correction / 100;
}
return result;
},
},
// Floor temperature (EP3)
schneider_floor_temperature: {
cluster: 'msTemperatureMeasurement',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.endpoint.ID !== 3) return {};
const result = {};
if (msg.data.hasOwnProperty('measuredValue')) {
const temp = msg.data.measuredValue;
if (temp !== 0x8000) { // Not invalid/null
result.temperature_floor = temp / 100;
}
}
// Sensor correction (0xe020) - in 0.01°C units
if (msg.data.hasOwnProperty(ATTR.SENSOR_CORRECTION)) {
// int16, can be negative
let correction = msg.data[ATTR.SENSOR_CORRECTION];
if (correction > 32767) correction -= 65536; // Convert to signed
result.temperature_floor_correction = correction / 100;
}
return result;
},
},
// Fixed load demand (EP5 metering)
schneider_fixed_load_demand: {
cluster: 'seMetering',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.endpoint.ID !== 5) return {};
const result = {};
// Fixed Load Demand (0x4510) - manufacturer specific
if (msg.data.hasOwnProperty(0x4510)) {
result.fixed_load_demand = msg.data[0x4510];
}
return result;
},
},
// Energy metering (EP5)
schneider_energy: {
cluster: 'seMetering',
type: ['attributeReport', 'readResponse'],
convert: (model, msg, publish, options, meta) => {
if (msg.endpoint.ID !== 5) return {};
const result = {};
// Get multiplier and divisor for unit conversion
// Spec: multiplier=1, divisor=1000 → base resolution 1W, energy in kWh
const multiplier = msg.endpoint.getClusterAttributeValue('seMetering', 'multiplier') || 1;
const divisor = msg.endpoint.getClusterAttributeValue('seMetering', 'divisor') || 1000;
// Current Summation Delivered (energy total)
if (msg.data.hasOwnProperty('currentSummDelivered')) {
// currentSummDelivered is a 48-bit value, may come as array [low, high]
let energy = msg.data.currentSummDelivered;
if (Array.isArray(energy)) {
energy = energy[0] + (energy[1] || 0) * 0x100000000;
}
result.energy = Math.round((energy * multiplier / divisor) * 100) / 100;
}
return result;
},
},
};
// Metering cluster manufacturer-specific attribute
const METERING_ATTR = {
FIXED_LOAD_DEMAND: 0x4510,
};
// Custom toZigbee converters
const tzLocal = {
// Fixed load demand (EP5 metering)
schneider_fixed_load_demand: {
key: ['fixed_load_demand'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(5);
const numValue = Math.max(0, Math.min(4000, value));
// uint24 = type 0x22
await endpoint.write('seMetering',
{[METERING_ATTR.FIXED_LOAD_DEMAND]: {value: numValue, type: 0x22}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {fixed_load_demand: numValue}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(5);
await endpoint.read('seMetering', [METERING_ATTR.FIXED_LOAD_DEMAND],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Temperature source selection
schneider_temperature_source: {
key: ['temperature_source'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = tempSourceLookupReverse[value];
if (numValue === undefined) {
throw new Error(`Invalid temperature_source value: ${value}. Must be 'ambient' or 'floor'`);
}
// uint8 = type 0x20
await endpoint.write('hvacThermostat',
{[ATTR.LOCAL_TEMP_SOURCE_SELECT]: {value: numValue, type: 0x20}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {temperature_source: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacThermostat', [ATTR.LOCAL_TEMP_SOURCE_SELECT],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Control type (PI vs On/Off)
schneider_control_type: {
key: ['control_type'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const lookup = {'on_off': 0, 'pi': 1, 'none': 0xff};
const numValue = lookup[value];
if (numValue === undefined) {
throw new Error(`Invalid control_type value: ${value}. Must be 'on_off', 'pi', or 'none'`);
}
// enum8 = type 0x30
await endpoint.write('hvacThermostat',
{[ATTR.CONTROL_TYPE]: {value: numValue, type: 0x30}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {control_type: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacThermostat', [ATTR.CONTROL_TYPE],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Thermostat application (what is being regulated)
schneider_thermostat_application: {
key: ['thermostat_application'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = thermostatApplicationLookupReverse[value];
if (numValue === undefined) {
throw new Error(`Invalid thermostat_application value: ${value}. Must be 'occupied_space', 'floor', or 'not_known'`);
}
// enum8 = type 0x30
await endpoint.write('hvacThermostat',
{[ATTR.THERMOSTAT_APPLICATION]: {value: numValue, type: 0x30}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {thermostat_application: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacThermostat', [ATTR.THERMOSTAT_APPLICATION],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Min heat setpoint limit
schneider_min_heat_setpoint_limit: {
key: ['min_heat_setpoint_limit'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = Math.round(value * 100);
await endpoint.write('hvacThermostat', {minHeatSetpointLimit: numValue});
return {state: {min_heat_setpoint_limit: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacThermostat', ['minHeatSetpointLimit']);
},
},
// Max heat setpoint limit
schneider_max_heat_setpoint_limit: {
key: ['max_heat_setpoint_limit'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = Math.round(value * 100);
await endpoint.write('hvacThermostat', {maxHeatSetpointLimit: numValue});
return {state: {max_heat_setpoint_limit: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacThermostat', ['maxHeatSetpointLimit']);
},
},
// Display brightness
schneider_display_brightness: {
key: ['display_brightness'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = Math.max(1, Math.min(100, value));
// uint8 = type 0x20
await endpoint.write('hvacUserInterfaceCfg',
{[ATTR.BRIGHTNESS]: {value: numValue, type: 0x20}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {display_brightness: numValue}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacUserInterfaceCfg', [ATTR.BRIGHTNESS],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Display inactive brightness
schneider_display_inactive_brightness: {
key: ['display_inactive_brightness'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
const numValue = Math.max(0, Math.min(100, value));
// uint8 = type 0x20
await endpoint.write('hvacUserInterfaceCfg',
{[ATTR.INACTIVE_BRIGHTNESS]: {value: numValue, type: 0x20}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {display_inactive_brightness: numValue}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacUserInterfaceCfg', [ATTR.INACTIVE_BRIGHTNESS],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Display activity timeout
schneider_display_activity_timeout: {
key: ['display_activity_timeout'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
let numValue;
if (value === 'always_on') {
numValue = 0xffff;
} else {
numValue = Math.max(5, Math.min(3600, value));
}
// uint16 = type 0x21
await endpoint.write('hvacUserInterfaceCfg',
{[ATTR.ACTIVITY_TIMEOUT]: {value: numValue, type: 0x21}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {display_activity_timeout: value === 'always_on' ? 'always_on' : numValue}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read('hvacUserInterfaceCfg', [ATTR.ACTIVITY_TIMEOUT],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Floor sensor type (EP3)
schneider_floor_sensor_type: {
key: ['floor_sensor_type'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(3);
const numValue = tempSensorTypeLookupReverse[value];
if (numValue === undefined) {
throw new Error(`Invalid floor_sensor_type value: ${value}`);
}
// enum8 = type 0x30
await endpoint.write('msTemperatureMeasurement',
{[ATTR.TEMP_SENSOR_TYPE]: {value: numValue, type: 0x30}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {floor_sensor_type: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(3);
await endpoint.read('msTemperatureMeasurement', [ATTR.TEMP_SENSOR_TYPE],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Ambient temperature correction (EP2)
schneider_temperature_ambient_correction: {
key: ['temperature_ambient_correction'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(2);
// Convert to 0.01°C units - int16 accepts signed values directly
const numValue = Math.round(value * 100);
// int16 = type 0x29
await endpoint.write('msTemperatureMeasurement',
{[ATTR.SENSOR_CORRECTION]: {value: numValue, type: 0x29}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {temperature_ambient_correction: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(2);
await endpoint.read('msTemperatureMeasurement', [ATTR.SENSOR_CORRECTION],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Floor temperature correction (EP3)
schneider_temperature_floor_correction: {
key: ['temperature_floor_correction'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(3);
// Convert to 0.01°C units - int16 accepts signed values directly
const numValue = Math.round(value * 100);
// int16 = type 0x29
await endpoint.write('msTemperatureMeasurement',
{[ATTR.SENSOR_CORRECTION]: {value: numValue, type: 0x29}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {temperature_floor_correction: value}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(3);
await endpoint.read('msTemperatureMeasurement', [ATTR.SENSOR_CORRECTION],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
// Cycle time (for PI mode PWM period)
schneider_cycle_time: {
key: ['cycle_time'],
convertSet: async (entity, key, value, meta) => {
const endpoint = meta.device.getEndpoint(1);
// Clamp to valid range (5-30 minutes = 300-1800 seconds)
const numValue = Math.max(300, Math.min(1800, value));
// uint16 = type 0x21
await endpoint.write(0xff16,
{[ATTR.CYCLE_TIME]: {value: numValue, type: 0x21}},
{manufacturerCode: SCHNEIDER_MFG_CODE});
return {state: {cycle_time: numValue}};
},
convertGet: async (entity, key, meta) => {
const endpoint = meta.device.getEndpoint(1);
await endpoint.read(0xff16, [ATTR.CYCLE_TIME],
{manufacturerCode: SCHNEIDER_MFG_CODE});
},
},
};
const definition = {
zigbeeModel: ['EKO07259', 'WDE002497', 'WDE011680'],
model: 'EKO07259',
vendor: 'Schneider Electric',
description: 'Wiser/ELKO Smart Thermostat 16A with floor sensor - improved converter with proper running state, dual temperature sensors, PI mode cycle time, and calculated power',
extend: [
deviceEndpoints({endpoints: {'thermostat': 1, 'ambient': 2, 'floor': 3, 'metering': 5}}),
// Note: We handle metering ourselves (power calculated from demand × fixed_load)
// Do NOT add electricityMeter() here as it causes duplicate entities and doesn't
// work properly since the device doesn't report instantaneousDemand
],
fromZigbee: [
fzLocal.schneider_thermostat_state,
fzLocal.schneider_thermostat_ui,
fzLocal.schneider_cycle_time,
fzLocal.schneider_ambient_temperature,
fzLocal.schneider_floor_temperature,
fzLocal.schneider_floor_sensor_type,
fzLocal.schneider_fixed_load_demand,
fzLocal.schneider_energy,
],
toZigbee: [
tz.thermostat_local_temperature,
tz.thermostat_system_mode,
tz.thermostat_occupied_heating_setpoint,
tz.thermostat_keypad_lockout,
tzLocal.schneider_temperature_source,
tzLocal.schneider_control_type,
tzLocal.schneider_thermostat_application,
tzLocal.schneider_min_heat_setpoint_limit,
tzLocal.schneider_max_heat_setpoint_limit,
tzLocal.schneider_cycle_time,
tzLocal.schneider_display_brightness,
tzLocal.schneider_display_inactive_brightness,
tzLocal.schneider_display_activity_timeout,
tzLocal.schneider_floor_sensor_type,
tzLocal.schneider_temperature_ambient_correction,
tzLocal.schneider_temperature_floor_correction,
tzLocal.schneider_fixed_load_demand,
],
exposes: [
// Thermostat controls
e.climate()
.withLocalTemperature()
.withSetpoint('occupied_heating_setpoint', 4, 40, 0.5)
.withSystemMode(['off', 'heat'])
.withRunningState(['idle', 'heat']),
// PI Heating Demand (0-100%)
e.numeric('pi_heating_demand', ea.STATE)
.withUnit('%')
.withValueMin(0)
.withValueMax(100)
.withDescription('Current heating demand percentage'),
// Control status
e.enum('control_status', ea.STATE, [
'normal_operation',
'no_temperature',
'remote_demand_override',
'window_open',
'local_force_off',
'local_force_on',
'output_thermal_limit',
'condensation_detected',
'maintenance',
'output_temporal_limit',
'sensor_fault',
'actuator_fault',
'power_fault',
'communications_fault',
]).withDescription('Current control status of the thermostat'),
// Temperature source selection
e.enum('temperature_source', ea.ALL, ['ambient', 'floor'])
.withDescription('Select which temperature sensor to use for regulation'),
// Control type
e.enum('control_type', ea.ALL, ['on_off', 'pi', 'none'])
.withDescription('Temperature control algorithm'),
// Thermostat application
e.enum('thermostat_application', ea.ALL, ['occupied_space', 'floor', 'not_known'])
.withDescription('What is being regulated: occupied_space (room comfort) or floor (floor surface temperature)'),
// Setpoint limits
e.numeric('min_heat_setpoint_limit', ea.ALL)
.withUnit('°C')
.withValueMin(4)
.withValueMax(40)
.withValueStep(0.5)
.withDescription('Minimum allowed heating setpoint'),
e.numeric('max_heat_setpoint_limit', ea.ALL)
.withUnit('°C')
.withValueMin(4)
.withValueMax(40)
.withValueStep(0.5)
.withDescription('Maximum allowed heating setpoint (useful for floor protection)'),
// Cycle time (PI mode PWM period)
e.numeric('cycle_time', ea.ALL)
.withUnit('s')
.withValueMin(300)
.withValueMax(1800)
.withDescription('PI mode cycle time in seconds (5-30 minutes). Relay cycles on/off within this period based on demand %.'),
// Temperature sensors (both endpoints)
e.numeric('temperature_ambient', ea.STATE)
.withUnit('°C')
.withDescription('Ambient temperature from internal sensor (EP2)'),
e.numeric('temperature_ambient_correction', ea.ALL)
.withUnit('°C')
.withValueMin(-10)
.withValueMax(10)
.withValueStep(0.01)
.withDescription('Ambient sensor correction offset (applied on device)'),
e.numeric('temperature_floor', ea.STATE)
.withUnit('°C')
.withDescription('Floor temperature from external sensor (EP3)'),
e.numeric('temperature_floor_correction', ea.ALL)
.withUnit('°C')
.withValueMin(-10)
.withValueMax(10)
.withValueStep(0.01)
.withDescription('Floor sensor correction offset (applied on device)'),
// Floor sensor type
e.enum('floor_sensor_type', ea.ALL, [
'hrt_alre_2k',
'bj_10k',
'oj_12k',
'devi_15k',
'eberle_33k',
'ctm_47k',
'not_fitted',
]).withDescription('Type of external floor temperature sensor connected'),
// Display settings
e.numeric('display_brightness', ea.ALL)
.withValueMin(1)
.withValueMax(100)
.withUnit('%')
.withDescription('Display brightness when active'),
e.numeric('display_inactive_brightness', ea.ALL)
.withValueMin(0)
.withValueMax(100)
.withUnit('%')
.withDescription('Display brightness when idle (0 = off)'),
e.numeric('display_activity_timeout', ea.ALL)
.withValueMin(5)
.withValueMax(3600)
.withUnit('s')
.withDescription('Seconds before display dims (5-3600, or "always_on")'),
// Child lock
e.child_lock(),
// Fixed load demand (for energy estimation - device does not measure actual power)
e.numeric('fixed_load_demand', ea.ALL)
.withUnit('W')
.withValueMin(0)
.withValueMax(4000)
.withDescription('Configured load in watts for energy estimation (device estimates power from this value when relay is on)'),
// Power (calculated from pi_heating_demand * fixed_load_demand)
// Device does NOT measure actual power - this is estimated average power
e.numeric('power', ea.STATE)
.withUnit('W')
.withDescription('Estimated power based on heating demand percentage × fixed load (not measured)'),
// Energy from metering cluster (accumulated from fixed_load_demand × relay on-time)
e.numeric('energy', ea.STATE)
.withUnit('kWh')
.withDescription('Accumulated energy consumption'),
],
meta: {
multiEndpoint: true,
thermostat: {
// Prevent default fz.thermostat from interfering with our pIHeatingDemand handling
dontMapPIHeatingDemand: true,
},
},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
const endpoint2 = device.getEndpoint(2);
const endpoint3 = device.getEndpoint(3);
const endpoint5 = device.getEndpoint(5);
// Bind all relevant clusters
await reporting.bind(endpoint1, coordinatorEndpoint, ['hvacThermostat', 'hvacUserInterfaceCfg']);
await reporting.bind(endpoint2, coordinatorEndpoint, ['msTemperatureMeasurement']);
await reporting.bind(endpoint3, coordinatorEndpoint, ['msTemperatureMeasurement']);
await reporting.bind(endpoint5, coordinatorEndpoint, ['seMetering']);
// Configure reporting for EP1 (Thermostat)
try {
// Local temperature - report every 60s or on 0.5°C change
await endpoint1.configureReporting('hvacThermostat', [{
attribute: 'localTemp',
minimumReportInterval: 10,
maximumReportInterval: 60,
reportableChange: 50, // 0.5°C
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure localTemp reporting: ${e.message}`);
}
try {
// PI Heating Demand - report every 60s or on 1% change
await endpoint1.configureReporting('hvacThermostat', [{
attribute: 'pIHeatingDemand',
minimumReportInterval: 10,
maximumReportInterval: 60,
reportableChange: 1,
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure pIHeatingDemand reporting: ${e.message}`);
}
try {
// Occupied heating setpoint
await endpoint1.configureReporting('hvacThermostat', [{
attribute: 'occupiedHeatingSetpoint',
minimumReportInterval: 1,
maximumReportInterval: 300,
reportableChange: 50, // 0.5°C
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure occupiedHeatingSetpoint reporting: ${e.message}`);
}
try {
// System mode
await endpoint1.configureReporting('hvacThermostat', [{
attribute: 'systemMode',
minimumReportInterval: 1,
maximumReportInterval: 300,
reportableChange: 0,
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure systemMode reporting: ${e.message}`);
}
try {
// Control status (manufacturer specific)
await endpoint1.configureReporting('hvacThermostat', [{
attribute: {ID: ATTR.CONTROL_STATUS, type: 0x30}, // enum8
minimumReportInterval: 1,
maximumReportInterval: 300,
reportableChange: 0,
}], {manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to configure controlStatus reporting: ${e.message}`);
}
// Configure reporting for EP2 (Ambient temperature)
try {
await endpoint2.configureReporting('msTemperatureMeasurement', [{
attribute: 'measuredValue',
minimumReportInterval: 10,
maximumReportInterval: 60,
reportableChange: 50, // 0.5°C
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure EP2 temperature reporting: ${e.message}`);
}
// Configure reporting for EP3 (Floor temperature)
try {
await endpoint3.configureReporting('msTemperatureMeasurement', [{
attribute: 'measuredValue',
minimumReportInterval: 10,
maximumReportInterval: 60,
reportableChange: 50, // 0.5°C
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure EP3 temperature reporting: ${e.message}`);
}
// Configure reporting for EP5 (Metering)
try {
await endpoint5.configureReporting('seMetering', [{
attribute: 'instantaneousDemand',
minimumReportInterval: 10,
maximumReportInterval: 60,
reportableChange: 1,
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure instantaneousDemand reporting: ${e.message}`);
}
try {
await endpoint5.configureReporting('seMetering', [{
attribute: 'currentSummDelivered',
minimumReportInterval: 60,
maximumReportInterval: 300,
reportableChange: 1,
}]);
} catch (e) {
console.log(`EKO07259: Failed to configure currentSummDelivered reporting: ${e.message}`);
}
// Read initial values
try {
await endpoint1.read('hvacThermostat', [
'localTemp',
'occupiedHeatingSetpoint',
'systemMode',
'pIHeatingDemand',
]);
} catch (e) {
console.log(`EKO07259: Failed to read initial thermostat values: ${e.message}`);
}
try {
await endpoint1.read('hvacThermostat', [
ATTR.CONTROL_STATUS,
ATTR.LOCAL_TEMP_SOURCE_SELECT,
ATTR.CONTROL_TYPE,
ATTR.THERMOSTAT_APPLICATION,
], {manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read manufacturer-specific thermostat values: ${e.message}`);
}
// Read setpoint limits
try {
await endpoint1.read('hvacThermostat', [
'minHeatSetpointLimit',
'maxHeatSetpointLimit',
]);
} catch (e) {
console.log(`EKO07259: Failed to read setpoint limits: ${e.message}`);
}
try {
await endpoint1.read('hvacUserInterfaceCfg', ['keypadLockout']);
await endpoint1.read('hvacUserInterfaceCfg', [
ATTR.BRIGHTNESS,
ATTR.INACTIVE_BRIGHTNESS,
ATTR.ACTIVITY_TIMEOUT,
], {manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read UI config values: ${e.message}`);
}
// Read cycle time settings (cluster 0xff16)
try {
await endpoint1.read(0xff16, [
ATTR.CYCLE_TIME,
ATTR.MIN_CYCLE_TIME,
ATTR.MAX_CYCLE_TIME,
], {manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read cycle time values: ${e.message}`);
}
try {
await endpoint2.read('msTemperatureMeasurement', ['measuredValue']);
await endpoint2.read('msTemperatureMeasurement', [ATTR.SENSOR_CORRECTION],
{manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read EP2 temperature/correction: ${e.message}`);
}
try {
await endpoint3.read('msTemperatureMeasurement', ['measuredValue']);
await endpoint3.read('msTemperatureMeasurement', [ATTR.TEMP_SENSOR_TYPE, ATTR.SENSOR_CORRECTION],
{manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read EP3 temperature/sensor type/correction: ${e.message}`);
}
// Read metering divisor/multiplier for proper unit conversion
try {
await endpoint5.read('seMetering', ['multiplier', 'divisor']);
} catch (e) {
console.log(`EKO07259: Failed to read metering multiplier/divisor: ${e.message}`);
}
// Read initial energy value
try {
await endpoint5.read('seMetering', ['currentSummDelivered']);
} catch (e) {
console.log(`EKO07259: Failed to read initial energy: ${e.message}`);
}
// Read fixed load demand
try {
await endpoint5.read('seMetering', [0x4510], {manufacturerCode: SCHNEIDER_MFG_CODE});
} catch (e) {
console.log(`EKO07259: Failed to read fixed_load_demand: ${e.message}`);
}
},
ota: true, // Device supports OTA firmware updates
};
module.exports = definition;
What does/doesn't work with the external definition?
Improved Converter for Schneider Electric EKO07259 / ELKO Smart Thermostat
Rewrite based on official Schneider Electric Zigbee specification (RTC-6754012INT-cFMT_16A_F_Zigbee-29.pdf).
Supported variants: EKO07259, WDE002497, WDE011680
Changes from Official Converter
Running state: Derived from pIHeatingDemand (device does not support runningState attribute).
Dual temperature sensors: Exposes both temperature_ambient (EP2) and temperature_floor (EP3) instead of single local_temperature. Includes temperature_source to select regulation sensor.
Temperature calibration: Device-side sensor correction for both ambient and floor sensors (-10 to +10°C).
Control status: Exposes all 14 operational states from attribute 0xe211.
PI mode: Configurable control_type (on_off/pi/none) and cycle_time (300-1800s) for PWM control.
Thermostat application: Setting for what is being regulated (occupied_space vs floor) - affects internal PI tuning.
Setpoint limits: Configurable min/max heat setpoint limits for safety (e.g., floor protection).
Calculated power: Device does not measure power. Calculates: (pi_heating_demand / 100) x fixed_load_demand.
No occupancy: Removed to avoid away mode confusion.
Exposes
Climate: local_temperature, occupied_heating_setpoint, system_mode, running_state
Thermostat: pi_heating_demand, control_status, control_type, thermostat_application, cycle_time, temperature_source, min_heat_setpoint_limit, max_heat_setpoint_limit
Sensors: temperature_ambient, temperature_ambient_correction, temperature_floor, temperature_floor_correction, floor_sensor_type
Display: display_brightness, display_inactive_brightness, display_activity_timeout
Energy: power, energy, fixed_load_demand
Other: child_lock
References
- Specification: https://github.com/user-attachments/files/16744437/RTC-6754012INT-cFMT_16A_F_Zigbee-29.pdf
- Device page: https://www.zigbee2mqtt.io/devices/EKO07259.html
Notes
software_build_id: undefined
date_code: undefined
endpoints:
{"1":{"clusters":{"input":["genBasic","genIdentify","genGroups","hvacThermostat","hvacUserInterfaceCfg","haDiagnostic","wiserDeviceInfo","65302","schneiderSpecificPilotMode"],"output":["genIdentify","genTime","genOta","msTemperatureMeasurement","msOccupancySensing"]},"name":"thermostat"},"2":{"clusters":{"input":["genBasic","genIdentify","msTemperatureMeasurement"],"output":["genIdentify"]},"name":"ambient"},"3":{"clusters":{"input":["genBasic","genIdentify","msTemperatureMeasurement"],"output":["genIdentify"]},"name":"floor"},"5":{"clusters":{"input":["genBasic","genIdentify","genGroups","seMetering"],"output":[]},"name":"metering"},"242":{"clusters":{"input":[],"output":["greenPower"]}}}
would there be any possibility to include the temperature correction factor?
Missed that! It's added now. Can you test it?
Hi, I have installed your converter. Seems working fine. I miss at the moment only the temperature ambient and temperature floor value that have been constant to N/A. In addition, if possible would you be able to provide some additional info about the Control type - Temperature control algorithm function. Cannot find any details in the manual neither in your description on how to use it. But I assume that for electrical underfloor heating the control should be on/off.
thanks for the super good work
But seriously impressive work!
Have you tried to reconfigure the device?
Regarding temperature control pi will use a more advanced algorithm to reach and keep the desired temperature while trying not to turn it on/off too often. I would use that.
Nope but I have tried now and it works! all good for now. I will continue trying and reporting tomorrow than
been trying for the last 2 days on 3 Elko device. Everything work as it should. Great compared to the stock full of bugs. thanks
Great work 👍
Testing it on my two EKO07259. The PI heating demand percentage is showing an increased value. Is dontMapPIHeatingDemand the reason for this?
Thermostat 1: 11% => 30% Thermostat 2: 40% => 70%
Hello
First of all thanks for this. I've noticed that the EP3 sensor will always read null for me even though the device seems to be reading correctly from floor sensor and appears to be reporting on local temperature. I noticed this because changing from temp source ambient to floor changes this value with realistic values I am experiening and also changing sensor type also changes the value as I would expect. Have I misunderstood the EP3 reading or is something wrong?
*The unit is set to P8 to read from external sensor.
Have you tried the standard converter (ie not using an external converter)? It was updated in version 2.9.0.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days