SMA Energymeter 测量
a detailed german description could be found here https://www.unifox.at/software/sma-em-daemon/
translated by google https://translate.google.com/translate?sl=de&tl=en&u=https://www.unifox.at/software/sma-em-daemon/
sma-em-measurement.py: Python3 loop display SMA Energymeter measurement values
sma-daemon.py: Python3 daemon writing consume and supply values to /run/shm/em-[serial]-[value]
# HINT #
Sma homemanager version 2.3.4R added 8 Byte of measurement data.
This version trys to detect the measurement values on obis ids, so it should be save if new values were added or removed.python3 sys time configparser (SafeConfigParser) signal
some features require additional python modules features/README.md should give an overview of maintained features. features-outdated/README.md: other features untested because I do not have the appropriate hardware / software could be found in features-outdated.
create a config file in /etc/smaemd/config
Use UTF-8 encoded configfile
Example:
…maybe you have to add a route (example: on hosts with more than one interface)
sudo ip route add 224.0.0.0/4 dev interfacenamesudo apt install git
sudo apt install python3 cl-py-configparser
sudo mkdir /opt/smaemd/
sudo mkdir /etc/smaemd/
sudo useradd -c "smaemd-user" -d /opt/smaemd -M -N -r -s /usr/sbin/nologin smaemd
cd /opt/smaemd/
sudo git clone https://github.com/datenschuft/SMA-EM.git .
sudo cp systemd-settings /etc/systemd/system/smaemd.serviceCreate a /etc/smaemd/config file
sudo cp /opt/smaemd/config.sample /etc/smaemd/configEdit the /etc/smaemd/config file and customize it to suit your needs (e.g. set SMA energy meter serial number, IP address, enable features)
sudo nano /etc/smaemd/configUpdate systemd
sudo systemctl daemon-reload
sudo systemctl enable smaemd.service
sudo systemctl start smaemd.servicefeel lucky and read /run/shm/em--
sma-em-capture-package - trys to capture a SMA-EM or SMA-homemanager Datagram and display hex and ascii package-info and all recogniced measurement values. Cloud be helpful on package/software changes.
暂无开放 Issues,或尚未同步最近议题。