Home Assistant Community Add-on: TasmoAdmin

Awesome work @frenck for making all these amazing add-ons :+1:

This means adding another item to my already very long to-do list for Home Assistant :wink:

2 Likes

error:

Parse error: syntax error, unexpected ‘’ => ‘’ (T_CONSTANT_ENCAPSED_STRING) in /var/www/sonweb/includes/Config.php(63) : eval()'d code on line 3

I’ve had the same report earlier and I am unsure what the issue is, since I’m unable to reproduce it. Same questions as the person above:

using raspberry pi with hassio docker

i was just exploring everything was ok, until i click a button if i can recall was a 2th button on left side i dont remeber the name sense i was just exploring with out paying to mutch atention but i think was like a start button

my debug log

[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-sonweb: applying... 
[fix-attrs.d] 01-sonweb: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Hass.io Add-on: SonWEB v0.1.1
 Centrally manage all your Sonoff-Tasmota devices
 From: Community Hass.io Add-ons
 By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to DEBUG
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing... 
DEBUG: Requested API resource: http://hassio/supervisor/ping
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {}}
DEBUG: Requested API resource: http://hassio/addons/a0d7b954_sonweb/info
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {"name": "SonWEB", "slug": "a0d7b954_sonweb", "description": "Centrally manage all your Sonoff-Tasmota devices", "long_description": "# Community Hass.io Add-ons: SonWEB\n\n[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]\n\n[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]\n\n[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]\n\nCentrally manage all your Sonoff-Tasmota devices.\n\n## About\n\nSonWEB is an administrative web interface to manage all your Sonoff-Tasmota\nflashed devices centrally. Some of its features:\n\n- Scans your networks and adds your devices automatically\n- See the status off all your devices quick and easy\n- Configure all your devices from a single place\n- Send out firmware updates over the air to one or more your devices at once\n- Can automatically download the latest firmware for you\n\n[Click here for the full documentation][docs]\n\n![SonWEB screenshot][screenshot]\n\n[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\n[buymeacoffee]: https://www.buymeacoffee.com/frenck\n[discord-shield]: https://img.shields.io/discord/330944238910963714.svg\n[discord]: https://discord.gg/c5DvZ4e\n[docs]: https://github.com/hassio-addons/addon-sonweb/blob/v0.1.1/README.md\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/community-hass-io-add-on-sonweb/54155?u=frenck\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2018.svg\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg\n[release-shield]: https://img.shields.io/badge/version-v0.1.1-blue.svg\n[release]: https://github.com/hassio-addons/addon-sonweb/tree/v0.1.1\n[screenshot]: https://github.com/hassio-addons/addon-sonweb/raw/master/images/screenshot.png", "version": "0.1.1", "auto_update": false, "repository": "a0d7b954", "last_version": "0.1.1", "state": "started", "boot": "auto", "options": {"log_level": "debug", "ssl": true, "certfile": "fullchain.pem", "keyfile": "privkey.pem", "ipv6": false}, "url": "https://community.home-assistant.io/t/community-hass-io-add-on-sonweb/54155?u=frenck", "detached": false, "build": false, "network": {"9541/tcp": 9541}, "host_network": false, "host_ipc": false, "host_dbus": false, "privileged": null, "seccomp": "default", "apparmor": "default", "devices": null, "icon": true, "logo": true, "changelog": true, "webui": "https://[HOST]:9541", "stdin": false, "hassio_api": true, "homeassistant_api": false, "gpio": false, "audio": false, "audio_input": null, "audio_output": null, "services": null, "discovery": null}}
DEBUG: Filtering response using: .version
DEBUG: Requested API resource: http://hassio/addons/a0d7b954_sonweb/info
DEBUG: API HTTP Response code: 200
DEBUG: API Response: {"result": "ok", "data": {"name": "SonWEB", "slug": "a0d7b954_sonweb", "description": "Centrally manage all your Sonoff-Tasmota devices", "long_description": "# Community Hass.io Add-ons: SonWEB\n\n[![Release][release-shield]][release] ![Project Stage][project-stage-shield] ![Project Maintenance][maintenance-shield]\n\n[![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]\n\n[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]\n\nCentrally manage all your Sonoff-Tasmota devices.\n\n## About\n\nSonWEB is an administrative web interface to manage all your Sonoff-Tasmota\nflashed devices centrally. Some of its features:\n\n- Scans your networks and adds your devices automatically\n- See the status off all your devices quick and easy\n- Configure all your devices from a single place\n- Send out firmware updates over the air to one or more your devices at once\n- Can automatically download the latest firmware for you\n\n[Click here for the full documentation][docs]\n\n![SonWEB screenshot][screenshot]\n\n[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg\n[buymeacoffee]: https://www.buymeacoffee.com/frenck\n[discord-shield]: https://img.shields.io/discord/330944238910963714.svg\n[discord]: https://discord.gg/c5DvZ4e\n[docs]: https://github.com/hassio-addons/addon-sonweb/blob/v0.1.1/README.md\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/community-hass-io-add-on-sonweb/54155?u=frenck\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2018.svg\n[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg\n[release-shield]: https://img.shields.io/badge/version-v0.1.1-blue.svg\n[release]: https://github.com/hassio-addons/addon-sonweb/tree/v0.1.1\n[screenshot]: https://github.com/hassio-addons/addon-sonweb/raw/master/images/screenshot.png", "version": "0.1.1", "auto_update": false, "repository": "a0d7b954", "last_version": "0.1.1", "state": "started", "boot": "auto", "options": {"log_level": "debug", "ssl": true, "certfile": "fullchain.pem", "keyfile": "privkey.pem", "ipv6": false}, "url": "https://community.home-assistant.io/t/community-hass-io-add-on-sonweb/54155?u=frenck", "detached": false, "build": false, "network": {"9541/tcp": 9541}, "host_network": false, "host_ipc": false, "host_dbus": false, "privileged": null, "seccomp": "default", "apparmor": "default", "devices": null, "icon": true, "logo": true, "changelog": true, "webui": "https://[HOST]:9541", "stdin": false, "hassio_api": true, "homeassistant_api": false, "gpio": false, "audio": false, "audio_input": null, "audio_output": null, "services": null, "discovery": null}}
DEBUG: Filtering response using: .last_version
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 10-requirements.sh: executing... 
[cont-init.d] 10-requirements.sh: exited 0.
[cont-init.d] 11-nginx.sh: executing... 
[cont-init.d] 11-nginx.sh: exited 0.
[cont-init.d] 12-patches.sh: executing... 
patching file /var/www/sonweb/includes/header.php
DEBUG: Applied SonWEB SelfUpdate fix
patching file /var/www/sonweb/pages/device_update.php
DEBUG: Applied SonWEB OTA over HTTPS fix
[cont-init.d] 12-patches.sh: exited 0.
[cont-init.d] 13-persistent-data.sh: executing... 
DEBUG: Symlinking data directory to persistent storage location...
[cont-init.d] 13-persistent-data.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

Great to see this as an hass.io add-on!
Can’t test at the moment if the SelfUpdate function for SonWEB is present here, but it should be noted to NOT USE THAT FUNCTION NOW, SonWEB is currently getting prepared to be renamed to ‘TasmoAdmin’.
I thought to mention it just to be sure, don’t know how this add-on handles updates of the original tool.

I uninstalled sonweb reinstalled now working

unistall and reinstall also fixed the problem

was hoping that could have a addon for espurna also!!

1 Like

Thanks that worked for me too I had the same issue - it happened after I opened the port in the firewall and hit refresh - not sure if refreshing caused it - stopping and restarting didn’t help but reinstalling did. Thanks - I will let you know if it occurs again.

Just install it
did the auto scan said it found 10 and what next

work it out scroll to the botton LOL

This is way cool Think i have get beater in my Naming LOL

Thanks again

1 Like

Hi… It tells me that i need a password and an username… Are there defaults?

@Daandamhuis On initial setup… that is not a login window… but a registration form (Submit button should state “Register”)

2 Likes

Got this error

Parse error: syntax error, unexpected ‘)’, expecting end of file in /var/www/sonweb/includes/Config.php(63) : eval()'d code on line 5

First of all great add-on, just what I was looking for.

However I got the same error as @myle and @vMeph.

The issue is being tracked now at the upstream project. It seems like uninstalling and re-installing fixes/workaround the problem for now.

yeap That fix it

thanks again fro the hard work you have done

1 Like

Yesterday I noticed TasmoAdmin, and told myself… I should do a Hass.io Addon with it.
Well, you were faster! :smiley:
Thanks for your work!
{ BTW, SonWEB is the old name for TasmoAdmin: https://github.com/arendst/Sonoff-Tasmota/issues/2823 }

thanks for all the work that went into this. just got it downloaded and up and running and it works great, discovered all my devices, no problems. very cool stuff!

So I entered a username and password when I ‘registered’ no problem.

It also asks for a username and password - but I didn’t enter a password there… username seems to default to admin_sonweb but there’s a warning about password being stored as plain text? What does it use those for? Activate login is checked… It’s not obvious to me what those are used for?

(When I logged out it asked for username and password. Username defaulted to admin_sonweb which I must have entered. Password was registration password so it looks like that is the same thing??)

I get the OTA server IP is the IP address of Hassio??

If I go to devices>update it shows that IP address and also prompts for minimal and full firmware? Does that mean I have downloaded these already? Why then have an OTA server configured? Tapped on Automatic and it failed to download?

Is there a manual that explains any of this?

Just tried automatic again and it seemed to have downloaded the firmware and given me an option to upgrade even though I was already on 5.14? Also got a message about default CFG_HOLDER?? No idea what that even meant. It lists the latest dev firmware in the ‘read me’ but only downloads released - makes sense.

Dr Zzs recently posted a video about SonWEB, and he discusses how to use SonWEB to update Tasmota.