Skip to content

Commit

Permalink
elmVal
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Jul 31, 2023
1 parent 0b4c580 commit fd97663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ class Zigbee extends utils.Adapter {

this.log.debug(`Type ${value} from battery search`);

if (value != undefined) {
if (key == 65282) {
if (value != undefined && value[1] != undefined) {
if (key == 65282 && value[1][1] != undefined) {
voltage = value[1][1].elmVal;
battKey = true;
break;
Expand Down

0 comments on commit fd97663

Please sign in to comment.