Problem mit MySensors und DHT22

Begonnen von MarvinLu, 27 November 2018, 19:14:42

Vorheriges Thema - Nächstes Thema

Beta-User

Zitat von: MarvinLu am 28 November 2018, 12:14:29
Beantwortet das deine Frage auch?
Ist geklärt und im Wiki verarbeitet.
ZitatMit diesem Fehler beschäftige ich mich dann ein anderes Mal  :D
Ungültige Version '1.04' für Bibliothek in: C:\Program Files (x86)\Arduino\libraries\UIPEthernet

Soweit ich das beurteilen kann, ist das nichts, was mit MySensors zu tun hat und die Nutzbarkeit der Node beeinträchtigt.
Könnte aber sein, dass das WiFi-GW das benötigt (wie gesagt, selbst bevorzuge ich serielle GW's).

ZitatVielen lieben Dank für den super Support!!
Von meiner Seite: immer wieder gerne!
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

Zitat von: Beta-User am 28 November 2018, 13:49:50
Ist geklärt und im Wiki verarbeitet.Soweit ich das beurteilen kann, ist das nichts, was mit MySensors zu tun hat und die Nutzbarkeit der Node beeinträchtigt.
Könnte aber sein, dass das WiFi-GW das benötigt (wie gesagt, selbst bevorzuge ich serielle GW's).
Von meiner Seite: immer wieder gerne!

Was genau das bewirkt, weiß ich nicht. Aber den Fehler habe ich behoben (siehe letzter Beitrag).

Liebe Grüße, Marvin

Beta-User

#32
Ah ok, die Änderung hatte ich noch nicht gesehen.

Da geht es um Netzwerkfunktionalität, klingd danach, als würde der ESP das benötigen.

Hattest du zuerst nachgesehen, ob sich das über den Library Manager aktualisieren hätte lassen? Soweit das möglich ist, wäre das der "recommended way". Ansonsten ist man bei Inkosistenzen recht schnell alleingelassen...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

Ja hatte ich versucht, allerdings wurde mir das da nicht angezeigt.

MarvinLu

Leider war es das noch nicht mit mir.. Ich kann nicht ganz nachvollziehen was hier passiert..

Der serielle Monitor des Gateways sagt das hier:
pm open,type:2 0
33000 TSF:MSG:READ,10-10-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
15:26:41.393 -> 33061 TSF:MSG:BC
15:26:41.428 -> 33078 TSF:MSG:FPAR REQ,ID=10
15:26:41.428 -> 33109 TSF:PNG:SEND,TO=0
33134 TSF:CKU:OK
15:26:41.463 -> 33152 TSF:MSG:GWL OK
33582 TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
34783 GWT:TSA:C=0,CONNECTED
34814 GWT:RFC:C=0,MSG=0;0;3;0;2;
35048 TSF:MSG:READ,10-10-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
15:26:43.411 -> 35109 TSF:MSG:PINGED,ID=10,HP=1
35149 TSF:MSG:SEND,0-0-10-10,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
36660 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.3
42176 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
42238 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
44945 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
47708 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
50470 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
72487 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
77999 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
78061 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
80769 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
80831 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
83542 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
83604 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
86313 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
86375 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
116583 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
15:28:04.974 -> 116646 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
135851 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
146861 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
146924 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
157880 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
177139 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
185399 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.0
190910 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
207418 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
221180 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
226690 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2
229451 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.1
237711 TSF:MSG:READ,10-10-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8
245971 TSF:MSG:READ,10-10-0,s=0,c=1,t=1,pt=7,l=5,sg=0:37.2


Sieht für mich erstmal gut aus, zumindest so als würden Gateway und Sensor miteinander kommunizieren.

Dann habe ich das Gateway in Fhem eingerichtet:
Internals:
   DEF        192.168.188.30:5003
   DeviceName 192.168.188.30:5003
   FD         20
   NAME       MySensorGateway
   NOTIFYDEV  global
   NR         53
   NTFY_ORDER 50-MySensorGateway
   PARTIAL   
   STATE      startup complete
   TYPE       MYSENSORS
   ack        1
   inclusion-mode 1
   outstandingAck 0
   version    2.3.0
   READINGS:
     2018-11-28 15:26:43   connection      startup complete
     2018-11-28 15:26:43   state           opened
   messagesForRadioId:
     0:
       lastseen   -1
       nexttry    -1
       numtries   1
       messages:
Attributes:
   autocreate 1
   first-sensorid 0
   requestAck 1
   room       mySensors
   stateFormat connection


Nach ein oder zwei Minuten wurde dann auch der Sensor erkannt:
Internals:
   DEF        0
   IODev      MySensorGateway
   NAME       MYSENSOR_0
   NR         54
   STATE      ???
   TYPE       MYSENSORS_DEVICE
   ack        0
   protocol   2.3.0
   radioId    0
   repeater   1
   readingMappings:
   sensorMappings:
     0:
       receives:
       sends:
         16
         15
     1:
       receives:
       sends:
         16
         15
     10:
       receives:
       sends:
         6
         7
     11:
       receives:
       sends:
         11
     12:
       receives:
       sends:
         12
         14
     13:
       receives:
         24
       sends:
         17
         18
         54
         55
         56
         24
     14:
       receives:
       sends:
         45
         21
         0
         2
     15:
       receives:
       sends:
         13
         43
     16:
       receives:
       sends:
         23
         37
     17:
       receives:
       sends:
     18:
       receives:
       sends:
     19:
       receives:
         36
       sends:
         36
     2:
       receives:
       sends:
         16
         15
     20:
       receives:
         32
       sends:
         33
         50
         32
     21:
       receives:
         24
       sends:
         34
         35
         24
     22:
       receives:
       sends:
         37
         43
     23:
       receives:
         24
         25
         26
         27
         28
       sends:
         24
         25
         26
         27
         28
     24:
       receives:
       sends:
         37
         43
     25:
       receives:
       sends:
         19
         20
     26:
       receives:
         40
         17
         3
       sends:
         40
         17
         3
     27:
       receives:
         41
         17
         3
       sends:
         41
         17
         3
     28:
       receives:
         40
       sends:
         40
     29:
       receives:
       sends:
         2
         0
         45
         44
         21
         46
         22
     3:
       receives:
         2
         17
       sends:
         2
         17
     30:
       receives:
       sends:
         38
         39
         14
     31:
       receives:
       sends:
         2
         16
     32:
       receives:
       sends:
         16
         15
     33:
       receives:
       sends:
         37
         16
         15
     34:
       receives:
       sends:
         37
         16
         15
     35:
       receives:
       sends:
         37
         16
         15
     36:
       receives:
         47
       sends:
         47
     37:
       receives:
       sends:
         34
         35
     38:
       receives:
       sends:
         49
     39:
       receives:
       sends:
         0
         51
         52
         53
         2
     4:
       receives:
         2
         3
         17
       sends:
         2
         3
         17
     5:
       receives:
         29
         30
         31
         3
       sends:
         29
         30
         31
         3
     6:
       receives:
       sends:
         0
         42
     7:
       receives:
       sends:
         1
     8:
       receives:
       sends:
         4
         5
     9:
       receives:
       sends:
         8
         9
         10
   sets:
     reboot     
     time       
   typeMappings:
     0:
       type       temperature
     1:
       type       humidity
     10:
       type       direction
     11:
       type       uv
     12:
       type       weight
     13:
       type       distance
     14:
       type       impedance
     15:
       type       armed
       val:
         0          off
         1          on
     16:
       type       tripped
       val:
         0          off
         1          on
     17:
       type       power
     18:
       type       energy
     19:
       type       button_on
     2:
       type       status
       val:
         0          off
         1          on
     20:
       type       button_off
     21:
       type       hvacflowstate
     22:
       type       hvacspeed
     23:
       type       brightness
       range:
         max        100
         min        0
         step       1
     24:
       type       value1
     25:
       type       value2
     26:
       type       value3
     27:
       type       value4
     28:
       type       value5
     29:
       type       up
     3:
       type       percentage
       range:
         max        100
         min        0
         step       1
     30:
       type       down
     31:
       type       stop
     32:
       type       ir_send
     33:
       type       ir_receive
     34:
       type       flow
     35:
       type       volume
     36:
       type       lockstatus
       val:
         0          off
         1          on
     37:
       type       level
     38:
       type       voltage
     39:
       type       current
     4:
       type       pressure
     40:
       type       rgb
     41:
       type       rgbw
     42:
       type       id
     43:
       type       unitprefix
     44:
       type       hvacsetpointcool
     45:
       type       hvacsetpointheat
     46:
       type       hvacflowmode
     47:
       type       text
     48:
       type       custom
     49:
       type       position
     5:
       type       forecast
       val:
         0          stable
         1          sunny
         2          cloudy
         3          unstable
         4          thunderstorm
         5          unknown
     50:
       type       ir_record
     51:
       type       ph
     52:
       type       orp
     53:
       type       ec
     54:
       type       value
     55:
       type       va
     56:
       type       power_factor
     6:
       type       rain
     7:
       type       rainrate
     8:
       type       wind
     9:
       type       gust
Attributes:
   IODev      MySensorGateway
   mode       repeater
   room       mySensors
   version    2.3.0


Diese list sieht schon etwas eigenartig aus oder?
Vor allem weil ich überhaupt keine Werte angezeigt bekomme für Temperatur oder Luftfeuchtigkeit. Obwohl diese ja im Gateway ankommen..

Wenn ich dann ins fhem-logfile schaue sieht das so aus:
2018.11.28 15:26:43 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.11.28 15:26:45 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:26:50 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:26:50 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:26:53 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:26:56 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:26:58 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:27:20 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:27:26 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:27:26 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:27:29 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:27:29 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:27:31 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:27:31 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:27:34 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:27:34 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:28:04 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:28:05 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:28:24 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:28:35 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:28:35 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:28:46 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:29:05 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:29:13 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:29:19 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:29:35 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 1 for V_TEMP
2018.11.28 15:29:49 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:29:55 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM
2018.11.28 15:29:57 3: MYSENSORS: ignoring set-msg from unknown radioId 10, childId 0 for V_HUM


Was läuft denn hier falsch?

Gruß, Marvin

Beta-User

Das gepostete list bezieht sich auf Node-ID 0 (also das GW selbst). Du suchst aber nach der Node-ID 10. Das scheint nicht mit autocreate erstellt worden zu sein (muß ggf. auch global zugelassen sein); ggf. den inclusion-mode nochmal aktivieren.

Ansonsten paßt die Kommunikation bis hin zu FHEM.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

Internals:
   DEF        10
   IODev      MySensorGateway
   NAME       MYSENSOR_10
   NR         54
   STATE      ???
   TYPE       MYSENSORS_DEVICE
   ack        0
   protocol   2.3.0
   radioId    10
   repeater   0
   READINGS:
     2018-11-28 15:44:55   SKETCH_NAME     TemperatureAndHumidity
     2018-11-28 15:44:55   SKETCH_VERSION  1.1
     2018-11-28 15:48:51   humidity        37.0
     2018-11-28 15:44:55   parentId        0
   readingMappings:
     0:
       1:
         name       humidity
     1:
   sensorMappings:
     0:
       receives:
       sends:
         16
         15
     1:
       receives:
       sends:
         16
         15
     10:
       receives:
       sends:
         6
         7
     11:
       receives:
       sends:
         11
     12:
       receives:
       sends:
         12
         14
     13:
       receives:
         24
       sends:
         17
         18
         54
         55
         56
         24
     14:
       receives:
       sends:
         45
         21
         0
         2
     15:
       receives:
       sends:
         13
         43
     16:
       receives:
       sends:
         23
         37
     17:
       receives:
       sends:
     18:
       receives:
       sends:
     19:
       receives:
         36
       sends:
         36
     2:
       receives:
       sends:
         16
         15
     20:
       receives:
         32
       sends:
         33
         50
         32
     21:
       receives:
         24
       sends:
         34
         35
         24
     22:
       receives:
       sends:
         37
         43
     23:
       receives:
         24
         25
         26
         27
         28
       sends:
         24
         25
         26
         27
         28
     24:
       receives:
       sends:
         37
         43
     25:
       receives:
       sends:
         19
         20
     26:
       receives:
         40
         17
         3
       sends:
         40
         17
         3
     27:
       receives:
         41
         17
         3
       sends:
         41
         17
         3
     28:
       receives:
         40
       sends:
         40
     29:
       receives:
       sends:
         2
         0
         45
         44
         21
         46
         22
     3:
       receives:
         2
         17
       sends:
         2
         17
     30:
       receives:
       sends:
         38
         39
         14
     31:
       receives:
       sends:
         2
         16
     32:
       receives:
       sends:
         16
         15
     33:
       receives:
       sends:
         37
         16
         15
     34:
       receives:
       sends:
         37
         16
         15
     35:
       receives:
       sends:
         37
         16
         15
     36:
       receives:
         47
       sends:
         47
     37:
       receives:
       sends:
         34
         35
     38:
       receives:
       sends:
         49
     39:
       receives:
       sends:
         0
         51
         52
         53
         2
     4:
       receives:
         2
         3
         17
       sends:
         2
         3
         17
     5:
       receives:
         29
         30
         31
         3
       sends:
         29
         30
         31
         3
     6:
       receives:
       sends:
         0
         42
     7:
       receives:
       sends:
         1
     8:
       receives:
       sends:
         4
         5
     9:
       receives:
       sends:
         8
         9
         10
   sets:
     reboot     
     time       
   typeMappings:
     0:
       type       temperature
     1:
       type       humidity
     10:
       type       direction
     11:
       type       uv
     12:
       type       weight
     13:
       type       distance
     14:
       type       impedance
     15:
       type       armed
       val:
         0          off
         1          on
     16:
       type       tripped
       val:
         0          off
         1          on
     17:
       type       power
     18:
       type       energy
     19:
       type       button_on
     2:
       type       status
       val:
         0          off
         1          on
     20:
       type       button_off
     21:
       type       hvacflowstate
     22:
       type       hvacspeed
     23:
       type       brightness
       range:
         max        100
         min        0
         step       1
     24:
       type       value1
     25:
       type       value2
     26:
       type       value3
     27:
       type       value4
     28:
       type       value5
     29:
       type       up
     3:
       type       percentage
       range:
         max        100
         min        0
         step       1
     30:
       type       down
     31:
       type       stop
     32:
       type       ir_send
     33:
       type       ir_receive
     34:
       type       flow
     35:
       type       volume
     36:
       type       lockstatus
       val:
         0          off
         1          on
     37:
       type       level
     38:
       type       voltage
     39:
       type       current
     4:
       type       pressure
     40:
       type       rgb
     41:
       type       rgbw
     42:
       type       id
     43:
       type       unitprefix
     44:
       type       hvacsetpointcool
     45:
       type       hvacsetpointheat
     46:
       type       hvacflowmode
     47:
       type       text
     48:
       type       custom
     49:
       type       position
     5:
       type       forecast
       val:
         0          stable
         1          sunny
         2          cloudy
         3          unstable
         4          thunderstorm
         5          unknown
     50:
       type       ir_record
     51:
       type       ph
     52:
       type       orp
     53:
       type       ec
     54:
       type       value
     55:
       type       va
     56:
       type       power_factor
     6:
       type       rain
     7:
       type       rainrate
     8:
       type       wind
     9:
       type       gust
Attributes:
   IODev      MySensorGateway
   mapReading_humidity 0 humidity
   mode       node
   room       mySensors
   version    2.3.0


So sieht es besser aus! Allerdings fehlt die Temperatur komplett in den Readings.. Woran kann das liegen?

Beta-User

Soweit erkennbar, wird auch die Temp gesendet und sollte demnach irgendwann auch in den Readings stehen.

Kann aber sein, dass das ggf. etwas dauert, wenn im Sketch z.B. eingestellt ist, dass nur gesendet werden soll, wenn sich der Wert ändert. Evtl. mal die Node neu starten und warten, bis der Wert gesendet wurde. Danach aber ggf. einen Browser-refresh durchführen, neue Readings werden erst danach angezeigt.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

// Enable debug prints
#define MY_DEBUG

// Enable and select radio type attached
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69
//#define MY_RS485

#include <SPI.h>
#include <MySensors.h> 
#include <DHT.h>

// Set this to the pin you connected the DHT's data pin to
#define DHT_DATA_PIN 3

// Set this offset if the sensor has a permanent small offset to the real temperatures.
// In Celsius degrees (as measured by the device)
#define SENSOR_TEMP_OFFSET 0

// Sleep time between sensor updates (in milliseconds)
// Must be >1000ms for DHT22 and >2000ms for DHT11
static const uint64_t UPDATE_INTERVAL = 2500;

// Force sending an update of the temperature after n sensor reads, so a controller showing the
// timestamp of the last update doesn't show something like 3 hours in the unlikely case, that
// the value didn't change since;
// i.e. the sensor would force sending an update every UPDATE_INTERVAL*FORCE_UPDATE_N_READS [ms]
static const uint8_t FORCE_UPDATE_N_READS = 10;

#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1


Das ist der Quellcode, den ich auf den Sensor geschrieben habe..
Sollte doch mittlerweile mal angekommen sein, oder nicht?

Habe alle Komponenten bereits neugestartet, auch habe ich den Pi und fhem auf Updates überprüft und beides neugestartet.

Gruß, Marvin

Beta-User

#39
Aus dem geposteten FHEM-log war ersichtlich, dass da beides bei FHEM ankam (erst mal mit unknown, bis die Node erstellt war).

Sobald die Node angelegt war (ist sie ja), müßten dann bei entsprechenden Send-Infos an der Node (serieller Output) auch die Readings in FHEM aktualisiert werden. Also: nicht immer alles neu starten (das führt eher zu Problemen), sondern ggf. nur die "problematische" Komponente (das hätte hier die Node sein müssen). Nach dem Code kommt spätestens nach 25 Sek. (2.500 ms*10 Durchläufe) ein update (was m.E. ziemlich sinnlos nur für Testzwecke sinnvoll ist, aber das ist eine andere Geschichte).
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

#40
Gut, dass du deinen Beitrag nochmal editiert hast, denn genau das wäre auch meine Begründung für die kurze Zeit gewesen. Dass ein Intervall von 25s für den realen Betrieb nicht sinnvoll ist, ist mir durchaus bewusst  :D

Ich habe es jetzt mal auf 30'000ms hochgesetzt, also sollten alle 5 die Werte übermittelt werden.

Nun lasse ich mal alles 15 Minuten so laufen, wenn dann keine Temperaturwerte ankommen starte ich den Node neu und warte nochmal 15 Minuten.
Wenn es dann noch keine Temperaturwerte in fhem gibt würde ich mich nochmal melden und um Hilfe ersuchen?

EDIT: Habe es hinbekommen.
Ich hab den Teil im Quellcode
#define CHILD_ID_HUM 0
#define CHILD_ID_TEMP 1


geändert in #define CHILD_ID_HUM 1
#define CHILD_ID_TEMP 2


Jetzt kommen beide Werte an. Auch wenn ich das noch nicht verstehe, welche Auswirkungen das hat..


Liebe Grüße, Marvin

Beta-User

Hmm, eigentlich sollte es egal sein, unter welcher ChildID die Daten reinkommen.

Nebenwirkungen sehe ich keine, die ChildID ist einfach nur eine interne Zuordnung...
Wobei es m.E. wirklich sinnvoll ist, sich selbst da etwas zu beschränken, v.a. was die "0" angeht. Die nutze ich z.B. gerne, wenn ich an die Node Konfigurationdaten versenden will, die für die ganze Node gelten (modifizierbares Sendeintervall, z.B.). Ansonsten ginge es nach meiner Erinnerung sogar, beide Werte unter derselben ID zu versenden, der Type wird auch immer mitgesendet (wird z.B. bei DS18B20 teilweise mit der ID so gemacht), also nicht mal das sollte unter FHEM zu Verwirrung sorgen (kann aber sein, dass andere Controller wie openHAB usw. da sensibler sind).

Gruß, Beta-User
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files

MarvinLu

Jetzt wo ich verstanden habe auf was es ankommt kann ich damit ja ein wenig rumexperimentieren :) Hauptsache es funktioniert so erstmal! Endlich! :)

Nochmal vielen Dank für die Hilfe!

Jetzt kann ich Platinen und Gehäuse konstruieren :)

Liebe Grüße, Marvin

MarvinLu

Ich muss euch nochmal nerven mit meinem Sensor..

Vor einer Woche habe ich fronthem eingerichtet, das hat auch problemlos funktioniert mit meinen bisherigen Geräten.

Mir ist aufgefallen, dass seit dem mein DHT22 spinnt. Ich bekomme nur noch ganz sporadisch Werte gesendet. So alle paar Stunden mal ein Wert (Log siehe unten).

So sah das Logfile aus, als fronthem noch eingerichtet war:
2018.12.12 20:55:12 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 20:55:15 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 20:55:15 1: Perfmon: possible freeze starting at 20:55:13, delay is 2.146
2018.12.12 20:56:15 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 20:56:15 1: in ATTR
2018.12.12 20:56:15 1: in ATTR
2018.12.12 20:56:15 1: in ATTR
2018.12.12 20:56:15 1: in ATTR
2018.12.12 20:56:15 1: in ATTR
2018.12.12 20:56:15 1: in ATTR
2018.12.12 21:01:20 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:01:23 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:01:23 1: Perfmon: possible freeze starting at 21:01:21, delay is 2.24
2018.12.12 21:02:23 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:02:23 1: in ATTR
2018.12.12 21:07:28 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:07:31 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:07:31 1: Perfmon: possible freeze starting at 21:07:29, delay is 2.318
2018.12.12 21:08:31 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:08:31 1: in ATTR
2018.12.12 21:13:36 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:13:39 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:13:39 1: Perfmon: possible freeze starting at 21:13:37, delay is 2.179
2018.12.12 21:14:39 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:14:39 1: in ATTR
2018.12.12 21:19:44 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:19:47 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:19:47 1: Perfmon: possible freeze starting at 21:19:45, delay is 2.183
2018.12.12 21:20:47 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:20:47 1: in ATTR
2018.12.12 21:25:47 1: 192.168.188.30:5003 disconnected, waiting to reappear (MySensorGateway)
2018.12.12 21:25:47 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:47 1: in ATTR
2018.12.12 21:25:52 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:25:52 3: MySensorGateway device opened
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:25:52 1: in ATTR
2018.12.12 21:30:57 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:31:00 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:31:00 1: Perfmon: possible freeze starting at 21:30:58, delay is 2.433
2018.12.12 21:32:00 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:32:00 1: in ATTR
2018.12.12 21:37:05 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:37:08 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:37:08 1: Perfmon: possible freeze starting at 21:37:06, delay is 2.112
2018.12.12 21:38:08 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:38:08 1: in ATTR
2018.12.12 21:43:08 1: 192.168.188.30:5003 disconnected, waiting to reappear (MySensorGateway)
2018.12.12 21:43:09 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:09 1: in ATTR
2018.12.12 21:43:13 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:43:13 3: MySensorGateway device opened
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:43:13 1: in ATTR
2018.12.12 21:53:18 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:53:21 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:53:21 1: Perfmon: possible freeze starting at 21:53:19, delay is 2.519
2018.12.12 21:54:21 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:54:21 1: in ATTR
2018.12.12 21:59:26 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 21:59:29 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 21:59:29 1: Perfmon: possible freeze starting at 21:59:27, delay is 2.161
2018.12.12 22:00:29 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:00:29 1: in ATTR
2018.12.12 22:05:34 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:05:37 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:05:37 1: Perfmon: possible freeze starting at 22:05:35, delay is 2.171
2018.12.12 22:06:37 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:06:37 1: in ATTR
2018.12.12 22:11:42 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:11:45 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:11:45 1: Perfmon: possible freeze starting at 22:11:43, delay is 2.21
2018.12.12 22:12:45 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:12:45 1: in ATTR
2018.12.12 22:17:50 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:17:53 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:17:53 1: Perfmon: possible freeze starting at 22:17:51, delay is 2.189
2018.12.12 22:18:53 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:18:53 1: in ATTR
2018.12.12 22:23:58 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:24:01 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:24:01 1: Perfmon: possible freeze starting at 22:23:59, delay is 2.208
2018.12.12 22:25:01 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:25:01 1: in ATTR
2018.12.12 22:30:06 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:30:09 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:30:09 1: Perfmon: possible freeze starting at 22:30:07, delay is 2.246
2018.12.12 22:31:09 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:31:09 1: in ATTR
2018.12.12 22:36:14 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:36:17 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:36:17 1: Perfmon: possible freeze starting at 22:36:15, delay is 2.254
2018.12.12 22:37:17 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:37:17 1: in ATTR
2018.12.12 22:42:17 1: 192.168.188.30:5003 disconnected, waiting to reappear (MySensorGateway)
2018.12.12 22:42:17 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:17 1: in ATTR
2018.12.12 22:42:22 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:42:22 3: MySensorGateway device opened
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:42:22 1: in ATTR
2018.12.12 22:47:27 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:47:30 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:47:30 1: Perfmon: possible freeze starting at 22:47:28, delay is 2.332
2018.12.12 22:48:30 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:48:30 1: in ATTR
2018.12.12 22:53:35 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:53:38 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:53:38 1: Perfmon: possible freeze starting at 22:53:36, delay is 2.474
2018.12.12 22:54:38 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:54:38 1: in ATTR
2018.12.12 22:59:43 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 22:59:46 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 22:59:46 1: Perfmon: possible freeze starting at 22:59:44, delay is 2.202
2018.12.12 23:00:46 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:00:46 1: in ATTR
2018.12.12 23:05:51 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.12 23:05:54 1: MySensorGateway: Can't connect to 192.168.188.30:5003: Connection timed out
2018.12.12 23:05:54 1: Perfmon: possible freeze starting at 23:05:52, delay is 2.224
2018.12.12 23:06:54 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.12 23:06:54 1: in ATTR
2018.12.12 23:06:54 1: in ATTR
2018.12.12 23:06:54 1: in ATTR
2018.12.12 23:06:54 1: in ATTR
2018.12.12 23:06:54 1: in ATTR
2018.12.12 23:06:54 1: in ATTR


Jetzt habe ich sowohl fronthem, als auch die devices gelöscht. Das Logfile sieht jetzt so aus:
2018.12.13 19:55:08 2: Perfmon: ready to watch out for delays greater than one second
2018.12.13 19:55:08 1: Including fhem.cfg
2018.12.13 19:55:08 3: WEB: port 8083 opened
2018.12.13 19:55:08 2: eventTypes: loaded 1244 events from ./log/eventTypes.txt
2018.12.13 19:55:08 3: m2s: port 1883 opened
2018.12.13 19:55:08 3: telnetPort: port 7072 opened
2018.12.13 19:55:09 3: TelegramBot_Define Telegram: called
2018.12.13 19:55:09 3: Opening LED_Strip_Bett device 192.168.188.27:9090
2018.12.13 19:55:10 1: Including ./log/fhem.save
2018.12.13 19:55:10 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.13 19:55:10 3: MySensorGateway device opened
2018.12.13 19:55:10 1: usb create starting
2018.12.13 19:55:10 3: Probing CUL device /dev/ttyAMA0
2018.12.13 19:55:10 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.12.13 19:55:11 3: Probing ZWDongle device /dev/ttyAMA0
2018.12.13 19:55:11 3: Probing FRM device /dev/ttyAMA0
2018.12.13 19:55:16 1: usb create end
2018.12.13 19:55:16 0: Featurelevel: 5.9
2018.12.13 19:55:16 0: Server started with 48 defined entities (fhem.pl:17779/2018-11-18 perl:5.024001 os:linux user:fhem pid:1233)
2018.12.13 19:55:16 1: Perfmon: possible freeze starting at 19:55:09, delay is 7.504
2018.12.13 19:55:16 3: LED_Strip_Bett device opened
2018.12.13 19:55:16 3: FHEMWEB WEB CSRF error: csrf_26235960629190 ne csrf_973732653290112 for client WEB_192.168.188.108_50730 / command shutdown restart. For details see the csrfToken FHEMWEB attribute.
2018.12.13 19:55:16 3: LED_Strip_Bett: got info response
2018.12.13 19:55:16 2: LED_Strip_Bett: error http://192.168.188.27/info?: empty answer received retrieving info
2018.12.13 19:55:16 0: Server shutdown
2018.12.13 19:55:18 2: Perfmon: ready to watch out for delays greater than one second
2018.12.13 19:55:18 1: Including fhem.cfg
2018.12.13 19:55:18 3: WEB: port 8083 opened
2018.12.13 19:55:18 2: eventTypes: loaded 1244 events from ./log/eventTypes.txt
2018.12.13 19:55:18 3: m2s: port 1883 opened
2018.12.13 19:55:18 3: telnetPort: port 7072 opened
2018.12.13 19:55:19 3: TelegramBot_Define Telegram: called
2018.12.13 19:55:19 3: Opening LED_Strip_Bett device 192.168.188.27:9090
2018.12.13 19:55:20 1: Including ./log/fhem.save
2018.12.13 19:55:20 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.13 19:55:20 3: MySensorGateway device opened
2018.12.13 19:55:20 1: usb create starting
2018.12.13 19:55:20 3: Probing CUL device /dev/ttyAMA0
2018.12.13 19:55:20 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.12.13 19:55:20 3: Probing ZWDongle device /dev/ttyAMA0
2018.12.13 19:55:21 3: Probing FRM device /dev/ttyAMA0
2018.12.13 19:55:26 1: usb create end
2018.12.13 19:55:26 0: Featurelevel: 5.9
2018.12.13 19:55:26 0: Server started with 48 defined entities (fhem.pl:17779/2018-11-18 perl:5.024001 os:linux user:fhem pid:1246)
2018.12.13 19:55:26 1: Perfmon: possible freeze starting at 19:55:19, delay is 7.46
2018.12.13 19:55:26 3: LED_Strip_Bett device opened
2018.12.13 19:55:26 3: FHEMWEB WEB CSRF error: csrf_973732653290112 ne csrf_123130252430431 for client WEB_192.168.188.108_50759 / command shutdown restart. For details see the csrfToken FHEMWEB attribute.
2018.12.13 19:55:26 3: LED_Strip_Bett: got info response
2018.12.13 19:55:26 2: LED_Strip_Bett: error http://192.168.188.27/info?: empty answer received retrieving info
2018.12.13 19:55:27 3: LED_Strip_Bett: got info response
2018.12.13 19:55:27 3: LED_Strip_Bett: info response data {"deviceid":"7926130","current_rom":"1","git_version":"vbs35","git_date":"2018-08-22","webapp_version":"0.3.3-shojo7","sming":"3.5.1","event_num_clients":1,"uptime":1407960,"heap_free":20360,"rgbww":{"version":"0.8.1-vbs5","queuesize":100},"connection":{"connected":true,"ssid":"FRITZ!Box PiLu 2.4","dhcp":true,"ip":"192.168.188.27","netmask":"255.255.255.0","gateway":"192.168.188.1","mac":"807d3a78f172"}}
2018.12.13 19:56:18 2: AttrTemplates: got 17 entries
2018.12.13 19:56:21 1: Perfmon: possible freeze starting at 19:56:19, delay is 2.937
2018.12.13 19:57:43 1: Perfmon: possible freeze starting at 19:57:41, delay is 2.418
2018.12.13 20:05:26 1: 192.168.188.30:5003 disconnected, waiting to reappear (MySensorGateway)
2018.12.13 20:05:27 1: 192.168.188.30:5003 reappeared (MySensorGateway)
2018.12.13 20:05:31 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.13 20:05:31 3: MySensorGateway device opened
2018.12.13 20:09:53 1: Perfmon: possible freeze starting at 20:09:51, delay is 2.585
2018.12.13 20:15:41 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.13 20:15:41 3: MySensorGateway device opened
2018.12.13 20:15:55 1: Perfmon: possible freeze starting at 20:15:54, delay is 1.156
2018.12.13 20:16:10 3: Opening MySensorGateway device 192.168.188.30:5003
2018.12.13 20:16:10 3: MySensorGateway device opened
2018.12.13 20:16:53 1: Perfmon: possible freeze starting at 20:16:51, delay is 2.732


Die haufenweise Fehlermeldungen sind zwar verschwunden, jedoch bekomme ich noch keine Werte..
Die letzten Werte des DHT22-Logfiles:
2018-12-12_02:37:55 DHT22_WZ temperature2: 19.4
2018-12-12_02:37:55 DHT22_WZ humidity1: 56.8
2018-12-12_02:38:27 DHT22_WZ temperature2: 19.3
2018-12-12_02:39:00 DHT22_WZ temperature2: 19.4
2018-12-12_02:39:00 DHT22_WZ humidity1: 56.9
2018-12-12_02:39:33 DHT22_WZ humidity1: 56.8
2018-12-12_02:40:05 DHT22_WZ temperature2: 19.3
2018-12-12_02:56:48 DHT22_WZ humidity1: 56.7
2018-12-12_02:58:26 DHT22_WZ temperature2: 19.4
2018-12-12_03:00:04 DHT22_WZ humidity1: 56.6
2018-12-12_05:49:04 DHT22_WZ humidity1: 57.1
2018-12-12_05:49:37 DHT22_WZ humidity1: 57.0
2018-12-12_07:13:56 DHT22_WZ temperature2: 18.2
2018-12-12_07:13:56 DHT22_WZ humidity1: 43.7
2018-12-12_07:35:17 DHT22_WZ temperature2: 15.0
2018-12-12_07:35:17 DHT22_WZ humidity1: 46.7
2018-12-12_07:35:50 DHT22_WZ humidity1: 47.1
2018-12-12_07:36:23 DHT22_WZ temperature2: 14.9
2018-12-13_14:48:28 DHT22_WZ temperature2: 18.7


Kann mir jemand helfen und Vermutungen anstellen, was es sein könnte?

Liebe Grüße und einen schönen Abend,
Marvin

Beta-User

Hmmm, das sieht mir wie ein WLAN-Problem des ESP8266 aus.

Hast du sonst irgendwelche Probleme mit WLAN? (Viele Geräte, eine Fritzbox?)

@Sidey: Liest du hier zufällig mit und hast dazu eine Idee?

Anmerkung: Ich nutze kein WLAN-GW, aber auch bei Tasmota gab es in jüngerer Zeit Berichte über Probleme, könnte also das ESP-Framework an sich sein. Kann aber auch ganz andere Ursachen haben.

Müßte tiefer in die Problemanalyse einsteigen, ist aber grade wenig Zeit dazu. Hast die die Option, ggf. auf ein schlichtes serielles GW auszuweichen?
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: MiLight@ESP-GW, BT@OpenMQTTGw | MySensors: seriell, v.a. 2.3.1@RS485 | ZWave | ZigBee@deCONZ | SIGNALduino | MapleCUN | RHASSPY
svn: u.a MySensors, Weekday-&RandomTimer, Twilight,  div. attrTemplate-files