-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add support for Zemismart ZM-L01E-Z (1 Gang) #810
Comments
Let me know if this was supposed to be posted elsewhere, I'm pretty new to all of this :) |
Does it also work with the following configuration, this removes the {
zigbeeModel: ['TS0001'],
model: 'ZM-L01E-Z',
vendor: 'Zemismart',
description: '1 gang switch',
supports: 'on/off, power',
fromZigbee: [fz.on_off, fz.generic_power],
toZigbee: [tz.on_off, tz.ignore_transition],
}, |
I thought the same thing however I get these error messages if I remove the endpoint:
Maybe I'm missing something silly?
But I get this message regardless of the endpoint |
You probably use the wrong topic to control it? Try with |
Ok so this is what I get now:
This how I have it set-up in hass.io
Probably an extremely simple oversight on my part somewhere... |
Ok I found the oversight, I still had the fromZigbee as fz.generic_state_multi_ep instead of fz.on_off... the only message left is:
For the rest everything is working as it did with the endpoint set |
Adding 'fz.ignore_basic_report' to from_zigbee should solve those I think. |
Added, will be supported in zigbee2mqtt dev branch in a few hours. |
It seems that for the first time in zigbee2mqtt history we run into a duplicate zigbee model, can you share your |
Happy to help! update:
So far I'm not receiving the warnings, this seems to have worked! |
Does the power metering work? (I cannot find if the device even supports it?? https://www.zemismart.com/eu-1-gang-2-gang-3-gang-wifi-wall-switch-work-with-alexa-smart-home-remote-control-light-panel-control-via-app-voice-control-p0250.html). |
Power metering does not work, the aliexpress listing showed it as having power metering and the code for the TS0002 (the 2 gang variant) also had this added, which is the reason I put it in. I can't find it on the official zemismart listing either: |
I see, the problem is that a different device also uses this Anyway, as this other device (CR Smart Home Valve control), also support on/off your device should already work fine in the latest zigbee2mqtt dev branch (besides power measurements). I will update you once I know more. |
Btw for the time being, you can already switch to the latest dev branch and use the following device definition, this should give you access to the power readings: {
zigbeeModel: ['TS0001'],
model: 'ZM-L01E-Z',
vendor: 'Zemismart',
description: '1 gang switch',
supports: 'on/off, power',
fromZigbee: [fz.on_off, fz.generic_power],
toZigbee: [tz.on_off, tz.ignore_transition],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint) => {
const endpoint = device.getEndpoint(1);
await bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await configureReporting.onOff(endpoint);
await endpoint.read('seMetering', ['multiplier', 'divisor']);
},
}, |
I doubt the switch has power metering, with the new line of code I'm getting these error messages:
Furthermore still no reading on the sensor. |
Can you try removing the device and re-pairing it? Maybe it configures ok then. |
Re-pairing removed the error messages! |
I guess it doesn't support it then. Which means that in zigbee2mqtt 1.8.0 it should work (besides that it is identified incorrectly but this is just a cosmetic). |
Awesome, thank you! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The text was updated successfully, but these errors were encountered: