Install TasmoAdmin on Raspberry Pi and centrally manage Sonoff-Tasmota

3 minutes of reading
Guide purposes
  • Install and configure TasmoAdmin su Raspberry Pi (Raspbian) and thus provide a centralized interface to manage home automation components Sonoff so centralized
  • Difficulty level: medium low
Concepts dealt with:
  • software installation and configuration
Software components used:
Prerequisites
  • Wifi network connected to the Internet
  • Raspberry Pi configured and working with Raspbian
Physical devices used:
GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi eventuale modifica agli impianti domestici dev'essere progettata ed realizzata SOLO da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.
Driving review: 1.1

Abstract

TasmoAdmin is an extremely useful web tool for owners of the domotic components of the family ITEAD Sonoff Smart Home they have been updated to firmware Sonoff-Tasmota.

This management tool allows you to administer all the components present in the profirst network in a single dashboard; one of the most administrative features apprezzate is to allow us the greaternameof firmware on all or part of the devices in one action.

Nb. This guide is valid in the same way and in the same commands for Ubuntu Server 16.04.

All the controls they are executed from the terminal.

Nb Users Home Assistant in distribution HASSIO - not being able to install TasmoAdmin as per this guide - they have at their disposal theapplicativo as a stand-alone plug-in.

Installation of the necessary packages

To work, TasmoAdmin needs Apache2, PHP, Curl and other modules. To install them, execute the following command block in one solution:

sudo apt-get update && \
sudo apt-get install \
apache2 \
php \
libapache2-mod-php \
php7.0-curl \
php7.0-zip \
git \
vim

TasmoAdmin

Now clone TasmoAdmin from profirst Git repositoryHub through the command:

sudo git clone https://github.com/reloxx13/TasmoAdmin.git /var/www/tasmoadmin

Change folder ownership:

sudo chown -R www-data:www-data /var/www/tasmoadmin

Set the rights read / write:

sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/tmp && sudo chmod 777 /var/www/tasmoadmin/tasmoadmin/data

Disable the OPcache:

sudo rm /etc/php/7.0/apache2/conf.d/opcache.ini

Now create the file "tasmoadmin.conf"

sudo nano /etc/apache2/sites-available/tasmoadmin.conf

and copy the following text inside:

<VirtualHost *:9999>
        ServerName tasmoadmin
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/tasmoadmin/tasmoadmin
        <Directory /var/www/tasmoadmin/tasmoadmin>
        AllowOverride All
        Order allow,deny
        allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature On
</VirtualHost>

Exit by saving with CTRL + X / Y / enter.

Now edit the file "ports.conf”With the command:

sudo nano /etc/apache2/ports.conf

integrating it as follows:

# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 9999

<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

Exit by saving with CTRL + X / Y / enter.

start site and mod:

sudo systemctl reload apache2
sudo a2ensite tasmoadmin
sudo a2enmod rewrite

Finally, restart Apache2:

sudo service apache2 restart

If everything has been executed to the letter, by connecting to the address

http://ip-del-rapsberry:9999

(taking care to replace "ip-del-raspberry" with the ip assigned to the unit) should apparire the TasmoAdmin interface.

utilization

Upon first access, TasmoAdmin asks to create a user account for access. Once executed, the "AutoScan" interface will be accessed, useful for device discovery Sonoff updated Sonoff-Tasmota present in the profirst network:

TasmoAdmin Autoscan

where:

From IPStarting address of the subnet to be analyzed (eg. Xxx1)
To IPArrival address of the subnet to be analyzed (eg. Xxx254)
Device UsernameUser name for device access Sonoff updated Sonoff-Tasmota (must be the same for everyone)
Device PasswordPassword for device access Sonoff updated Sonoff-Tasmota (must be the same for everyone)

After configuring these fields and having clicked "Start AutoScan“, The web tool prowill identify all the components Sonoff detected. At the end of procedura (it may take a few seconds) a complete list will be displayed; at the bottom, click on “Save"

Now the list of devices will be available for use:

TasmoAdmin List device

Update Searchnamemassive firmware

At this point, when you need it, it will be possible to do the Update Searchnameof mass of the Sonoff through this convenient web tool.

After filled the othernamento wanted (as explained in our guide of proming Sonoff) in the versions MINIMAL e Full Firmware (so two different files), go to the menu item "Devices/Update"

TasmoAdmin interface update

and fill in as follows:

OTA Server IPIP address of the Raspberry
OTA Server Port9999 port
MINIMAL Firmware.Bin file of the MINIMAL compiled firmware Sonoff-Tasmota
Full Firmware.Bin file of the compiled complete of the firmware Sonoff-Tasmota

Click on "Next". Appthe list of components will now appear, from which to choose which device / devices to update:

TasmoAdmin Firmware Update Components list

selected one or more components, click on "Start Update"

TasmoAdmin Firmware Update DONE

The tool provvederà to upload firmware and up tonamento.
Wait for that appfarmyard "Update done!”Before closing the page.

Yours Sonoff will be updated to the latest version (or the one you choose) of firmware.


ITEAD Sonoff BasicATTENZIONE: remember that there is on our FORUM community an ad hoc section dedicated to Sonoff (and more generally to devices ESP8266), for any doubt, question, information on the specific merit of these components.

inDomus telegram channel