New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Energy consumption for AQARA SSM-U01 lumi.switch.n0agl1 does not work correctly #9531
Comments
Same for me. Consumption and power are always 0 or null State:
Zigbee2Mqtt 1.22.0-2 |
Could you provide the debug log when pressing the yellow reconfigure button on the device page in the frontend? See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable debug logging. |
Maybe you can try this configuration: {
zigbeeModel: ['lumi.switch.n0agl1'],
model: 'SSM-U01',
vendor: 'Xiaomi',
description: 'Aqara single switch module T1 (with neutral)',
fromZigbee: [fz.on_off, fz.xiaomi_power, fz.xiaomi_switch_type, fz.xiaomi_switch_opple_basic],
toZigbee: [tz.on_off, tz.xiaomi_power, tz.xiaomi_switch_type, tz.xiaomi_switch_power_outage_memory,],
exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy(), e.temperature().withAccess(ea.STATE),
e.voltage().withAccess(ea.STATE), e.power_outage_memory(), e.switch_type()],
configure: async (device, coordinatorEndpoint, logger) => {
await device.getEndpoint(1).write('aqaraOpple', {'mode': 1}, {manufacturerCode: 0x115f, disableResponse: true});
},
}, |
@Koenkk here you go
@z-x-f thank you for you reply. Would you mind to point me out how to apply this configuration? I have not found anything like JSON config in the frontend... |
@rkuralev You can modify |
@z-x-f I don't have this directory |
@z-x-f thanks for the suggestions Please try with the following converter (and give the measurements some time to come in) 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 extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['lumi.switch.n0agl1'],
model: 'SSM-U01',
vendor: 'Xiaomi',
description: 'Aqara single switch module T1 (with neutral)',
fromZigbee: [fz.on_off, fz.xiaomi_power, fz.device_temperature, fz.xiaomi_switch_type, fz.xiaomi_switch_power_outage_memory, fz.xiaomi_switch_opple_basic],
exposes: [e.switch(), e.energy(), e.power(), e.device_temperature(), e.power_outage_memory(), e.switch_type(), e.voltage(), e.current()],
toZigbee: [tz.xiaomi_switch_type, tz.on_off, tz.xiaomi_switch_power_outage_memory, tz.xiaomi_power],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genDeviceTempCfg']);
await reporting.onOff(endpoint);
await reporting.deviceTemperature(endpoint);
device.powerSource = 'Mains (single phase)';
device.save();
},
};
module.exports = definition; How to use the external converter: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html#instructions |
@Koenkk unfortunately does not help. Still see zero-s in power and consumption. Also get errors when trying to do actions, I collected several of them:
|
@rkuralev looks like communication with the device fails, try to repair it. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
@rkuralev Did you manage to get this working? I have same device and same problem, only temperature is published. |
After updating ZZH! zigbee stick firmware and re-join the device, it worked at least for the power and voltage. |
Hi.
Energy consumption and temperature statistics for AQARA SSM-U01 lumi.switch.n0agl1 does not work correctly.
I waited, rebooted, added, removed this relay. Other functions of this relay work correctly.
Debug info
Zigbee2MQTT version:1.22.0
Adapter hardware: Sonoff CC2652P + CP2102N
Adapter firmware version: zStack3x0 20210120
Log of adding and using the device
https://pastebin.com/fY3J5bVU
The text was updated successfully, but these errors were encountered: