mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-18 00:10:20 +00:00
@@ -64,7 +64,8 @@ async function republishDevices() {
|
||||
debug('Resending device config/state in 30 seconds')
|
||||
await utils.sleep(30)
|
||||
for (let device of tuyaDevices) {
|
||||
device.republish()
|
||||
device.publishMqtt(device.baseTopic+'status', 'online')
|
||||
device.init()
|
||||
}
|
||||
await utils.sleep(2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user