Skip to content

Commit

Permalink
https://github.com/andreypopov/node-red-contrib-zigbee2mqtt/issues/78
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypopov committed May 22, 2022
1 parent 3e5b153 commit 4ec7eed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodes/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ module.exports = function(RED) {
if (node.config.state && node.config.state !== '0' && payload_all && node.config.state in payload_all) {
payload = text = payload_all[node.config.state];
useProperty = node.config.state;
} else if (item.homekit && node.config.state.split("homekit_").join('') in item.homekit) {
} else if (item.homekit && node.config.state && node.config.state.split("homekit_").join('') in item.homekit) {
payload = item.homekit[node.config.state.split("homekit_").join('')];
useProperty = node.config.state.split("homekit_").join('');
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"name": "node-red-contrib-zigbee2mqtt",
"description": "Zigbee2mqtt connectivity nodes for node-red",
"version": "2.2.3",
"version": "2.2.4",
"dependencies": {
"eventsource": "^2.0.2",
"mqtt": "^4.3.7",
Expand Down

0 comments on commit 4ec7eed

Please sign in to comment.