Hallo Ulrich,
ich hab das gleiche Problem. Folgende Measurements hab ich in der Datenbank:
- Info
- Statistik
Ich hab einen Sonoff TH16 mit Temperatursensor im Einsatz. Muss ich wegen dem "Device Name" was beachten wie z.B. bei den anderen Sonoff Geräten?
Hier mal ein Auszug aus dem solaranzeige.log:
17.11. 07:51:07 -Verarbeitung von: '2.user.config.php' Regler: 23
17.11. 07:51:07 |---------------- Start sonoff_mqtt.php ---------------------
17.11. 07:51:07 -Zentraler Timestamp: 1668667861
17.11. 07:51:07 + -Die Daten werden ausgelesen...
17.11. 07:51:07 -Es handelt sich um ein Sonoff TH10 / TH16 Modul Nr.: 4 Firmware: 12.2.0(tasmota)
17.11. 07:51:07 *- -Array
(
[Status] => Online
[Period] => 0
[Powerstatus] => 0
[Temperatur] => 0
[Powerstatus0] => 0
[Powerstatus1] => 0
[Sensor] => 0
[zentralerTimestamp] => 1668667871
[AC_Frequenz] => 0
[SonoffModul] => 4
[DeviceName] => Puffer
[Produkt] => 12.2.0(tasmota)
[Hardware] => ESP8266EX
[Hostname] => Sonoff2-5266
[Regler] => 23
[Objekt] => Pufferspeicher
[Firmware] => 0
[WattstundenGesamtHeute] => 0
[Timestamp] => 1668667867
[Monat] => 11
[Woche] => 46
[Wochentag] => Donnerstag
[Datum] => 17.11.2022
[Uhrzeit] => 07:51:07
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige1
[InfluxSSL] =>
[Demodaten] =>
)
17.11. 07:51:07 -InfluxDB => [ Info Firmware=0,Produkt="12.2.0(tasmota)",Objekt="Pufferspeicher",Datum="17.11.2022" 1668667871
Service Status="Online",Temperatur=0,Masseinheit="",Luftfeuchte=,Powerstatus=0 1668667871
]
17.11. 07:51:07 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => '
http://localhost/write?db=solaranzeige1&precision=s',
'content_type' => 'application/json',
'http_code' => 400,
'header_size' => 445,
'request_size' => 346,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.073129,
'namelookup_time' => 0.001332,
'connect_time' => 0.001672,
'pretransfer_time' => 0.001863,
'size_upload' => 188.0,
'size_download' => 171.0,
'speed_download' => 2342.0,
'speed_upload' => 2575.0,
'download_content_length' => 171.0,
'upload_content_length' => 188.0,
'starttransfer_time' => 0.07305,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 33182,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 0,
'connect_time_us' => 1672,
'namelookup_time_us' => 1332,
'pretransfer_time_us' => 1863,
'redirect_time_us' => 0,
'starttransfer_time_us' => 73050,
'total_time_us' => 73129,
)
17.11. 07:51:12 -InfluxDB => [ Info Firmware=0,Produkt="12.2.0(tasmota)",Objekt="Pufferspeicher",Datum="17.11.2022" 1668667871
Service Status="Online",Temperatur=0,Masseinheit="",Luftfeuchte=,Powerstatus=0 1668667871
]
17.11. 07:51:12 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => '
http://localhost/write?db=solaranzeige1&precision=s',
'content_type' => 'application/json',
'http_code' => 400,
'header_size' => 445,
'request_size' => 346,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.07736,
'namelookup_time' => 0.000127,
'connect_time' => 0.000129,
'pretransfer_time' => 0.000391,
'size_upload' => 188.0,
'size_download' => 171.0,
'speed_download' => 2220.0,
'speed_upload' => 2441.0,
'download_content_length' => 171.0,
'upload_content_length' => 188.0,
'starttransfer_time' => 0.077271,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 33182,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 131,
'connect_time_us' => 129,
'namelookup_time_us' => 127,
'pretransfer_time_us' => 391,
'redirect_time_us' => 0,
'starttransfer_time_us' => 77271,
'total_time_us' => 77360,
)
17.11. 07:51:17 -Multi-Regler-Ausgang. -1
17.11. 07:51:17 -OK. Datenübertragung erfolgreich.
17.11. 07:51:17 |---------------- Stop sonoff_mqtt.php --------------------
Und hier die passende 2.user.config.php dazu:
Gruß Udo