Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ble-shelly-dw.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ function scanCB(ev, res) {
)
return;
let BTHparsed = ShellyBLUParser.getData(res);
// it will not work without this!!
Copy link
Collaborator

Choose a reason for hiding this comment

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

Actions are defined in the config located at the top of the file.

if (BTHparsed.window == 1) {
triggerAutomation();
}
if (BTHparsed.window == 0) {
printClosed();
}
// skip if parsing failed
if (BTHparsed === null) {
console.log("Failed to parse BTH data");
Expand Down