Skip to content
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

Merged
merged 8 commits into from
Jan 12, 2021
Merged

Fantem MultiSensor ZB003-X #2072

merged 8 commits into from
Jan 12, 2021

Conversation

kirovilya
Copy link
Contributor

devices.js Outdated
e.occupancy(), e.battery(),
e.illuminance().withUnit('lx'),
e.temperature(), e.humidity(),
exposes.numeric('reporting_time', exposes.access.ALL),
Copy link
Owner

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh :)

devices.js Outdated Show resolved Hide resolved
devices.js Outdated Show resolved Hide resolved
let val;
switch (dp) {
case 107: // 0x6b temperature
return {temperature: (value / 10).toFixed(1)};
Copy link
Owner

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

case 107: // 0x6b temperature
return {temperature: (value / 10).toFixed(1)};
case 108: // 0x6c humidity
return {humidity: value};
Copy link
Owner

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

@Koenkk
Copy link
Owner

Koenkk commented Jan 12, 2021

Thanks!

@Koenkk Koenkk merged commit de1c830 into Koenkk:master Jan 12, 2021
convert: (model, msg, publish, options, meta) => {
const zoneStatus = msg.data.zonestatus;
return {
occupancy: (zoneStatus & 1<<2) > 0,
Copy link
Contributor

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants