-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3686 from rigrig/ha-sensors-improvements
hasensors improvements
- Loading branch information
Showing
5 changed files
with
113 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
0.01: New app! | ||
0.02: Add sensor icons | ||
Customize code directly, remove config file | ||
0.03: Add HRM sensor | ||
Add step count sensor | ||
Add pressure and temperature sensors | ||
Document Home Assistant `unique ID` workaround |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
(function () { | ||
const sb = () => require("hasensors").sendBattery(); | ||
Bangle.on("charging", sb); | ||
NRF.on("connect", () => setTimeout(sb, 2000)); | ||
setInterval(sb, 10 * 60 * 1000); | ||
})(); | ||
const su = () => require("hasensors").sendUpdate(); | ||
Bangle.on("charging", su); | ||
NRF.on("connect", () => setTimeout(su, 2000)); | ||
su(); | ||
setInterval(su, 10 * 60 * 1000); | ||
Bangle.on('HRM', h=>require("hasensors").sendHRM(h)); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters