SMAWechselrichter leifert keine Werte SBFspot

Begonnen von noanda, 05 März 2016, 16:54:34

Vorheriges Thema - Nächstes Thema

noanda

Hallo zusammen,
versuche meinen WR über BT auszulesen wie hier beschrieben:

http://www.fhemwiki.de/wiki/SMAWechselrichter

es sind auch alle notwendigen Pakete installiert. in Verzeichnis

Zitatfhem/fhem/FHEM/sbfspot/bin/Release

befinden sich in im Verzeichnens:

SBFspot alle Dateien. die SBF.CFG ist mit der BT Adresse befüllt


################################################################################
#                     ____  ____  _____                _   
#                    / ___|| __ )|  ___|__ _ __   ___ | |_
#                    \___ \|  _ \| |_ / __| '_ \ / _ \| __|
#                     ___) | |_) |  _|\__ \ |_) | (_) | |_
#                    |____/|____/|_|  |___/ .__/ \___/ \__|
#                                         |_|             
#
#  SBFspot.cfg - Configuration file for SBFspot.exe
#  SBFspot - Yet another tool to read power production of SMA® solar inverters
#  (c)2012-2014, SBF
#
#  DISCLAIMER:
#  A user of SBFspot software acknowledges that he or she is receiving this
#  software on an "as is" basis and the user is not relying on the accuracy
#  or functionality of the software for any purpose. The user further
#  acknowledges that any use of this software will be at his own risk
#  and the copyright owner accepts no responsibility whatsoever arising from
#  the use or application of the software.
#
SMA and Speedwire are registered trademarks of SMA Solar Technology AG
################################################################################

# SMA Inverter's Bluetooth address
# Windows: smaspot -scan
# Linux  : hcitool scan
# IMPORTANT FOR SPEEDWIRE USERS: COMMENT OUT BTADDRESS (PUT # IN FRONT)
BTAddress=00:80:25:30:56:52

# SMA Inverter's Speedwire IP address
# If IP_Address is not set or is 0.0.0.0 SBFspot will try to detect the speedwire inverter by broadcast
# If IP_Address is set to a valid IP, SBFspot will try to connect directly to that IP without broadcast detection
IP_Address=0.0.0.0

# User password (default 0000)
Password=0000

# MIS_Enabled (Multi Inverter Support: Default=0 Disabled)
# +------------+-------+-------------+
# | #Inverters | NetID | MIS_Enabled |
# +------------+-------+-------------+
# |      1     |   1   | Don't Care  |
# +------------+-------+-------------+
# |      1     |   >1  |      0      |
# +------------+-------+-------------+
# |      >1    |   >1  |      1      |
# +------------+-------+-------------+
MIS_Enabled=0

# Plantname
Plantname=MyPlant

# OutputPath (Place to store CSV files)
#
# Windows: C:\Users\Public\SMAdata\%Y
# Linux  : /home/pi/smadata/%Y
# %Y %m and %d will be expanded to Year Month and Day
OutputPath=/home/pi/smadata/%Y

# OutputPathEvents (Place to store CSV files for events)
# If omitted, OutputPath is used
OutputPathEvents=/home/pi/smadata/%Y/Events

# Position of pv-plant http://itouchmap.com/latlong.html
# Example for Ukkel, Belgium
Latitude=50.80
Longitude=4.33

# Calculate Missing SpotValues
# If set to 1, values not provided by inverter will be calculated
# eg: Pdc1 = Idc1 * Udc1
CalculateMissingSpotValues=1

# DateTimeFormat (default %d/%m/%Y %H:%M:%S)
# For details see strftime() function
# http://www.cplusplus.com/reference/clibrary/ctime/strftime/
DateTimeFormat=%d/%m/%Y %H:%M:%S

# DateFormat (default %d/%m/%Y)
DateFormat=%d/%m/%Y

# DecimalPoint (comma/point default comma)
DecimalPoint=comma

# TimeFormat (default %H:%M:%S)
TimeFormat=%H:%M:%S

# SynchTime (default 1 = On)
# If set to 1 the Inverter time is synchronised with pc time
# Some inverters don't have a real-time clock
SynchTime=1

# SunRSOffset
# Offset to start before sunrise and end after sunset (0-3600 - default 900 seconds)
SunRSOffset=900

# Locale
# Translate Entries in CSV files
# Supported locales: de-DE;en-US;fr-FR;nl-NL;es-ES;it-IT
# Default en-US
Locale=en-US

# Timezone
# Select the right timezone in date_time_zonespec.csv
# e.g. Timezone=Europe/Brussels
Timezone=Europe/Brussels

# BTConnectRetries
# Number of Bluetooth Connection attempts (1-15; Default=10)
BTConnectRetries=10

###########################
### CSV Export Settings ###
###########################
# With CSV_* settings you can define the CSV file format

# CSV_Export (default 1 = Enabled)
# Enables or disables the CSV Export functionality
CSV_Export=1

# CSV_ExtendedHeader (default 1 = On)
# Enables or disables the SMA extended header info (8 lines)
# isep=;
# Version CSV1|Tool SBFspot|Linebreaks CR/LF|Delimiter semicolon|Decimalpoint comma|Precision 3
# etc...
# This is usefull for manual data upload to pvoutput.org
CSV_ExtendedHeader=1

# CSV_Header (default 1 = On)
# Enables or disables the CSV data header info (1 line)
# dd/MM/yyyy HH:mm:ss;kWh;kW
# This is usefull for manual data upload to pvoutput.org
# If CSV_ExtendedHeader is enabled, CSV_Header is also enabled
CSV_Header=1

# CSV_SaveZeroPower (default 1 = On)
# When enabled, daily csv files contain all data from 00:00 to 23:55
# This is usefull for manual data upload to pvoutput.org
CSV_SaveZeroPower=1

# CSV_Delimiter (comma/semicolon default semicolon)
CSV_Delimiter=semicolon

# CSV_Spot_TimeSource (Inverter|Computer default Inverter)
CSV_Spot_TimeSource=Inverter

# CSV_Spot_WebboxHeader (Default 0 = Off)
# When enabled, use Webbox style header (DcMs.Watt[A];DcMs.Watt[B]...)
CSV_Spot_WebboxHeader=0

###########################
###   SQL DB Settings   ###
###########################

# SQLite
# SQL_Database (Fullpath to SQLite DB)
# Windows: C:\Users\Public\SMAdata\SBFspot.db
# Linux  : /home/pi/smadata/SBFspot.db
SQL_Database=/home/pi/smadata/SBFspot.db

# MySQL
#SQL_Database=SBFspot
#SQL_Hostname=<Network Name> or <IP-address>
#SQL_Username=SBFspotUser
#SQL_Password=SBFspotPassword


Der WR wird auch erkannt:

Scanning ...
00:80:25:30:56:52 SMA001d STP 5000TL-20 319 SN304996319


ich kann es in FEHM auch definiren bleibt dann aber ich bekomme keine Werte:

Internals:
   ADDRESS    00:80:25:30:56:52
   CHANGED
   DEF        00:80:25:30:56:52 60

   NAME       Solar
   NR         1358
   STATE      active
   TYPE       SMAUtils
   delayCounter 0
   Readings:
Attributes:
   delay      60

Kann mir jemand helfen?
Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

micomat

kommt denn was bei rum wenn du sbfspot manuell ausfuehrst?
Synology DS218+ with fhem+iobroker in docker, 2x RasPi w. ser2net, CUL433+868, IT, EGPM2LAN, THZ/LWZ, FB_Callmonitor, HMS100TF, Homematic, 2x TX3-TH, Pushover, USB-IR-SML-Head, SONOS, GHoma, MBus, KLF200

noanda

Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

noanda

ich glaube ich habe es gefunden :-)

im logfile steht:
2016.03.08 16:12:16 1: PERL WARNING: Can't exec "/opt/fhem/smaspot/bin/Release/SMAspot": No such file or directory at ./FHEM/99_SMAUtils.pm line 293.
2016.03.08 16:12:16 3: SMAspot called


gehe mal dvon aus das ich den Pfad im Modul ändern sollte. oder die Datei in den Pfad :
Zitat/opt/fhem/smaspot/bin/Release/SMAspot
Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

Muschelpuster

Jo, kann ich bestätigen. Danach habe ich auch gesucht und dachte eigentlich das hier gepostet zu haben. Meine soeben durchgeführte Suche belehrte mich eines Besseren.

leidgeprüfte Grüße
Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

noanda

Hast du das Modul geändert oder die Datiene verschoben ? Was ist besser ?
Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

Muschelpuster

Ob besser oder nicht - ich habe das Modul geändert  8)

geänderte Grüße
Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

noanda

So sorry aber habe da noch ein Problem habe beide Wege versucht, ich bekomme immer die selbe Fehlermeldung:

2016.03.09 00:12:58 1: PERL WARNING: Can't exec "/opt/fhem/smaspot/bin/Release/SMAspot": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 00:12:58 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 00:12:58 3: SMAspot called


Dabei müssten die Rechte nach:

Zitatsudo chown -R fhem /opt/fhem/smaspot/bin/Release/SMAspot

eigentlich da sein.

Jemand eine idee?
Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

Muschelpuster

Also bei mir steht das unter /opt/fhem/FHEM/sbfspot/bin/Release. Die Dateien und Verzeichnisse sind in der Gruppe fhem und der Owner ist root.

Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

noanda

Also irgendwie bekomme ich das nicht ans laufen!

habe jetzt sogar (als test) die Rechte im prinzip aufgehoben...

sudo chmod -R 777 /opt/fhem/FHEM/sbfspot/bin/Release


ich habe den Pfad auch im Modul angepasst:

Zitatsub
Get_Inverterdata
{
my $ret = "";
$ret .= qx( /opt/fhem/FHEM/sbfspot/bin/Release/ -nocsv -v );

# Log 3, "Inverter returned: $ret";
Log 3, "SMAspot called";

return $ret;
}

ich bekomme immer noch die Meldung:

2016.03.09 20:46:45 1: PERL WARNING: Can't exec "/opt/fhem/FHEM/sbfspot/bin/Release/": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 20:46:45 3: SMAspot called


Die Datei SBFspot.cfg ist aber definitiv in diesem Verzeichnis.

Kannst Du eventuel mal deine 99_SMA hier anhängen? würde das gern mal sehen
Raspberry Pi - FHEM 5.5
HMLAN, RFXtrx433 , CUL 868
HM-CC-RT-DN, HM-SEC-MDIR , HM-SEC-SC-2
HM-LC-SW2-FM, ROTO_ZEL-STG-RM-FZS
ELRO440AB, Flamingo

Muschelpuster

Das hat aber IMHO auch nichts mit der Konfig zu tun.
Zitat von: noanda am 09 März 2016, 20:55:442016.03.09 20:46:45 1: PERL WARNING: Can't exec "/opt/fhem/FHEM/sbfspot/bin/Release/": Permission denied at ./FHEM/99_SMAUtils.pm line 293.
2016.03.09 20:46:45 3: SMAspot called
JDas glaube ich gerne, aber Du versuchst gerade ein Verzeichnis auszuführen!?
Richtig wäre doch:$ret .= qx( /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot -nocsv -v );
So steht es auch bei mir drin (s.Anhang).
Interessant ist immer erst einmal den Befehl von der Konsole zu starten, dann muss schon mal was kommen.

kleinliche Grüße
Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

MC_Fhem

Hallo Noanda,

versuche ebenfalls seit einiger Zeit meine zwei WR über BT auszulesen und erhalte die gleiche Fehlermeldung:

2016.10.07 03:21:12 3: SMAspot called
2016.10.07 03:31:12 1: PERL WARNING: Can't exec "/opt/fhem/FHEM/sbfspot/bin/Release/SBFspot": Permission denied at ./FHEM/99_SMAUtils.pm line 299.


Den Ansatz von Muschelpuste hat mich nicht weitergebracht.
Hast du eine Lösung gefunden?

Grüße Toni

Muschelpuster

#12
Poste doch mal ein ls -l /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot Ich vermute doch ganz stark, dass die Dateien und Ordner dem falschen Benutzer und der falschen Gruppe zugeordnet sind.
Wiki empfiehlt hier, wie es oben auch stehtsudo chown -R fhem /opt/fhem/FHEM/sbfspothttp://www.fhemwiki.de/wiki/SMAWechselrichter

unberechtigte Grüße
Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF

MC_Fhem

Hallo Muschelpuster,

danke für die schnelle Antwort.

eigentlich sollte ich alles nach Wiki eingegeben haben. Aber machmal sieht man vor lauter Bäume den Wald nicht mehr.

Hier das Ergebnis von "ls -l /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot":



pi@raspberrypi ~ $ ls -l /opt/fhem/FHEM/sbfspot/bin/Release/SBFspot
insgesamt 1964
-rw-r--r-- 1 fhem pi  15984 Apr  1  2016 ArchData.cpp
-rw-r--r-- 1 fhem pi   2155 Aug  3  2015 ArchData.h
drwxrwxrwx 3 fhem pi   4096 Okt  6 12:17 bin
-rw-r--r-- 1 fhem pi  11202 Dez 21  2014 Bluetooth.cpp
-rw-r--r-- 1 fhem pi   3160 Aug 20  2014 bluetooth.h
-rw-r--r-- 1 fhem pi   2061 Aug 15  2015 boost_ext.cpp
-rw-r--r-- 1 fhem pi   1761 Aug 15  2015 boost_ext.h
-rw-r--r-- 1 fhem pi   6391 Mai 31 22:56 CreateMySQLDB.sql
-rw-r--r-- 1 fhem pi    203 Aug 20  2014 CreateMySQLUser.sql
-rw-r--r-- 1 fhem pi   5921 Sep 22  2014 CreateSQLiteDB.sql
-rw-r--r-- 1 fhem pi  43737 Feb 28  2016 CSVexport.cpp
-rw-r--r-- 1 fhem pi   2559 Aug 20  2014 CSVexport.h
-rw-r--r-- 1 fhem pi  35855 Aug 20  2014 date_time_zonespec.csv
-rw-r--r-- 1 fhem pi   9882 Feb 28  2016 db_MySQL.cpp
-rw-r--r-- 1 fhem pi  12883 Apr  4  2016 db_MySQL_Export.cpp
-rw-r--r-- 1 fhem pi   1903 Aug 20  2014 db_MySQL_Export.h
-rw-r--r-- 1 fhem pi   3887 Aug  3  2015 db_MySQL.h
-rw-r--r-- 1 fhem pi  11984 Feb 28  2016 db_SQLite.cpp
-rw-r--r-- 1 fhem pi  10104 Apr  4  2016 db_SQLite_Export.cpp
-rw-r--r-- 1 fhem pi   1906 Aug 20  2014 db_SQLite_Export.h
-rw-r--r-- 1 fhem pi   3919 Aug  3  2015 db_SQLite.h
-rw-r--r-- 1 fhem pi   2065 Apr 25  2015 endianness.h
-rw-r--r-- 1 fhem pi   6234 Mär  2  2016 Ethernet.cpp
-rw-r--r-- 1 fhem pi   2675 Aug 20  2014 Ethernet.h
-rw-r--r-- 1 fhem pi   2493 Feb 28  2016 EventData.cpp
-rw-r--r-- 1 fhem pi   4482 Feb 24  2015 EventData.h
-rw-r--r-- 1 fhem pi  12089 Feb 28  2016 makefile
-rw-r--r-- 1 fhem pi   6509 Feb 28  2016 misc.cpp
-rw-r--r-- 1 fhem pi   2631 Feb 28  2016 misc.h
drwxrwxrwx 3 fhem pi   4096 Okt  6 12:17 obj
-rw-r--r-- 1 fhem pi   2252 Feb 28  2016 oslinux.h
-rw-r--r-- 1 fhem pi   1726 Aug 20  2014 osselect.h
-rw-r--r-- 1 fhem pi   2550 Feb 28  2016 oswindows.h
-rw-r--r-- 1 fhem pi   3146 Aug  3  2015 Rec40S32.h
-rw-r--r-- 1 fhem pi   9798 Feb 28  2016 SBFNet.cpp
-rw-r--r-- 1 fhem pi   2982 Jul 30  2015 SBFNet.h
-rwxrwxrwx 1 fhem pi 244639 Mär 25  2016 SBFspot
-rw-r--r-- 1 fhem pi   5708 Feb 28  2016 SBFspot.cbp
-rwxrwxrwx 1 fhem pi   5976 Okt  6 12:42 SBFspot.cfg
-rw-r--r-- 1 fhem pi 118611 Mai 31 23:01 SBFspot.cpp
-rw-r--r-- 1 fhem pi  23552 Jul 11  2014 SBFspot_Empty.db
-rw-r--r-- 1 fhem pi  20102 Mai 20 22:22 SBFspot.h
-rw-r--r-- 1 fhem pi  22926 Feb 28  2016 SBFspot.vcxproj
-rw-r--r-- 1 fhem pi   5963 Feb 28  2016 SBFspot.vcxproj.filters
-rw-r--r-- 1 fhem pi   1730 Aug 20  2014 SQLselect.h
-rw-r--r-- 1 fhem pi  12335 Aug 20  2014 strptime.cpp
-rw-r--r-- 1 fhem pi   6241 Feb 28  2016 sunrise_sunset.cpp
-rw-r--r-- 1 fhem pi   1927 Feb 28  2016 sunrise_sunset.h
-rw-r--r-- 1 fhem pi   4559 Feb 28  2016 TagDefs.cpp
-rw-r--r-- 1 fhem pi   3425 Aug 20  2014 TagDefs.h
-rw-r--r-- 1 fhem pi 194295 Jul 13  2015 TagListDE-DE.txt
-rw-r--r-- 1 fhem pi 186428 Jul 13  2015 TagListEN-US.txt
-rw-r--r-- 1 fhem pi 196725 Jul 13  2015 TagListES-ES.txt
-rw-r--r-- 1 fhem pi 200214 Jul 13  2015 TagListFR-FR.txt
-rw-r--r-- 1 fhem pi 194914 Jul 13  2015 TagListIT-IT.txt
-rw-r--r-- 1 fhem pi 189000 Jul 13  2015 TagListNL-NL.txt
-rw-r--r-- 1 fhem pi    296 Sep  9  2014 Update_300_301_MySQL.sql
-rw-r--r-- 1 fhem pi    277 Sep  9  2014 Update_300_301_SQLite.sql
-rw-r--r-- 1 fhem pi    967 Sep 22  2014 Update_30x_302_MySQL.sql
-rw-r--r-- 1 fhem pi   1007 Sep 22  2014 Update_30x_302_SQLite.sql

Freue mich auf weitere Unterstützung.
Grüße Toni

Muschelpuster

Mhh, ich denke der Owner FHEM sollte reichen. Bei mir steht die Gruppe noch auf dialout. Es wäre ja mal einen Versuch wert, mit chgrp dies zu ändern.

versuchte Grüße
Niels
fhem @ ZBOX mit 1,6MHz Celeron, 4GB RAM & 120GB SSD mit Debian Bullseye # MiLight # Homematic via CCU3 # W&T WebIO # Rademacher DuoFern # ESPeasy # logdb@mysql # configdb@mysql # Shelly @ MQTT2 # go-eCharger mit PV-Überschussladung via DOIF