Daten nicht zu lokalen InfluxDB gesendet

Wenn mehr als ein Gerät an den Raspberry angeschlossen werden sollen. Z.B. ein Regler und ein Wechselrichter oder mehrere Wechselrichter. Das Maximum sind 6 Geräte pro Raspberry Pi.

Moderator: Ulrich

Antworten
Luckydevil
Beiträge: 15
Registriert: Mi 5. Mai 2021, 16:10
Wohnort: Zentralschweiz
Hat sich bedankt: 8 Mal

Daten nicht zu lokalen InfluxDB gesendet

Beitrag von Luckydevil »

Ich habe auf die Multiregler Version gewechselt.
1.user.config Wecheslrichter --> funktioniert einwandfrei
2.user.config Shelly 2.5 --> über die Automation Testbutton lassen sich beide Kontakte steuern

Problem:
Über das Dashboard Shelly kann ich die beiden Kontakte nicht manuell steuern. Liegt wohl daran (Ziemlich am Schluss steht: "Daten nicht zur lokalen InfluxDB gesendet!), hier die Logdatei:

Code: Alles auswählen

14.05. 20:53:16    -Multi Regler Auslesen [Start].
14.05. 20:53:16    -Verarbeitung von: '1.user.config.php'   Regler: 16
14.05. 20:53:16 |----------------   Start  solaredge_serie.php    ---------------.
14.05. 20:53:16 o  -Hardware Version: 4B
14.05. 20:53:16 +  -40000: 0001000000f70103f453756e5300010041536f6c6172456467652000000000000000000000000000000000000000000000534531374b2d5257303030424e4e34000000000000000000000000
14.05. 20:53:16    -AC_Leistung: 0
14.05. 20:53:16    -DC_Leistung: 0
14.05. 20:53:16    -PV_Leistung: 0
14.05. 20:53:16    -Bezug/+Einspeisung: -1118
14.05. 20:53:16    -Verbrauch: 1118
14.05. 20:53:16    -MQTT Daten zum [ localhost ] senden.
14.05. 20:53:16 *  -Daten zur lokalen InfluxDB [ solaranzeige1 ] gesendet..
14.05. 20:53:16    -Multi-Regler-Ausgang. 7
14.05. 20:53:17 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
14.05. 20:53:23    -WattstundenGesamtHeute: 82860.2
14.05. 20:53:23 |----------------   Stop   solaredge_serie.php    ---------------.
14.05. 20:53:23    -Verarbeitung von: '2.user.config.php'   Regler: 23
14.05. 20:53:23 |----------------   Start  sonoff_mqtt.php    ---------------------.
14.05. 20:53:23    -Zentraler Timestamp: 1621018396
14.05. 20:53:23 +  -Die Daten werden ausgelesen...
14.05. 20:53:29    -Keine Daten vom Sonoff Modul empfangen.
14.05. 20:53:29 !! -Keine gültigen Daten empfangen.
14.05. 20:53:29 |----------------   Stop   sonoff_mqtt.php     --------------------.
14.05. 20:53:29    -Multi Regler Auslesen [Stop].

14.05. 20:54:01    -Multi Regler Auslesen [Start].
14.05. 20:54:01    -Verarbeitung von: '1.user.config.php'   Regler: 16
14.05. 20:54:01 |----------------   Start  solaredge_serie.php    ---------------.
14.05. 20:54:01 o  -Hardware Version: 4B
14.05. 20:54:01 +  -40000: 0001000000f70103f453756e5300010041536f6c6172456467652000000000000000000000000000000000000000000000534531374b2d5257303030424e4e34000000000000000000000000
14.05. 20:54:01    -AC_Leistung: 0
14.05. 20:54:01    -DC_Leistung: 0
14.05. 20:54:01    -PV_Leistung: 0
14.05. 20:54:01    -Bezug/+Einspeisung: -1107
14.05. 20:54:01    -Verbrauch: 1107
14.05. 20:54:01    -MQTT Daten zum [ localhost ] senden.
14.05. 20:54:01 *  -Daten zur lokalen InfluxDB [ solaranzeige1 ] gesendet..
14.05. 20:54:01    -Multi-Regler-Ausgang. 7
14.05. 20:54:02 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
14.05. 20:54:08    -WattstundenGesamtHeute: 82860.2
14.05. 20:54:08 |----------------   Stop   solaredge_serie.php    ---------------.
14.05. 20:54:08    -Verarbeitung von: '2.user.config.php'   Regler: 23
14.05. 20:54:08 |----------------   Start  sonoff_mqtt.php    ---------------------.
14.05. 20:54:08    -Zentraler Timestamp: 1621018441
14.05. 20:54:08 +  -Die Daten werden ausgelesen...
14.05. 20:54:14    -Das Relais ist ein Shelly 2.5, SP111 oder ein SP211. Tasmota Modul Nr: 0
14.05. 20:54:14    -MQTT Daten zum [ localhost ] senden.
14.05. 20:54:14    -InfluxDB  => [ AC Spannung=0,Strom=,Leistung=,Scheinleistung=,Blindleistung=  1621018451
Service Status="Online",Temperatur=55.1,Powerstatus1=0,Powerstatus2=0,Powerstatus=0  1621018451
Summen Wh_Heute=0,Wh_Gesamt=0  1621018451
 ]
14.05. 20:54:14    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=solaranzeige2&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 426,
  'request_size' => 370,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.011924,
  'namelookup_time' => 0.001054,
  'connect_time' => 0.001419,
  'pretransfer_time' => 0.001633,
  'size_upload' => 212.0,
  'size_download' => 153.0,
  'speed_download' => 13909.0,
  'speed_upload' => 19272.0,
  'download_content_length' => 153.0,
  'upload_content_length' => 212.0,
  'starttransfer_time' => 0.011845,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' =>.
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 48002,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 1419,
  'namelookup_time_us' => 1054,
  'pretransfer_time_us' => 1633,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 11845,
  'total_time_us' => 11924,
)
14.05. 20:54:14 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
14.05. 20:54:19    -InfluxDB  => [ AC Spannung=0,Strom=,Leistung=,Scheinleistung=,Blindleistung=  1621018451
Service Status="Online",Temperatur=55.1,Powerstatus1=0,Powerstatus2=0,Powerstatus=0  1621018451
Summen Wh_Heute=0,Wh_Gesamt=0  1621018451
 ]
14.05. 20:54:19    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=solaranzeige2&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 426,
  'request_size' => 370,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.008288,
  'namelookup_time' => 7.6E-5,
  'connect_time' => 7.7E-5,
  'pretransfer_time' => 0.000187,
  'size_upload' => 212.0,
  'size_download' => 153.0,
  'speed_download' => 19125.0,
  'speed_upload' => 26500.0,
  'download_content_length' => 153.0,
  'upload_content_length' => 212.0,
  'starttransfer_time' => 0.008241,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' =>.
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 48002,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 77,
  'connect_time_us' => 77,
  'namelookup_time_us' => 76,
  'pretransfer_time_us' => 187,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 8241,
  'total_time_us' => 8288,
)
14.05. 20:54:24    -Multi-Regler-Ausgang. -7
14.05. 20:54:24    -OK. Datenübertragung erfolgreich.
14.05. 20:54:24 |----------------   Stop   sonoff_mqtt.php     --------------------.
14.05. 20:54:24    -Multi Regler Auslesen [Stop].
Ich habe diverse Beiträge gelesen, diverse verschiedene Einstellungen gemacht, aber ich krieg es einfach nicht hin.
DB solaranzeige2 hab ich erfolgreich in InfluxDB verbunden
Was mache ich falsch?

Unsicherheiten:
- 2.user.config --> mgtt 'true' oder 'false'? (in 1.user.config = true)
- 2.user.config --> $WR_IP = "192.168... (Ip des Raspi gesetzt)"; $WR_Port = "1883"; $WR_Adresse = ""; (Passt das so?)
- 2.user.config --> $USBDevice = "Ethernet"; (Korrekt?)
- 2.user.config --> $MQTTTopic[1] = "solaranzeige/befehl/2/#"; und $MQTTTopic[1] = "solaranzeige/anzeige/2/#"; (Stimmt das?)

Grafana Shelly Dashboard --> <a href="http://solaranzeige.local/sonoff_mqtt_s ... e"><button style="background: #00FF00; color: black; width: 95%; margin: 1px; margin-bottom: 5px;">Relais 2 EIN/AUS</button></a> (Mich irritiert das sonoff_mqtt_senden, stimmt das?)

Hoffe, ich hab alle wichtigen Infos zusammengetragen und hoffe auf eure Unterstützung, vielen Dank im Voraus.
Solaredge 17K, Heizstab, WP-Pool über Shelly 2.5 und 1, Wallbox Keba P30 c-serie (alles im Aufbau)

Benutzeravatar
Ulrich
Administrator
Beiträge: 5503
Registriert: Sa 7. Nov 2015, 10:33
Wohnort: Essen
Hat sich bedankt: 152 Mal
Danksagung erhalten: 875 Mal
Kontaktdaten:

Re: Daten nicht zu lokalen InfluxDB gesendet

Beitrag von Ulrich »

Gehe der Reihe nach vor. Der erste Fehler der auffält ist:

Code: Alles auswählen

AC Spannung=0,Strom=,Leistung=,Scheinleistung=,Blindleistung=  
Es sollen die Werte Spannung, Strom, Leistung, Schaeinleistung und Blindleistung in das Measurement AC geschrieben werden, aber alle Werte fehlen.

Setze einmal beim Script sonoff_mqtt.php vorübergehend den Tracelevel auf 8 oder 9 und schaue dann einmal in die LOG Datei. /var/www/log/solaranzeige.log und lese dir einmal diesen Beitrag durch:
viewtopic.php?f=4&t=427
-----------------------------------------------------
Ulrich . . . . . . . . [Projekt Administrator]

Luckydevil
Beiträge: 15
Registriert: Mi 5. Mai 2021, 16:10
Wohnort: Zentralschweiz
Hat sich bedankt: 8 Mal

Re: Daten nicht zu lokalen InfluxDB gesendet

Beitrag von Luckydevil »

Hallo Ulrich,
also ich hab Tracelevel auf 9 gestellt.

Code: Alles auswählen

15.05. 09:39:40    -Multi-Regler-Ausgang. -7
15.05. 09:39:40    -OK. Datenübertragung erfolgreich.
15.05. 09:39:40 |----------------   Stop   sonoff_mqtt.php     --------------------.
15.05. 09:39:40    -Multi Regler Auslesen [Stop].

