Coder Social home page Coder Social logo

Comments (15)

devbis avatar devbis commented on June 22, 2024

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.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

Thank you for the converter, it is now recognized in zigbee2mqtt although humidity value seems not (yet) reported?

z03mmc

I also checked with the z03mmc_heiman firmware and is also not reporting the humidity value?

z03mmc_heiman

from z03mmc.

devbis avatar devbis commented on June 22, 2024

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

from z03mmc.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

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.

Wireshark

from z03mmc.

devbis avatar devbis commented on June 22, 2024

Can you read values from the cluster with dev console in zigbee2mqtt for a device?
Screenshot 2023-10-09 at 11 24 16

from z03mmc.

devbis avatar devbis commented on June 22, 2024

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.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

Can you read values from the cluster with dev console in zigbee2mqtt for a device? Screenshot 2023-10-09 at 11 24 16

Yes this works! But value not updated automatic. Not yet tried the test fw (6455005642)

from z03mmc.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

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.

devbis avatar devbis commented on June 22, 2024

What's on the reporting page? Is humidity configured? Does remove and and set back change anything?

from z03mmc.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

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.

report

from z03mmc.

devbis avatar devbis commented on June 22, 2024

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.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

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.

devbis avatar devbis commented on June 22, 2024

Can you please try the latest pre-release? It is build with updated SDK and may fix reporting issues.

from z03mmc.

Ctrl-F4 avatar Ctrl-F4 commented on June 22, 2024

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.

devbis avatar devbis commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.