Skip to content

Commit

Permalink
Force Third Reality 3RWS18BZ Water Sensor to show battery (Koenkk#3203)
Browse files Browse the repository at this point in the history
* Force Third Reality 3RWS18BZ Water Leak Sensor to show battery as power source

* Update third_reality.js

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
digiblur and Koenkk authored Oct 22, 2021
1 parent 1a22794 commit 44f2d8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devices/third_reality.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ module.exports = [
meta: {battery: {dontDividePercentage: true}},
toZigbee: [],
exposes: [e.water_leak(), e.battery_low(), e.battery(), e.battery_voltage()],
configure: async (device, coordinatorEndpoint, logger) => {
device.powerSource = 'Battery';
device.save();
},
},
{
zigbeeModel: ['3RMS16BZ'],
Expand Down

0 comments on commit 44f2d8c

Please sign in to comment.