-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fantem MultiSensor ZB003-X #2072
Conversation
devices.js
Outdated
e.occupancy(), e.battery(), | ||
e.illuminance().withUnit('lx'), | ||
e.temperature(), e.humidity(), | ||
exposes.numeric('reporting_time', exposes.access.ALL), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add description for all (use .withDescripition("...."))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh :)
converters/fromZigbee.js
Outdated
let val; | ||
switch (dp) { | ||
case 107: // 0x6b temperature | ||
return {temperature: (value / 10).toFixed(1)}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use calibrateAndPrecisionRoundOptions(temperature, options, 'temperature')
here
converters/fromZigbee.js
Outdated
case 107: // 0x6b temperature | ||
return {temperature: (value / 10).toFixed(1)}; | ||
case 108: // 0x6c humidity | ||
return {humidity: value}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use calibrateAndPrecisionRoundOptions(humidity, options, 'humidity')
Thanks! |
converters/fromZigbee.js
Outdated
convert: (model, msg, publish, options, meta) => { | ||
const zoneStatus = msg.data.zonestatus; | ||
return { | ||
occupancy: (zoneStatus & 1<<2) > 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I've just updated the issue #2071 with some comments about occupancy not working. After some debug, I changed my local instance and now it's working (without the bitwase operator):
occupancy: (zoneStatus & 1) > 0,
#2071