nspanel-lovelace-ui icon indicating copy to clipboard operation
nspanel-lovelace-ui copied to clipboard

[Feature Request] BerryDriver should send update result via mqtt publish

Open laluz742 opened this issue 2 years ago • 3 comments

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

laluz742 avatar Oct 19 '23 11:10 laluz742

what?

joBr99 avatar Oct 19 '23 20:10 joBr99

hey, please be a bit more specific about what message you expect at which point

joBr99 avatar Oct 24 '23 18:10 joBr99

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

laluz742 avatar Oct 27 '23 07:10 laluz742