Skip to content

Commit ab88728

Browse files
Refresh Z-Wave on heartbeat
1 parent 94ca052 commit ab88728

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/zwave-js-ws/ZWaveJs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ return require('jls.lang.class').create(function(zWaveJs)
8282
local promise, cb = Promise.createWithCallback()
8383
local timer = event:setTimeout(function()
8484
cb('timeout')
85-
end, 3000)
85+
end, 15000)
8686
webSocket.onError = function(_, reason)
8787
logger:warn('Z-Wave JS WebSocket error "%s"', reason)
8888
end

extensions/zwave-js-ws/zwave-js-ws.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ end)
9999

100100
extension:subscribeEvent('heartbeat', function()
101101
if zWaveJs then
102-
-- TODO check web socket
102+
zWaveJs:refresh()
103103
end
104104
end)
105105

0 commit comments

Comments
 (0)