Skip to content

Commit

Permalink
fix: Fix missing power source of Sonoff SNZB-02D (#5808)
Browse files Browse the repository at this point in the history
  • Loading branch information
octa22 authored May 29, 2023
1 parent 7d98618 commit 30b2a9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/devices/sonoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ module.exports = [
await reporting.temperature(endpoint, {min: 5, max: constants.repInterval.MINUTES_30, change: 20});
await reporting.humidity(endpoint);
await reporting.batteryPercentageRemaining(endpoint, {min: 3600, max: 7200});
device.powerSource = 'Battery';
device.save();
},
},
{
Expand Down

0 comments on commit 30b2a9b

Please sign in to comment.