15.05. 09:40:01    -Multi Regler Auslesen [Start].
15.05. 09:40:01    -Verarbeitung von: '1.user.config.php'   Regler: 16
15.05. 09:40:01 |----------------   Start  solaredge_serie.php    ---------------.
15.05. 09:40:01 o  -Hardware Version: 4B
15.05. 09:40:01 +  -40000: 0001000000f70103f453756e5300010041536f6c6172456467652000000000000000000000000000000000000000000000534531374b2d5257303030424e4e34000000000000000000000000
15.05. 09:40:01    -AC_Leistung: 7086
15.05. 09:40:01    -DC_Leistung: 7193
15.05. 09:40:01    -PV_Leistung: 7193
15.05. 09:40:01    -Bezug/+Einspeisung: 4382
15.05. 09:40:01    -Verbrauch: 2704
15.05. 09:40:01    -MQTT Daten zum [ localhost ] senden.
15.05. 09:40:01    -Alle 10 Minuten werden die Statistikdaten übertragen.
15.05. 09:40:01 *  -Daten zur lokalen InfluxDB [ solaranzeige1 ] gesendet..
15.05. 09:40:01    -Multi-Regler-Ausgang. 7
15.05. 09:40:01 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
15.05. 09:40:08    -WattstundenGesamtHeute: 12542.8
15.05. 09:40:08 |----------------   Stop   solaredge_serie.php    ---------------.
15.05. 09:40:08    -Verarbeitung von: '2.user.config.php'   Regler: 23
15.05. 09:40:08 |----------------   Start  sonoff_mqtt.php    ---------------------.
15.05. 09:40:08    -Zentraler Timestamp: 1621064401
15.05. 09:40:08 o  -Hardware Version:.
15.05. 09:40:08 +  -Die Daten werden ausgelesen...
15.05. 09:40:08    -Topic: tele/kellerA/LWT
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Befehl gesendet: cmnd/kellerA/status Wert: 0
15.05. 09:40:08    -Topic: tele/kellerA/LWT
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:08    -StatusSNS Topic
15.05. 09:40:08    -Anzahl: 2
15.05. 09:40:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 09:40:09 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
...usw....
15.05. 09:40:14    -SonoffModul: 0
15.05. 09:40:14    -Firmware: 9.4.0(tasmota)
15.05. 09:40:14    -Das Relais ist ein Shelly 2.5, SP111 oder ein SP211. Tasmota Modul Nr: 0
15.05. 09:40:14    -array (
  'Status' => 'Online',
  'Period' => '0',
  'Powerstatus' => '0',
  'Temperatur' => 41.9,
  'Powerstatus0' => '0',
  'Powerstatus1' => '0',
  'zentralerTimestamp' => 1621064411,
  'SonoffModul' => 0,
  'DeviceName' => 'kellerA',
  'Produkt' => '9.4.0(tasmota)',
  'AC_Spannung' => 0,
  'TotalStartTime' => '2021-05-12T20:59:35',
  'WattstundenGesamt' => 0.0,
  'WattstundenGesamtHeute' => 0.0,
  'WattstundenGesamtGestern' => 0.0,
  'AC_Frequenz' => 0,
  'AC_Strom0' => 0.0,
  'AC_Leistung0' => 0,
  'AC_Scheinleistung0' => 0,
  'AC_Blindleistung0' => 0,
  'AC_Strom1' => 0.0,
  'AC_Leistung1' => 0,
  'AC_Scheinleistung1' => 0,
  'AC_Blindleistung1' => 0,
  'Masseinheit' => 'C',
  'Regler' => '23',
  'Objekt' => 'Shelly',
  'Firmware' => 0,
  'AC_Ausgangsspannung' => 0,
)
15.05. 09:40:14    -MQTT Daten zum [ localhost ] senden.
15.05. 09:40:14    -Alle 10 Minuten werden die Statistikdaten übertragen.
15.05. 09:40:14 *  -Daten zur lokalen InfluxDB  gesendet. 0 Wh
Array
(
    [url] => http://localhost/write?db=solaranzeige2&precision=s
    [content_type] => application/json
    [http_code] => 204
    [header_size] => 248
    [request_size] => 578
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.009366
    [namelookup_time] => 0.001019
    [connect_time] => 0.001374
    [pretransfer_time] => 0.001587
    [size_upload] => 420
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 46666
    [download_content_length] => 0
    [upload_content_length] => 420
    [starttransfer_time] => 0.009302
    [redirect_time] => 0
    [redirect_url] =>.
    [primary_ip] => ::1
    [certinfo] => Array
        (
        )

    [primary_port] => 8086
    [local_ip] => ::1
    [local_port] => 60374
    [http_version] => 2
    [protocol] => 1
    [ssl_verifyresult] => 0
    [scheme] => HTTP
    [appconnect_time_us] => 0
    [connect_time_us] => 1374
    [namelookup_time_us] => 1019
    [pretransfer_time_us] => 1587
    [redirect_time_us] => 0
    [starttransfer_time_us] => 9302
    [total_time_us] => 9366
)

15.05. 09:40:14    -Aktuelle Daten:.
Array
(
    [Status] => Online
    [Period] => 0
    [Powerstatus] => 0
    [Temperatur] => 41.9
    [Powerstatus0] => 0
    [Powerstatus1] => 0
    [zentralerTimestamp] => 1621064411
    [SonoffModul] => 0
    [DeviceName] => kellerA
    [Produkt] => 9.4.0(tasmota)
    [AC_Spannung] => 0
    [TotalStartTime] => 2021-05-12T20:59:35
    [WattstundenGesamt] => 0
    [WattstundenGesamtHeute] => 0
    [WattstundenGesamtGestern] => 0
    [AC_Frequenz] => 0
    [AC_Strom0] => 0
    [AC_Leistung0] => 0
    [AC_Scheinleistung0] => 0
    [AC_Blindleistung0] => 0
    [AC_Strom1] => 0
    [AC_Leistung1] => 0
    [AC_Scheinleistung1] => 0
    [AC_Blindleistung1] => 0
    [Masseinheit] => C
    [Regler] => 23
    [Objekt] => Shelly
    [Firmware] => 0
    [AC_Ausgangsspannung] => 0
    [Timestamp] => 1621064414
    [Monat] => 5
    [Woche] => 19
    [Wochentag] => Samstag
    [Datum] => 15.05.2021
    [Uhrzeit] => 09:40:14
    [InfluxAdresse] =>.
    [InfluxPort] => 8086
    [InfluxUser] =>.
    [InfluxPassword] =>.
    [InfluxDBName] => solaranzeige2
    [InfluxDaylight] =>.
    [InfluxDBLokal] => solaranzeige2
    [InfluxSSL] =>.
    [Demodaten] =>.
)

15.05. 09:40:14    -Query:.
AC Spannung=0,Strom=,Leistung=,Scheinleistung=,Blindleistung=  1621064411
Service Status="Online",Temperatur=41.9,Powerstatus1=0,Powerstatus2=0,Powerstatus=0  1621064411
Summen Wh_Heute=0,Wh_Gesamt=0  1621064411

15.05. 09:40:14    -InfluxDB  => [ AC Spannung=0,Strom=,Leistung=,Scheinleistung=,Blindleistung=  1621064411
Service Status="Online",Temperatur=41.9,Powerstatus1=0,Powerstatus2=0,Powerstatus=0  1621064411
Summen Wh_Heute=0,Wh_Gesamt=0  1621064411
 ]
15.05. 09:40:14    -Daten => [ Array
(
    [Status] => Online
    [Period] => 0
    [Powerstatus] => 0
    [Temperatur] => 41.9
    [Powerstatus0] => 0
    [Powerstatus1] => 0
    [zentralerTimestamp] => 1621064411
    [SonoffModul] => 0
    [DeviceName] => kellerA
    [Produkt] => 9.4.0(tasmota)
    [AC_Spannung] => 0
    [TotalStartTime] => 2021-05-12T20:59:35
    [WattstundenGesamt] => 0
    [WattstundenGesamtHeute] => 0
    [WattstundenGesamtGestern] => 0
    [AC_Frequenz] => 0
    [AC_Strom0] => 0
    [AC_Leistung0] => 0
    [AC_Scheinleistung0] => 0
    [AC_Blindleistung0] => 0
    [AC_Strom1] => 0
    [AC_Leistung1] => 0
    [AC_Scheinleistung1] => 0
    [AC_Blindleistung1] => 0
    [Masseinheit] => C
    [Regler] => 23
    [Objekt] => Shelly
    [Firmware] => 0
    [AC_Ausgangsspannung] => 0
    [Timestamp] => 1621064414
    [Monat] => 5
    [Woche] => 19
    [Wochentag] => Samstag
    [Datum] => 15.05.2021
    [Uhrzeit] => 09:40:14
    [InfluxAdresse] =>.
    [InfluxPort] => 8086
    [InfluxUser] =>.
    [InfluxPassword] =>.
    [InfluxDBName] => solaranzeige2
    [InfluxDaylight] =>.
    [InfluxDBLokal] => solaranzeige2
    [InfluxSSL] =>.
    [Demodaten] =>.
)
 ]
15.05. 09:40:14    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=solaranzeige2&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 426,
  'request_size' => 370,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.010097,
  'namelookup_time' => 0.000977,
  'connect_time' => 0.001326,
  'pretransfer_time' => 0.001532,
  'size_upload' => 212.0,
  'size_download' => 153.0,
  'speed_download' => 15300.0,
  'speed_upload' => 21200.0,
  'download_content_length' => 153.0,
  'upload_content_length' => 212.0,
  'starttransfer_time' => 0.010014,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' =>.
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 60376,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 1326,
  'namelookup_time_us' => 977,
  'pretransfer_time_us' => 1532,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 10014,
  'total_time_us' => 10097,
)
15.05. 09:40:14 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883

EDIT:
Nun habe ich das Topic des Shelly 2.5 auf shelly geändert. Dies bewirkt, dass ich nun in Grafana Dashboard beide Kontakte schalten kann. Yeah!
Aber: Eigentlich sollte dieser doch frei wählbar aber einfach Shelly und in der 2.user.config. identisch? Oder doch nicht? Wie nenne ich einen 2. Shelly, den ich in die Automation einbinden möchte ohne dass Konflikte entstehen?
In der 1.user.config hab ich die Datenbank von solaranzeige1 auf solaranzeige gewechsetl, dies bewirkt, dass die Automation wieder greift (mind. für den Kontakt 1 klappt dies soweit - bei Kontakt 2 fehlt die Checkbox und darum das Häkchen.)

Die Logdatei sieht nun so aus:
Dass keine Daten übertragen werden liegt wohl daran, dass ich in der Testphase noch keine Verbraucher angeschlossen habe. Aber das sollte ja nicht unbedingt die Fehler generieren, hmmm. So oder so, ich brauche die Verbrauchsanzeige nicht, da ich mit dem Shelly 2.5 nur zwei zweiter Shelly1 schalte, welche potentialfrei den Heizstab des Boilers bzw. eine Wärmepumpe für den Pool ansteuern sollen.

Code: Alles auswählen

15.05. 11:31:01    -Multi Regler Auslesen [Start].
15.05. 11:31:01    -Verarbeitung von: '1.user.config.php'   Regler: 16
15.05. 11:31:01 |----------------   Start  solaredge_serie.php    ---------------.
15.05. 11:31:01 o  -Hardware Version: 4B
15.05. 11:31:01 +  -40000: 0001000000f70103f453756e5300010041536f6c6172456467652000000000000000000000000000000000000000000000534531374b2d5257303030424e4e34000000000000000000000000
15.05. 11:31:01    -AC_Leistung: 9388
15.05. 11:31:01    -DC_Leistung: 9530
15.05. 11:31:01    -PV_Leistung: 9530
15.05. 11:31:01    -Bezug/+Einspeisung: 5245
15.05. 11:31:01    -Verbrauch: 4143
15.05. 11:31:01    -MQTT Daten zum [ localhost ] senden.
15.05. 11:31:01 *  -Daten zur lokalen InfluxDB [ solaranzeige ] gesendet..
15.05. 11:31:01    -Multi-Regler-Ausgang. 7
15.05. 11:31:02 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
15.05. 11:31:08    -WattstundenGesamtHeute: 27991
15.05. 11:31:08 |----------------   Stop   solaredge_serie.php    ---------------.
15.05. 11:31:08    -Verarbeitung von: '2.user.config.php'   Regler: 23
15.05. 11:31:08 |----------------   Start  sonoff_mqtt.php    ---------------------.
15.05. 11:31:08    -Zentraler Timestamp: 1621071061
15.05. 11:31:08 o  -Hardware Version:.
15.05. 11:31:08 +  -Die Daten werden ausgelesen...
15.05. 11:31:08    -Topic: tele/shelly/LWT
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Befehl gesendet: cmnd/shelly/status Wert: 0
15.05. 11:31:08    -Topic: tele/shelly/LWT
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:08    -StatusSNS Topic
15.05. 11:31:08    -Anzahl: 2
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
-------- usw ----------
15.05. 11:31:08 MQT-Prefix: 0 TopicPosition: 1 Payload: 2
15.05. 11:31:14    -SonoffModul: 0
15.05. 11:31:14    -Firmware: 9.4.0(tasmota)
15.05. 11:31:14    -Es handelt sich um ein Shelly 2.5 Modul Nr.: 0
15.05. 11:31:14    -array (
  'Status' => 'Online',
  'Period' => '0',
  'Powerstatus' => '1',
  'Temperatur' => 58.9,
  'Powerstatus0' => '1',
  'Powerstatus1' => '0',
  'zentralerTimestamp' => 1621071071,
  'SonoffModul' => 200,
  'DeviceName' => 'shelly',
  'Produkt' => '9.4.0(tasmota)',
  'AC_Spannung' => 241,
  'TotalStartTime' => '2021-05-12T20:59:35',
  'WattstundenGesamt' => 0.0,
  'WattstundenGesamtHeute' => 0.0,
  'WattstundenGesamtGestern' => 0.0,
  'AC_Frequenz' => 50,
  'AC_Strom0' => 0.0,
  'AC_Leistung0' => 0,
  'AC_Scheinleistung0' => 0,
  'AC_Blindleistung0' => 0,
  'AC_Strom1' => 0.0,
  'AC_Leistung1' => 0,
  'AC_Scheinleistung1' => 0,
  'AC_Blindleistung1' => 0,
  'Masseinheit' => 'C',
  'Regler' => '23',
  'Objekt' => 'shelly',
  'Firmware' => 0,
  'AC_Ausgangsspannung' => 241,
)
15.05. 11:31:14    -MQTT Daten zum [ localhost ] senden.
15.05. 11:31:14    -Aktuelle Daten:.
Array
(
    [Status] => Online
    [Period] => 0
    [Powerstatus] => 1
    [Temperatur] => 58.9
    [Powerstatus0] => 1
    [Powerstatus1] => 0
    [zentralerTimestamp] => 1621071071
    [SonoffModul] => 200
    [DeviceName] => shelly
    [Produkt] => 9.4.0(tasmota)
    [AC_Spannung] => 241
    [TotalStartTime] => 2021-05-12T20:59:35
    [WattstundenGesamt] => 0
    [WattstundenGesamtHeute] => 0
    [WattstundenGesamtGestern] => 0
    [AC_Frequenz] => 50
    [AC_Strom0] => 0
    [AC_Leistung0] => 0
    [AC_Scheinleistung0] => 0
    [AC_Blindleistung0] => 0
    [AC_Strom1] => 0
    [AC_Leistung1] => 0
    [AC_Scheinleistung1] => 0
    [AC_Blindleistung1] => 0
    [Masseinheit] => C
    [Regler] => 23
    [Objekt] => shelly
    [Firmware] => 0
    [AC_Ausgangsspannung] => 241
    [Timestamp] => 1621071074
    [Monat] => 5
    [Woche] => 19
    [Wochentag] => Samstag
    [Datum] => 15.05.2021
    [Uhrzeit] => 11:31:14
    [InfluxAdresse] =>.
    [InfluxPort] => 8086
    [InfluxUser] =>.
    [InfluxPassword] =>.
    [InfluxDBName] => solaranzeige2
    [InfluxDaylight] =>.
    [InfluxDBLokal] => solaranzeige2
    [InfluxSSL] =>.
    [Demodaten] =>.
)
15.05. 11:31:14    -Query:.
AC Spannung=241,Strom1=0,Leistung1=0,Scheinleistung1=0,Blindleistung1=0,Strom2=0,Leistung2=0,Scheinleistung2=0,Blindleistung2=0,Frequenz=50  1621071071
Service Status="Online",Temperatur=58.9,Powerstatus1=1,Powerstatus2=0,Powerstatus=1  1621071071
Summen Wh_Heute=0,Wh_Gesamt=0  1621071071

15.05. 11:31:14    -InfluxDB  => [ AC Spannung=241,Strom1=0,Leistung1=0,Scheinleistung1=0,Blindleistung1=0,Strom2=0,Leistung2=0,Scheinleistung2=0,Blindleistung2=0,Frequenz=50  162
Service Status="Online",Temperatur=58.9,Powerstatus1=1,Powerstatus2=0,Powerstatus=1  1621071071
Summen Wh_Heute=0,Wh_Gesamt=0  1621071071
 ]
15.05. 11:31:14    -Daten => [ Array
(
    [Status] => Online
    [Period] => 0
    [Powerstatus] => 1
    [Temperatur] => 58.9
    [Powerstatus0] => 1
    [Powerstatus1] => 0
    [zentralerTimestamp] => 1621071071
    [SonoffModul] => 200
    [DeviceName] => shelly
    [Produkt] => 9.4.0(tasmota)
    [AC_Spannung] => 241
    [TotalStartTime] => 2021-05-12T20:59:35
    [WattstundenGesamt] => 0
    [WattstundenGesamtHeute] => 0
    [WattstundenGesamtGestern] => 0
    [AC_Frequenz] => 50
    [AC_Strom0] => 0
    [AC_Leistung0] => 0
    [AC_Scheinleistung0] => 0
    [AC_Blindleistung0] => 0
    [AC_Strom1] => 0
    [AC_Leistung1] => 0
    [AC_Scheinleistung1] => 0
    [AC_Blindleistung1] => 0
    [Masseinheit] => C
    [Regler] => 23
    [Objekt] => shelly
    [Firmware] => 0
    [AC_Ausgangsspannung] => 241
    [Timestamp] => 1621071074
    [Monat] => 5
    [Woche] => 19
    [Wochentag] => Samstag
    [Datum] => 15.05.2021
    [Uhrzeit] => 11:31:14
    [InfluxAdresse] =>.
    [InfluxPort] => 8086
    [InfluxUser] =>.
    [InfluxPassword] =>.
    [InfluxDBName] => solaranzeige2
    [InfluxDaylight] =>.
    [InfluxDBLokal] => solaranzeige2
    [InfluxSSL] =>.
    [Demodaten] =>.
)
 ]
