mirror of
https://github.com/lehanspb/tuya-mqtt.git
synced 2025-12-18 00:10:20 +00:00
Dev (#60)
3.0.1 Update * Script to merge device additions and changes into devices.conf (#49) * Fix typos in README.md * Add republish on reconnect * Filter additional invalid characters '+','#','/' from topic line (replace with '_') * Minor bugfixes for parse values * Include script for merging new devices into existing config * Update dependency Co-authored-by: tsightler <tsightler@gmail.com> Co-authored-by: Doug Krahmer <doug.git@remhark.com>
This commit is contained in:
@@ -64,8 +64,7 @@ async function republishDevices() {
|
||||
debug('Resending device config/state in 30 seconds')
|
||||
await utils.sleep(30)
|
||||
for (let device of tuyaDevices) {
|
||||
device.publishMqtt(device.baseTopic+'status', 'online')
|
||||
device.init()
|
||||
device.republish()
|
||||
}
|
||||
await utils.sleep(2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user