Closed NickJLange closed 3 years ago
Thanks for this, but need your Tasmota device config so I can duplicate it in one of my devices to see what is triggering the error.
@NorthernMan54 - seeing a load of these errors on newly tasmotized (tuya-convert) lights.
How can I send you my config backup ?
Just include it here
Here you go - attaching a couple of devices where I see this:
I am not sure if it is related, but I am seeing a difference in the template I applied when I type Template
e.g. this is the template I use: https://templates.blakadder.com/winpro_next.html
{"NAME":"WIPROBatten","GPIO":[0,0,0,0,0,37,0,0,0,47,0,0,0],"FLAG":1,"BASE":18}
the result I see on the console is:
10:43:18 CMD: template
10:43:18 MQT: stat/Junaaid/RESULT = {"NAME":"WIPROBatten","GPIO":[0,0,0,0,0,416,0,0,0,449,0,0,0,4704],"FLAG":0,"BASE":18}
And here is the second one:
Applied Template: https://templates.blakadder.com/solimo_12W_B22.html
From Template:
{"NAME":"Solimo RGBCCT 12","GPIO":[0,0,0,0,37,41,0,0,38,40,39,0,0],"FLAG":0,"BASE":18}
From the console:
11:58:32 CMD: template
11:58:32 MQT: stat/wash/RESULT = {"NAME":"Solimo RGBCCT 12","GPIO":[0,0,0,0,416,420,0,0,417,419,418,0,0,0],"FLAG":0,"BASE":18}
Further, the errors recur every 5 minutes. Which matches the teleperiod specified in Tasmota.
Including a sample message from tasmota when this is triggered:
18:26:17 MQT: tele/wash/STATE = {"Time":"2020-12-16T18:26:17","Uptime":"0T09:02:41","UptimeSec":32561,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":1,"POWER":"ON","Dimmer":100,"Color":"0,0,0,210,45","HSBColor":"0,0,0","White":100,"CT":214,"Channel":[0,0,0,82,18],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"XXXX","BSSId":"XXXXXXXX","Channel":1,"RSSI":78,"Signal":-61,"LinkCount":1,"Downtime":"0T00:00:03"}}
If you update to the latest (.77) it should now be resolved.
PS I have never seen DMP files before and couldn't open them.
To troubleshoot the issue I used your supplied template on a test device I have ( the link to the Tasmota device page was very useful ), and was able to recreate your error messages. Then resolving was just a few minutes of coding.
Thats great! Just updated - will let you know in 5-10 min if I see any errors. Thanks again for the immediate response.
Ok - State does not trigger any errors now - all seems good. Thank you!
Oops - spoke too soon. Still seeing the error
16/12/2020, 22:37:50 [Tasmota] Updating 'Green' ColorTemperature to Error: src must be a string or an object describing the source
at Template.init (/hoobs/node_modules/nunjucks/src/environment.js:500:13)
at Template.Obj (/hoobs/node_modules/nunjucks/src/object.js:60:15)
at new Template (/hoobs/node_modules/nunjucks/src/environment.js:476:18)
at Object.compile (/hoobs/node_modules/nunjucks/index.js:85:12)
at tasmotaLightService.parseValue (/hoobs/node_modules/homebridge-tasmota/dist/TasmotaService.js:149:47)
at tasmotaLightService.statusUpdate (/hoobs/node_modules/homebridge-tasmota/dist/tasmotaLightService.js:113:39)
at Mqtt.emit (events.js:327:22)
at MqttClient.
PS I have never seen DMP files before and couldn't open them.
To troubleshoot the issue I used your supplied template on a test device I have ( the link to the Tasmota device page was very useful ), and was able to recreate your error messages. Then resolving was just a few minutes of coding.
Sorry about that - used decode_config this time - hope this helps
Hold on @NorthernMan54 - I may have seen some old errors. I just restarted - let me look at the log for a while and let you know
Yes - I can confirm that I goofed up with the old log entries. Looks to be fine after the update. Thank you!
Not sure what that decode_config file is either....
Anyway glad to hear that that it is working
Thank you for this fix!
Describe The Bug: Initial install - this could be a MQTT config issue etc.
Logs:
Tasmota Device Config:
Screenshots:
Environment: