Comments (15)
Yes, it is not in the repo, but I'll add it soon.
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const ota = require('zigbee-herdsman-converters/lib/ota');
const e = exposes.presets;
const definition = {
zigbeeModel: ['LYWSD03MMC'],
model: 'LYWSD03MMC',
vendor: 'Xiaomi',
description: 'Temperature & humidity sensor',
fromZigbee: [fz.temperature, fz.humidity, fz.battery],
toZigbee: [],
meta: {battery: {voltageToPercentage: '3V_2500'}},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
const bindClusters = ['msTemperatureMeasurement', 'msRelativeHumidity', 'genPowerCfg'];
await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
await reporting.temperature(endpoint);
await reporting.humidity(endpoint);
await reporting.batteryVoltage(endpoint);
},
exposes: [e.temperature(), e.humidity(), e.battery()],
ota: ota.zigbeeOTA,
};
module.exports = definition;
from z03mmc.
Thank you for the converter, it is now recognized in zigbee2mqtt although humidity value seems not (yet) reported?
I also checked with the z03mmc_heiman firmware and is also not reporting the humidity value?
from z03mmc.
Both values are reported. Check temp and humid clusters are bound in zigbee2mqtt tab. And rebind if checkboxes are different.
You may also try to use binaries from https://github.com/devbis/z03mmc/releases/tag/2023-10-08
![Screenshot 2023-10-08 at 22 18 03](https://private-user-images.githubusercontent.com/12081127/273466501-e3fbc7e8-fc95-49c2-81b8-577600e751d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkzOTA5NDAsIm5iZiI6MTcwOTM5MDY0MCwicGF0aCI6Ii8xMjA4MTEyNy8yNzM0NjY1MDEtZTNmYmM3ZTgtZmM5NS00OWMyLTgxYjgtNTc3NjAwZTc1MWQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzAyVDE0NDQwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE1Zjg2NDdkYjg2MDM3NWViMTk2ZjdjMjE0ZTZhZjlhNTQ1ZjExNTE2YmI1MDY2OTUwYTFlOTc3YzI4MWVlMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zvqE13QnXu0D2p0h5PmXWXe95clUW-DDjJI6vtBf-kU)
from z03mmc.
Checkboxes are same as yours. Tried to rebind, rejoin, reflash but no humidity readings. Downloaded your precompiled fw and no change . Tried to sniff the data with wireshark but found no data for humidity.
Don't know how to debug further.
from z03mmc.
Can you read values from the cluster with dev console in zigbee2mqtt for a device?
from z03mmc.
Please, check firmware from this run: https://github.com/devbis/z03mmc/actions/runs/6455005642
It has increased number of items for reporting and binding and it could help.
from z03mmc.
Can you read values from the cluster with dev console in zigbee2mqtt for a device?
Yes this works! But value not updated automatic. Not yet tried the test fw (6455005642)
from z03mmc.
Please, check firmware from this run: https://github.com/devbis/z03mmc/actions/runs/6455005642 It has increased number of items for reporting and binding and it could help.
Same behaviour for this fw ( uploaded z03mmc.bin). Via dev console forcing humidity readout, it shows same value as lcd. Then increase temp and humidity at the same time only temp reading is updated.
from z03mmc.
What's on the reporting page? Is humidity configured? Does remove and and set back change anything?
from z03mmc.
Yes humidity is on the reporting page. Disabled all items and reconfigured the device again so all the items are repopulated on this page. Made no difference. Maybe try a new z2m install with new coordinator later this week.
from z03mmc.
I have the same parameters and it seems reporting well (though I'm not 100% sure). I'm testing on zigbee2mqtt 1.33
What hardware revision do you have? You can read it from genBasic cluster in z2m
from z03mmc.
Read result of 'genBasic': {"hwVersion":14}
zigbee2mqtt 1.33.1-dev commit: 2aae1bd5
zStack3x0 Coordinator revision 20230507 (CC2652P Sonoff ZBDongle-P)
If you need more information let me know, ready to test.
(In the meantime i have to find out how to set up OTA for convenience)
from z03mmc.
Can you please try the latest pre-release? It is build with updated SDK and may fix reporting issues.
from z03mmc.
Yes it started reporting humidity with this new fw!
I'm curious how long battery will last in comparison with the ble fw. (when configured same reporting interval)
Thanks again!
from z03mmc.
I don't have long-lasting results with a battery, but the expected working time should be approximately the same as with bluetooth firmware.
from z03mmc.
Related Issues (20)
- LYWSD03MMC keeps reporting N/A for temperature and humidity HOT 19
- Version 2.1.1_0159 not supported =(
- it stopps during doing activation HOT 2
- OTA Images currently unavailable HOT 3
- Can not flash OTA the transitional firmware ATC_ota_400000 HOT 2
- What firmware version do I have? OTA problem! HOT 2
- File difference for z03mmc HOT 1
- unable to join more than 1 LYWSD03MMC zigbee device HOT 1
- new z2m features refused HOT 8
- How does the ota update work? HOT 17
- Manufacturer ID has changed after upgrade to 3001-1100 HOT 15
- inconsistent F/W version HOT 2
- LYWSD03MMC B1.4 bricked HOT 6
- LYWSD03MMC-z HOT 10
- Error when trying to update the device through OTA HOT 1
- last version of the converter for LYWSD03MMC broken HOT 5
- Unresponsive issue HOT 1
- LYWSD03MMC not connecting to zigbee HOT 2
- I don't know HOT 1
- battery voltage? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from z03mmc.