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)
- 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
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.