TasmoAdmin / TasmoAdmin

TasmoAdmin is an administrative platform for devices flashed with Tasmota
GNU General Public License v3.0
859 stars 142 forks source link

Update Devices function always fetches from OTA server - ignores manually-entered firmware files #404

Closed mrneutron42 closed 4 years ago

mrneutron42 commented 4 years ago

Problem Description: Update Devices page ignores manually-entered firmware files and goes out to the Tasmota OTA firmware server 172.30.33.0 and fetches firmware files, even if manually-entered firmware files are chosen.

Versions: TasmoAdmin version 0.13.0 Home Assistant version 0.115.6 arch | x86_64 chassis | vm dev | false docker | true docker_version | 19.03.11 hassio | true host_os | HassOS 4.13 installation_type | Home Assistant OS os_name | Linux os_version | 5.4.63 python_version | 3.8.5 supervisor | 245 timezone | America/Chicago version | 0.115.6 virtualenv | false

Steps to Reproduce Open Updater window, manually select a minimal and full firmware files from a local hard drive, click NEXT. TasmoAdmin Update Devices window

Select a Tasmota device to update and click the Start Update button. You will see that the latest version of firmware is fetched from the Tasmota OTA firmware server, rather than loading the firmware files you manually selected. TasmoAdmin fetches from web by default

mprins commented 4 years ago

Versions: TasmoAdmin version 0.13.0

hmmm, the current versions of tasmoAdmin is 1.7.0: https://github.com/reloxx13/TasmoAdmin/releases are you really using something that old?

the way OTA works is that the firmware url is pushed to a device ant then the instruction to update is sent to the device; there is no uploading to a device - the images are uploaded to tasmoadmin if relevant

mrneutron42 commented 4 years ago

Hummm. I downloaded/installed the newest version of Home Assistant this week. I used it's Add On Store interface to load TasmoAdmin. I expected it to grab the newest version. It pulled down ver. 1.3 and the TasmoAdmin log says it is the latest version. TasmoAdmin in Home Assistant

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 01-tasmoadmin: applying... 
[fix-attrs.d] 01-tasmoadmin: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: TasmoAdmin
 Centrally manage all your Sonoff-Tasmota devices
-----------------------------------------------------------
 Add-on version: 0.13.0
 You are running the latest version of this add-on.
 System: HassOS 4.13  (amd64 / qemux86-64)
 Home Assistant Core: 0.115.6
 Home Assistant Supervisor: 245
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] nginx.sh: executing... 
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] tasmoadmin.sh: executing... 
[cont-init.d] tasmoadmin.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:09:05] INFO: Starting PHP-FPM server...
[11:09:06] INFO: Starting NGinx server...

How would I update it to version 1.7? I'm looking around the TasmoAdmin Web UI and I don't see an Update button or Update pulldown menu item, etc.

reloxx13 commented 4 years ago

The AddOn Version is not the same as the TasmoAdmin Version.

You misunderstood the update process. You tell tasmota that your firmwarefiles are on your tasmoadmin server (in this case the hass.io - ) ip.

Tasmota requests the normal fw file from this ip. If the fw file is too big, tasmota automatically requests your ip for the fw-minimal.

grafik

mrneutron42 commented 4 years ago

User @mprins is the one who was confused about the TasmotaAdmin version and diverted the attention away from the issue of focus, which is trying to update individual Tasmota devices with a specific user-chosen firmware version.

If there is documentation to show how to use the Update Devices window, please point me there. Its use is not clear. In most user interfaces, the BROWSE button is used to point to a file in a directory on a local hard drive. That is how I'm interpreting those BROWSE buttons. If that isn't the way these BROWSE buttons work, an example of their proper use is needed, please.

reloxx13 commented 4 years ago

with the browse button u choose and upload the fw to your tasmoadmin/hassio server.

you cannot "Push" the fw to the devices, tasmota is requesting the fw from the OtaUrl which is set to your ip.

mrneutron42 commented 4 years ago

So, you type the IP of the your Home Assistant server in the OTA Sever box? Like this? It would help to have this documented, somewhere. TasmoAdmin Update Devices window Home Assistant IP address