15.05. 11:31:14    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=solaranzeige2&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 426,
  'request_size' => 448,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.009698,
  'namelookup_time' => 0.001124,
  'connect_time' => 0.001475,
  'pretransfer_time' => 0.001686,
  'size_upload' => 290.0,
  'size_download' => 153.0,
  'speed_download' => 17000.0,
  'speed_upload' => 32222.0,
  'download_content_length' => 153.0,
  'upload_content_length' => 290.0,
  'starttransfer_time' => 0.009618,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' =>.
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 45636,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 1475,
  'namelookup_time_us' => 1124,
  'pretransfer_time_us' => 1686,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 9618,
  'total_time_us' => 9698,
)
15.05. 11:31:14 MQT-MQTT Daten zum Broker gesendet: localhost Port: 1883
15.05. 11:31:19    -InfluxDB  => [ AC Spannung=241,Strom1=0,Leistung1=0,Scheinleistung1=0,Blindleistung1=0,Strom2=0,Leistung2=0,Scheinleistung2=0,Blindleistung2=0,Frequenz=50  162
Service Status="Online",Temperatur=58.9,Powerstatus1=1,Powerstatus2=0,Powerstatus=1  1621071071
Summen Wh_Heute=0,Wh_Gesamt=0  1621071071
 ]
15.05. 11:31:19    -Daten => [ Array
(
    [Status] => Online
    [Period] => 0
    [Powerstatus] => 1
    [Temperatur] => 58.9
    [Powerstatus0] => 1
    [Powerstatus1] => 0
    [zentralerTimestamp] => 1621071071
    [SonoffModul] => 200
    [DeviceName] => shelly
    [Produkt] => 9.4.0(tasmota)
    [AC_Spannung] => 241
    [TotalStartTime] => 2021-05-12T20:59:35
    [WattstundenGesamt] => 0
    [WattstundenGesamtHeute] => 0
    [WattstundenGesamtGestern] => 0
    [AC_Frequenz] => 50
    [AC_Strom0] => 0
    [AC_Leistung0] => 0
    [AC_Scheinleistung0] => 0
    [AC_Blindleistung0] => 0
    [AC_Strom1] => 0
    [AC_Leistung1] => 0
    [AC_Scheinleistung1] => 0
    [AC_Blindleistung1] => 0
    [Masseinheit] => C
    [Regler] => 23
    [Objekt] => shelly
    [Firmware] => 0
    [AC_Ausgangsspannung] => 241
    [Timestamp] => 1621071074
    [Monat] => 5
    [Woche] => 19
    [Wochentag] => Samstag
    [Datum] => 15.05.2021
    [Uhrzeit] => 11:31:14
    [InfluxAdresse] =>.
    [InfluxPort] => 8086
    [InfluxUser] =>.
    [InfluxPassword] =>.
    [InfluxDBName] => solaranzeige2
    [InfluxDaylight] =>.
    [InfluxDBLokal] => solaranzeige2
    [InfluxSSL] =>.
    [Demodaten] =>.
)
 ]
15.05. 11:31:19    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=solaranzeige2&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 426,
  'request_size' => 448,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.013885,
  'namelookup_time' => 0.000113,
  'connect_time' => 0.000116,
  'pretransfer_time' => 0.00036,
  'size_upload' => 290.0,
  'size_download' => 153.0,
  'speed_download' => 11769.0,
  'speed_upload' => 22307.0,
  'download_content_length' => 153.0,
  'upload_content_length' => 290.0,
  'starttransfer_time' => 0.013804,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' =>.
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 45636,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 118,
  'connect_time_us' => 116,
  'namelookup_time_us' => 113,
  'pretransfer_time_us' => 360,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 13804,
  'total_time_us' => 13885,
)
15.05. 11:31:24    -Multi-Regler-Ausgang. -7
15.05. 11:31:24    -OK. Datenübertragung erfolgreich.
15.05. 11:31:24 |----------------   Stop   sonoff_mqtt.php     --------------------.
15.05. 11:31:24    -Multi Regler Auslesen [Stop].A
Ein kleiner Schritt weiter, aber nun am Ende meines Lateins.
Hoffe du oder sonst jemand kann mir helfen. DANKE!
Solaredge 17K, Heizstab, WP-Pool über Shelly 2.5 und 1, Wallbox Keba P30 c-serie (alles im Aufbau)

Antworten

Zurück zu „Multi-Regler-Version [ bis zu 6 Geräten an einem Raspberry Pi ]“