nspanel-lovelace-ui
nspanel-lovelace-ui copied to clipboard
[Feature Request] BerryDriver should send update result via mqtt publish
FEATURE DESCRIPTION
After initiating updates, the berry driver should publish the update result before restart via mqtt publish
ADDITIONAL CONTEXT
Just to make sure, backend knows about the result
PANEL / FIRMWARE VERION
n/a
what?
hey, please be a bit more specific about what message you expect at which point
for example
--- a/autoexec.be
+++ b/autoexec-2.be
@@ -350,6 +350,7 @@ def update_berry_driver(cmd, idx, payload, payload_json)
var r = tasmota.urlfetch(payload, "nsp-lovelace-driver.tapp")
if r < 0
print("Update failed")
+ tasmota.publish_result(string.format("{\"UpdateDriverVersion\": \"Failed\"}")
else
tasmota.cmd("Restart 1")
end