Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time
VERSION 0.0.16

This project implements a background service that listens on a network port for
communication from SolarEdge inverters, to extract the power production data
(telemetry) from it.  The captured data is stored in a MySQL database.  A PHP
script is included to upload it to [PvOutput](  Another
project implementing a website to visualise the data is
[available here](

**Please note:** This project _does not work_ with recent SolarEdge inverter
models with SetApp.  You can only use se-logger with inverter models that have
a built-in display.  The more recent inverters can be monitored using


These instructions may assume working knowledge of managing Linux systems and
MySQL databases.  You may need to be root (i.e., 'sudo') for some of the
commands used.  Tested with Ubuntu 16.04, Python 3.5+, MySQL 5.7.12, PHP 7.0.

 1. Install the required system packages:

 2. Set up the database tables using the SQL statements in 'database.txt'.

 3. Create the directory '/opt/se-logger' and copy and/or move '',
    'pvo-upload.php', and '' to it.  (It is also possible
    to get this running from a different directory, make sure to edit all
    scripts accordingly.)

 4. Inverters with recent firmware (presumably CPU version 3 or higher) employ
    data encryption when communicating with the SE servers.  Newly installed
    inverters send this key once within the first 2 days after connecting them
    to the internet.  They will not employ encryption until after they have
    sent the key, so you can continue with #5 now.  If your inverter is already
    connected to the internet, the encryption key has to be obtained from the
    inverter first over an RS232 or USB serial connection with the
    '' script.  To use it, enter your inverter's serial
    number and the name of the serial port in the SETTINGS area of the script
    and run it.  You may need to install the python3-serial system package
    (PySerial) first.

 5. Copy the file to and use a text editor to update
    your database username and password as well as the encryption key of your
    inverter.  If your inverter is newly installed and the solaredge-logger
    will be running from the first day it is connected to the internet, you may
    not need an encryption key the first day - just leave it at the default
    value for now.  You'll know that it started encrypting the data when the
    data stops updating.  Refer to #11 when that happens.

 6. Open 'pvo-upload.php' in a text editor and enter your database username and
    password as well as the PVOutput API key and System ID in the SETTINGS area
    at the top of the script.  You may skip this step if you don't want to set
    up automatic uploading to PVOutput.

 7. Open '' in a text editor and enter the interface name
    of the network device that connects to the inverter in the SETTINGS area at
    the top of the script.  If traffic from multiple devices is routed over
    this interface, the value of FILTER may need to be changed from 'tcp' to a
    more elaborate tcpdump filter expression to make sure only the inverter's
    communication is captured (e.g., 'tcp and ether host 0:27:02:12:34:56').
    If you decided not to use the default directory, make sure to update the
    value of CAPTDIR accordingly.

 8. Copy and/or move the 'se-logger.service' file to the '/etc/systemd/system'
    directory.  If you decided not to use the default directory, make sure to
    update the path to '' accordingly.

 9. Run the following command to enable the new service:
    systemctl --now enable se-logger

10. Set up cronjobs for daily restarting the service and updating PVOutput
    every two minutes.  Run 'crontab -e' and copy the contents of 'crontab.txt'
    into your crontab.  If you decided not to install the logger in the default
    directory, make sure to update the paths to '/opt/se-logger' accordingly.
    If you don't want to set up automatic uploading to PVOutput, remove the
    line that contains 'pvo-upload.php'.

11. If your inverter was newly installed and you had not yet entered your
    inverter's encryption key in the '' script, you'll know that
    it started encrypting the data when the data stops updating.  Then, you
    can find the encryption key in the 'solaredge-###.pcap' files in the
    '/opt/se-logger' directory by using the '' script.  When
    found, update '' with your encryption key.  Then, run
    'python3 *.pcap' to update the database and run
    'systemctl restart se-logger' to restart the service to keep it updated.

12. If anything fails to work, you may find error messages in various log files
    that appear in the '/opt/se-logger' directory.


  - Various Python3-related fixes (thanks @RobBie1221 and @nrosier).
  - pvo_upload.php will no longer try to upload data older than 90 days.
  - Added PVO_DONATED option to pvo_upload.php. When set to false, stricter
    limits are applied: data must not be older than 14 days, and only 30 data
    points are uploaded simultaneously.
  - When PVOutput returns the 'Moon powered' error message, pvo_upload.php will
    try to identify the offending data point and skip uploading it.

  - Converted to Python3 (thanks @Expaso).

  - Moved settings out of to a separate file (thanks @mirakels).
  - Added support for more single-phase inverter firmware versions.

  - Fixed detection of VLAN-tagged Ethernet frames.

  - Added support for PCAP files with big-endian byte order.

  - Added for checking whether any encryption is already
    occurring in the data you captured.
  - No longer sending negative temperatures to PVOutput.
  - Add support for FS Forth-Systeme WiFi modules (in MAC address filter).
  - Added db_port configuration setting (default: 3306).

  - Added support for inverters connected using WiFi modules (DigiBoard MACs).
  - Fixed a minor issue in that caused Python to display an extra
    warning if the service would crash.
  - Added date and time to error messages in pvo-upload.log.
  - The se-logger.service will now wait for mysql.service to start up.

 - Fixed silly warning about 'Data loss: 0 bytes'.
 - Added support for more three-phase inverter firmware versions.
 - Fixed issue with pvo-upload.php in western hemisphere timezones.
 - Added PVOutput upload script for three-phase inverters.

 - Auto-reconnect to the database if a timeout occurs, and retry connecting up
   to 5 times.
 - Added db_host configuration setting to (default: 'localhost').

 - Added support for three-phase inverters.
 - Added detection of non-IPv4-non-TCP traffic (and ignore it).
 - Fixed detection of VLAN-tagged Ethernet frames.
 - Fixed MySQL warnings about out-of-range FLOAT values.
 - Now committing to the database only once per telemetry packet, instead of
   after each item.

 - Added support for CPU version 3.1818.

 - Added support for CPU version 3.1651.
 - Added to scan for the encryption key in PCAP files.
 - will now print an informative error message if PySerial
   is not installed.

 - will no longer try to fill gaps in TCP streams that have been
   terminated by the RST flag.

 - Added 'uptime' column to the 'telemetry_optimizers' database table.  This is
   the uptime in seconds (approximately) of each optimizer since last wake-up.
   The 'e_day' value is reset to zero when the optimizer wakes up, which may
   happen mid-day in case of very dark rainy periods.
 - Added 'last_telemetry' column to the 'live_update' database table.  This
   field will contain the system time of the moment on which the most recent
   telemetry message was received from the inverter by
 - Fixed incomplete reporting of skipped 'mysterious bytes' in
 - Improved robustness of by only parsing the data sent by the
   inverter.  This is detected by looking for the SolarEdge ethernet MAC
   address prefix 00:27:02.
 - Greatly improved robustness of by recognising and reordering
   out-of-order TCP segments and retransmissions.
 - will now correctly identify truncated and damaged messages by
   checking the checksums and seeking for another message barker if the
   checksums don't match.

 - Fixed bug in the detection of mid-day inverter restarts in pvo-upload.php.
 - Changed gmdate("...") + date("Z") to date("...") in pvo-upload.php.
 - Added script that reads the encryption key from the inverter.

 - Initial version.


Capturing telemetry data from TCP traffic of SolarEdge PV inverters







No packages published