Skip to content

Commit

Permalink
remove uunlock refresh state
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 16, 2023
1 parent d3edc6f commit 7c398a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,13 @@ class Tedee extends utils.Adapter {
const deviceId = id.split('.')[2];
if (state.val === 2 || state.val === 7 || state.val === 18) {
this.setState(deviceId + '.remote.lock', false, true);
this.setState(deviceId + '.remote.unlock', true, true);
this.setState(deviceId + '.remote.unlock', 0, true);
}
if (state.val === 7) {
this.setState(deviceId + '.remote.pull', true, true);
}
if (state.val === 6) {
this.setState(deviceId + '.remote.lock', true, true);
this.setState(deviceId + '.remote.unlock', false, true);
this.setState(deviceId + '.remote.pull', false, true);
}
}
Expand Down

0 comments on commit 7c398a9

Please sign in to comment.