Comments (4)
Add to exposes: e.battery_voltage()
from z03mmc.
It was excluded from z2m converted as redundant property. But you may use custom converter with added voltage
from z03mmc.
I added the converter from this article but there is still no voltage...
https://smarthomescene.com/guides/convert-xiaomi-lywsd03mmc-from-bluetooth-to-zigbee/
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: [],
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, {min: 10, max: 300, change: 10});
await reporting.humidity(endpoint, {min: 10, max: 300, change: 50});
await reporting.batteryVoltage(endpoint);
await reporting.batteryPercentageRemaining(endpoint);
},
exposes: [e.temperature(), e.humidity(), e.battery()],
ota: ota.zigbeeOTA,
};
module.exports = definition;
from z03mmc.
Add to exposes: e.battery_voltage()
thank you, it worked
from z03mmc.
Related Issues (20)
- Cannot re-pair device HOT 10
- Stuck during OTA flashing HOT 1
- LYWSD03MMC version 2.1.1_0159 HOT 1
- Problem with LYWSD03MMC and Zigbee2Mqtt HOT 1
- Add support for Ruuvi Tags (bluetooth) ?? HOT 3
- Зависают устройства если выключить хаб на несколько часов (Яндекс.станция)
- Bricked 2 devices w no reason HOT 1
- high battery consumption HOT 10
- LYWSD03MMC HW revision going blank after fw reset HOT 2
- Cannot discover Zigbee after flashing HOT 2
- Can't add to HA zigbee2mqtt after successful Flash HOT 2
- Temperature is reported once every 4 hours. What's wrong? HOT 2
- Crashed sensors HOT 6
- Wired Values HOT 2
- Devices using a non existent konverter HOT 1
- Flash via UART? HOT 3
- Device showing up weird cluster endpoints on ZHA HOT 1
- zigbee change offsets of humidity and temp? HOT 4
- Is it normal devices only connect directly to a coordinator, they won't switch to any repeater? HOT 1
- Device stop reporting since july 2nd HOT 15
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.