[gelöst]Event wird nicht gelogt

Begonnen von LaresLoci, 09 Dezember 2024, 17:39:48

Vorheriges Thema - Nächstes Thema

LaresLoci

Moin,

ich habe ein sehr seltsames Phänomen, einfach trivial, deshalb habe ich es bei Anfängerfragen gepostet.

Ich habe einen Sensor neu angelernt und eingebunden, funktioniert soweit alles.
Mit dem dewpoint Modul lasse ich den Taupunkt berechnen, der wird als Reading beim Sensor angezeigt und auch gelogt. Für die Berechnung der abs.Feuchte habe ich in der 99_myUtils.pm eine Funktion angelegt, die mit setreading ebenfalls ein Reading im Sensor befüllt. Soweit, so gut. Im Eventmonitor wird die Aktualisierung auch angezeigt, aber es wird nirgendwo gelogt. Im Eventmonitor habe ich mit dem create Button schon versuchsweise ein LOGfile angelegt, auch da wird nichts reingeschrieben. Außer ich ändere den RepEx auf .*
Ehe jetzt der Hinweis kommt, nimm doch das dewpoint Modul dafür, muss ich sagen dort wird die Feuchte mit g/m³ berechnet. Aber im Mollier-h-x-Diagramm wird die Feuchte mit g/Kg benötigt. So bin es es eben mein Leben lang gewohnt.

Muss man bei Perl Funktionen noch etwas zusätzlich machen? Ich dachte bisher alles was ein Event auslöst wird auch gelogt.

Hat noch einer eine Idee, wie ich da weiterkomme, ehe ich mir in meiner Funktion eine Hilfskrücke baue und den Wert von da direkt in das SensorLogfile zu schreibe.(Falls das überhaupt geht)



Hier das List vom Sensor:

define bz_Sensor ZWave df36166d 41
attr bz_Sensor classes ZWAVEPLUS_INFO ASSOCIATION ASSOCIATION_GRP_INFO MULTI_CHANNEL_ASSOCIATION TRANSPORT_SERVICE VERSION APPLICATION_STATUS CONFIGURATION SENSOR_BINARY SENSOR_MULTILEVEL ALARM MANUFACTURER_SPECIFIC DEVICE_RESET_LOCALLY INDICATOR POWERLEVEL BATTERY SECURITY SECURITY_S2 SUPERVISION FIRMWARE_UPDATE_MD
attr bz_Sensor group Messung
attr bz_Sensor neighborListPos 1716,637
attr bz_Sensor room Bad
attr bz_Sensor stateFormat {"T:  " . ReadingsVal($name,"temperature",0) . "<br/>" . ReadingsTimestamp($name,"temperature","") . "<br/>" . "<br/>" . "L:  " . ReadingsVal($name,"luminance",0) . "<br/>" . ReadingsTimestamp($name,"luminance","") . "<br/> <br/>Bewegung:<br/>" .ReadingsVal($name,"motion",0) ."<br/>" . ReadingsTimestamp($name,"alarm","") . "<br/> <br/>H: " . ReadingsVal($name,"humidity",0) . "<br/>" . ReadingsTimestamp($name,"humidity","") . "<br/> <br/>TP: " . ReadingsVal($name,"taupunkt",0) . "<br/>" . ReadingsTimestamp($name,"taupunkt","") . "<br/> <br/>absF: " . ReadingsVal($name,"absFeuchte",0) . "<br/>" . ReadingsTimestamp($name,"absFeuchte","") }
attr bz_Sensor vclasses ALARM:8 APPLICATION_STATUS:1 ASSOCIATION:2 ASSOCIATION_GRP_INFO:3 BATTERY:1 CONFIGURATION:4 DEVICE_RESET_LOCALLY:1 FIRMWARE_UPDATE_MD:5 INDICATOR:3 MANUFACTURER_SPECIFIC:2 MULTI_CHANNEL_ASSOCIATION:3 POWERLEVEL:1 SECURITY:1 SECURITY_S2:1 SENSOR_BINARY:2 SENSOR_MULTILEVEL:11 SUPERVISION:1 TRANSPORT_SERVICE:2 VERSION:3 WAKE_UP:2 ZWAVEPLUS_INFO:2
#   DEF        df36166d 41
#   FUUID      65eafc96-f33f-9c9e-e74e-333689c0e0ef695c
#   IODev      ZWDongle_0
#   LASTInputDev ZWDongle_0
#   MSGCNT     4695
#   NAME       bz_Sensor
#   NR         129
#   STATE      T:  22.3 C<br/>2024-12-09 16:51:20<br/><br/>L:  4 Lux<br/>2024-12-09 16:46:27<br/> <br/>Bewegung:<br/>off<br/>2024-12-09 12:48:18<br/> <br/>H: 52 %<br/>2024-12-09 16:51:20<br/> <br/>TP: 12.0<br/>2024-12-09 16:51:20<br/> <br/>absF: 8.7 g/Kg<br/>2024-12-09 16:51:20
#   TYPE       ZWave
#   ZWDongle_0_MSGCNT 4695
#   ZWDongle_0_RAWMSG 00040029053105050134b20000
#   ZWDongle_0_TIME 2024-12-09 16:51:20
#   ZWaveSubDevice no
#   eventCount 564
#   homeId     df36166d
#   isWakeUp  
#   lastMsgSent 1733694418.14794
#   nodeIdHex  29
#   READINGS:
#     2024-03-09 16:34:25   CMD             ZW_APPLICATION_UPDATE
#     2024-12-04 10:09:27   IODev           ZWDongle_0
#     2024-03-09 16:35:09   UNPARSED        INDICATOR 0d87030003500300500400500500
#     2024-12-09 16:51:20   absFeuchte      8.7 g/Kg
#     2024-12-09 12:48:18   alarm           HomeSecurity: Event cleared: Motion Detection - Unknown Location, arg 108
#     2024-11-20 17:57:28   assocGroup_1    Max 5 Nodes ZWDongle_0
#     2024-11-20 17:57:29   assocGroup_10   Max 5 Nodes
#     2024-11-20 17:57:29   assocGroup_11   Max 5 Nodes
#     2024-11-20 17:57:28   assocGroup_2    Max 5 Nodes
#     2024-11-20 17:57:28   assocGroup_3    Max 5 Nodes
#     2024-11-20 17:57:28   assocGroup_4    Max 5 Nodes
#     2024-11-20 17:57:28   assocGroup_5    Max 5 Nodes
#     2024-11-20 17:57:28   assocGroup_6    Max 5 Nodes
#     2024-11-20 17:57:29   assocGroup_7    Max 5 Nodes
#     2024-11-20 17:57:29   assocGroup_8    Max 5 Nodes
#     2024-11-20 17:57:29   assocGroup_9    Max 5 Nodes
#     2024-11-20 17:57:28   assocGroups     11
#     2024-11-17 16:05:28   basicSet        0
#     2024-06-30 10:33:43   battery         100 %
#     2024-06-30 10:33:43   batteryPercent  100
#     2024-06-30 10:33:43   batteryState    ok
#     2024-11-14 11:06:04   configAutomaticChecklist1IntervalTime 300
#     2024-11-14 11:06:04   configAutomaticChecklist2IntervalTime 3600
#     2024-11-14 11:06:04   configAutomaticChecklist3IntervalTime 3600
#     2024-11-14 11:06:04   configAutomaticReportChecklist1 0
#     2024-11-14 11:06:04   configAutomaticReportChecklist2 0
#     2024-11-14 11:06:04   configAutomaticReportChecklist3 0
#     2024-11-14 11:06:04   configBatteryReportIndicator Disabled
#     2024-11-14 11:06:04   configBeamingEnableDisable Disable
#     2024-11-14 11:06:05   configCommunicationIndicator White
#     2024-11-18 11:58:14   configEnableMotionSensor EnabledLevel11
#     2024-11-14 11:06:05   configHumidityLowerLimit 40
#     2024-11-14 11:06:05   configHumidityOffsetValue 2
#     2024-11-14 11:06:05   configHumidityRecoverLimit 5
#     2024-11-14 11:06:05   configHumiditySensorReportIndicator Purple
#     2024-11-18 11:37:37   configHumidityThreshold 2
#     2024-11-14 11:06:05   configHumidityUpperLimit 60
#     2024-11-14 11:06:05   configLEDActivity Enable
#     2024-11-14 11:06:05   configLowBatteryThreshold 50
#     2024-11-14 11:06:05   configLowTemperatureReport Enable
#     2024-11-18 11:57:13   configLuxLowerLimit 50
#     2024-11-14 17:58:36   configLuxOffsetValue 64656
#     2024-11-18 11:58:33   configLuxRecoverLimit 100
#     2024-11-14 11:06:05   configLuxSensorReportIndicator Blue
#     2024-11-18 11:37:54   configLuxThreshold 10
#     2024-11-18 11:57:26   configLuxUpperLimit 1000
#     2024-11-14 11:06:05   configMotionGroupControlGroup2 0
#     2024-11-14 11:06:05   configMotionGroupControlRequirement 30000
#     2024-11-14 11:06:05   configMotionGroupValueSetting 65280
#     2024-11-18 11:13:05   configMotionReportType SendsNotificationAndSensorBinary2
#     2024-11-20 16:38:29   configMotionRetriggerTime 10
#     2024-11-14 11:06:05   configMotionSensorReportIndicator Green
#     2024-11-20 16:39:28   configMotionUntriggerTime 30
#     2024-11-18 12:09:11   configOutOfLimitState 64
#     2024-11-14 11:06:05   configOverHeatGroupThresholdGroup3 239
#     2024-11-14 11:06:05   configOverHumidityGroupThresholdGroup5 60
#     2024-11-14 11:06:05   configOverLightGroupThresholdGroup7 2000
#     2024-11-14 11:06:05   configOverUVGroupThresholdGroup9 8
#     2024-11-14 11:06:05   configPowerStatus WhenUSBCableInsertTheDeviceWill1
#     2024-11-18 11:55:49   configSensorLimitControl 68
#     2024-11-14 11:06:05   configTemperatureLowerLimit 0
#     2024-11-14 11:06:05   configTemperatureOffsetValue 65528
#     2024-11-14 11:06:05   configTemperatureRecoverLimit 20
#     2024-11-14 11:06:05   configTemperatureScale Celsius
#     2024-11-14 11:06:05   configTemperatureSensorReportIndicator Disabled
#     2024-11-18 11:16:45   configTemperatureThreshold 5
#     2024-11-14 11:06:06   configTemperatureUpperLimit 280
#     2024-11-18 11:16:30   configThresholdCheckEnableDisable Enabled
#     2024-11-18 11:38:58   configThresholdCheckTimeLowTempAlarm 60
#     2024-11-14 11:06:06   configUVLoverLimit 4
#     2024-11-14 11:06:06   configUVOffsetValue 0
#     2024-11-14 11:06:06   configUVRecoverLimit 1
#     2024-11-14 11:06:06   configUVSensorReportIndicator Disabled
#     2024-11-18 11:38:33   configUVThreshold 0
#     2024-11-14 11:06:06   configUVUpperLimit 8
#     2024-11-14 11:06:06   configUnderHeatGroupThresholdGroup4 155
#     2024-11-14 11:06:06   configUnderHumidityGroupThreshold15 40
#     2024-11-14 11:06:06   configUnderLightGroupThresholdGroup8 100
#     2024-11-14 11:06:06   configUnderUVGroupThresholdGroup10 1
#     2024-11-14 11:06:06   configVibrationIntensityReports Disable
#     2024-11-14 11:06:06   configVibrationSensorEnableDisable 0
#     2024-11-14 11:06:06   configVibrationSensorReportIndicator Blue
#     2024-11-14 11:06:06   configWakeupCCTimeout 15
#     2024-11-14 11:06:06   configWakeupReportIndicator Yellow
#     2024-12-09 16:51:20   humidity        52 %
#     2024-03-08 20:21:19   indState        off
#     2024-12-09 16:46:27   luminance       4 Lux
#     2024-11-12 15:09:41   mcaGroups       11
#     2024-11-12 15:09:41   mca_1           Max 5 Nodes ZWDongle_0
#     2024-11-12 15:09:41   mca_10          Max 5
#     2024-11-12 15:09:41   mca_11          Max 5
#     2024-11-12 15:09:41   mca_2           Max 5 Nodes ZWDongle_0
#     2024-11-12 15:09:41   mca_3           Max 5
#     2024-11-12 15:09:41   mca_4           Max 5
#     2024-11-12 15:09:41   mca_5           Max 5
#     2024-11-12 15:09:41   mca_6           Max 5
#     2024-11-12 15:09:41   mca_7           Max 5
#     2024-11-12 15:09:41   mca_8           Max 5
#     2024-11-12 15:09:41   mca_9           Max 5
#     2024-03-08 20:21:04   model           Aeotec Limited Multisensor 7
#     2024-03-08 20:21:04   modelConfig     aeotec/zwa024.xml
#     2024-03-08 20:21:04   modelId         0371-0002-0018
#     2024-12-09 12:48:18   motion          off
#     2024-03-08 12:58:02   neighborList    ZWDongle_0 az_Rollo Fl_Licht sz_Rollo_0 ZWave_SWITCH_BINARY_36 ga_Motion
#     2024-11-20 17:57:20   state           associationDel 2 46
#     2024-12-09 16:51:20   taupunkt        12.0
#     2024-12-09 16:51:20   temperature     22.3 C
#     2024-12-08 22:46:58   timeToAck       0.019
#     2024-12-08 22:46:58   transmit        OK
#     2024-11-18 10:24:54   ultraviolet     0 UV
#     2024-11-07 18:36:54   version         Lib 3 Prot 7.12 App 1.5 HW 1 FWCounter 0
#     2024-12-08 22:46:56   wakeup          notification
#     2024-03-08 12:55:04   zwavePlusInfo   version:02 role:AlwaysOnSlave node:Z-Wave+Node installerIcon:0c07 userIcon:0c07
#
setstate bz_Sensor T:  22.3 C<br/>2024-12-09 16:51:20<br/><br/>L:  4 Lux<br/>2024-12-09 16:46:27<br/> <br/>Bewegung:<br/>off<br/>2024-12-09 12:48:18<br/> <br/>H: 52 %<br/>2024-12-09 16:51:20<br/> <br/>TP: 12.0<br/>2024-12-09 16:51:20<br/> <br/>absF: 8.7 g/Kg<br/>2024-12-09 16:51:20
setstate bz_Sensor 2024-03-09 16:34:25 CMD ZW_APPLICATION_UPDATE
setstate bz_Sensor 2024-12-04 10:09:27 IODev ZWDongle_0
setstate bz_Sensor 2024-03-09 16:35:09 UNPARSED INDICATOR 0d87030003500300500400500500
setstate bz_Sensor 2024-12-09 16:51:20 absFeuchte 8.7 g/Kg
setstate bz_Sensor 2024-12-09 12:48:18 alarm HomeSecurity: Event cleared: Motion Detection - Unknown Location, arg 108
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_1 Max 5 Nodes ZWDongle_0
setstate bz_Sensor 2024-11-20 17:57:29 assocGroup_10 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:29 assocGroup_11 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_2 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_3 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_4 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_5 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroup_6 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:29 assocGroup_7 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:29 assocGroup_8 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:29 assocGroup_9 Max 5 Nodes
setstate bz_Sensor 2024-11-20 17:57:28 assocGroups 11
setstate bz_Sensor 2024-11-17 16:05:28 basicSet 0
setstate bz_Sensor 2024-06-30 10:33:43 battery 100 %
setstate bz_Sensor 2024-06-30 10:33:43 batteryPercent 100
setstate bz_Sensor 2024-06-30 10:33:43 batteryState ok
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticChecklist1IntervalTime 300
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticChecklist2IntervalTime 3600
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticChecklist3IntervalTime 3600
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticReportChecklist1 0
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticReportChecklist2 0
setstate bz_Sensor 2024-11-14 11:06:04 configAutomaticReportChecklist3 0
setstate bz_Sensor 2024-11-14 11:06:04 configBatteryReportIndicator Disabled
setstate bz_Sensor 2024-11-14 11:06:04 configBeamingEnableDisable Disable
setstate bz_Sensor 2024-11-14 11:06:05 configCommunicationIndicator White
setstate bz_Sensor 2024-11-18 11:58:14 configEnableMotionSensor EnabledLevel11
setstate bz_Sensor 2024-11-14 11:06:05 configHumidityLowerLimit 40
setstate bz_Sensor 2024-11-14 11:06:05 configHumidityOffsetValue 2
setstate bz_Sensor 2024-11-14 11:06:05 configHumidityRecoverLimit 5
setstate bz_Sensor 2024-11-14 11:06:05 configHumiditySensorReportIndicator Purple
setstate bz_Sensor 2024-11-18 11:37:37 configHumidityThreshold 2
setstate bz_Sensor 2024-11-14 11:06:05 configHumidityUpperLimit 60
setstate bz_Sensor 2024-11-14 11:06:05 configLEDActivity Enable
setstate bz_Sensor 2024-11-14 11:06:05 configLowBatteryThreshold 50
setstate bz_Sensor 2024-11-14 11:06:05 configLowTemperatureReport Enable
setstate bz_Sensor 2024-11-18 11:57:13 configLuxLowerLimit 50
setstate bz_Sensor 2024-11-14 17:58:36 configLuxOffsetValue 64656
setstate bz_Sensor 2024-11-18 11:58:33 configLuxRecoverLimit 100
setstate bz_Sensor 2024-11-14 11:06:05 configLuxSensorReportIndicator Blue
setstate bz_Sensor 2024-11-18 11:37:54 configLuxThreshold 10
setstate bz_Sensor 2024-11-18 11:57:26 configLuxUpperLimit 1000
setstate bz_Sensor 2024-11-14 11:06:05 configMotionGroupControlGroup2 0
setstate bz_Sensor 2024-11-14 11:06:05 configMotionGroupControlRequirement 30000
setstate bz_Sensor 2024-11-14 11:06:05 configMotionGroupValueSetting 65280
setstate bz_Sensor 2024-11-18 11:13:05 configMotionReportType SendsNotificationAndSensorBinary2
setstate bz_Sensor 2024-11-20 16:38:29 configMotionRetriggerTime 10
setstate bz_Sensor 2024-11-14 11:06:05 configMotionSensorReportIndicator Green
setstate bz_Sensor 2024-11-20 16:39:28 configMotionUntriggerTime 30
setstate bz_Sensor 2024-11-18 12:09:11 configOutOfLimitState 64
setstate bz_Sensor 2024-11-14 11:06:05 configOverHeatGroupThresholdGroup3 239
setstate bz_Sensor 2024-11-14 11:06:05 configOverHumidityGroupThresholdGroup5 60
setstate bz_Sensor 2024-11-14 11:06:05 configOverLightGroupThresholdGroup7 2000
setstate bz_Sensor 2024-11-14 11:06:05 configOverUVGroupThresholdGroup9 8
setstate bz_Sensor 2024-11-14 11:06:05 configPowerStatus WhenUSBCableInsertTheDeviceWill1
setstate bz_Sensor 2024-11-18 11:55:49 configSensorLimitControl 68
setstate bz_Sensor 2024-11-14 11:06:05 configTemperatureLowerLimit 0
setstate bz_Sensor 2024-11-14 11:06:05 configTemperatureOffsetValue 65528
setstate bz_Sensor 2024-11-14 11:06:05 configTemperatureRecoverLimit 20
setstate bz_Sensor 2024-11-14 11:06:05 configTemperatureScale Celsius
setstate bz_Sensor 2024-11-14 11:06:05 configTemperatureSensorReportIndicator Disabled
setstate bz_Sensor 2024-11-18 11:16:45 configTemperatureThreshold 5
setstate bz_Sensor 2024-11-14 11:06:06 configTemperatureUpperLimit 280
setstate bz_Sensor 2024-11-18 11:16:30 configThresholdCheckEnableDisable Enabled
setstate bz_Sensor 2024-11-18 11:38:58 configThresholdCheckTimeLowTempAlarm 60
setstate bz_Sensor 2024-11-14 11:06:06 configUVLoverLimit 4
setstate bz_Sensor 2024-11-14 11:06:06 configUVOffsetValue 0
setstate bz_Sensor 2024-11-14 11:06:06 configUVRecoverLimit 1
setstate bz_Sensor 2024-11-14 11:06:06 configUVSensorReportIndicator Disabled
setstate bz_Sensor 2024-11-18 11:38:33 configUVThreshold 0
setstate bz_Sensor 2024-11-14 11:06:06 configUVUpperLimit 8
setstate bz_Sensor 2024-11-14 11:06:06 configUnderHeatGroupThresholdGroup4 155
setstate bz_Sensor 2024-11-14 11:06:06 configUnderHumidityGroupThreshold15 40
setstate bz_Sensor 2024-11-14 11:06:06 configUnderLightGroupThresholdGroup8 100
setstate bz_Sensor 2024-11-14 11:06:06 configUnderUVGroupThresholdGroup10 1
setstate bz_Sensor 2024-11-14 11:06:06 configVibrationIntensityReports Disable
setstate bz_Sensor 2024-11-14 11:06:06 configVibrationSensorEnableDisable 0
setstate bz_Sensor 2024-11-14 11:06:06 configVibrationSensorReportIndicator Blue
setstate bz_Sensor 2024-11-14 11:06:06 configWakeupCCTimeout 15
setstate bz_Sensor 2024-11-14 11:06:06 configWakeupReportIndicator Yellow
setstate bz_Sensor 2024-12-09 16:51:20 humidity 52 %
setstate bz_Sensor 2024-03-08 20:21:19 indState off
setstate bz_Sensor 2024-12-09 16:46:27 luminance 4 Lux
setstate bz_Sensor 2024-11-12 15:09:41 mcaGroups 11
setstate bz_Sensor 2024-11-12 15:09:41 mca_1 Max 5 Nodes ZWDongle_0
setstate bz_Sensor 2024-11-12 15:09:41 mca_10 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_11 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_2 Max 5 Nodes ZWDongle_0
setstate bz_Sensor 2024-11-12 15:09:41 mca_3 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_4 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_5 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_6 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_7 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_8 Max 5
setstate bz_Sensor 2024-11-12 15:09:41 mca_9 Max 5
setstate bz_Sensor 2024-03-08 20:21:04 model Aeotec Limited Multisensor 7
setstate bz_Sensor 2024-03-08 20:21:04 modelConfig aeotec/zwa024.xml
setstate bz_Sensor 2024-03-08 20:21:04 modelId 0371-0002-0018
setstate bz_Sensor 2024-12-09 12:48:18 motion off
setstate bz_Sensor 2024-03-08 12:58:02 neighborList ZWDongle_0 az_Rollo Fl_Licht sz_Rollo_0 ZWave_SWITCH_BINARY_36 ga_Motion
setstate bz_Sensor 2024-11-20 17:57:20 state associationDel 2 46
setstate bz_Sensor 2024-12-09 16:51:20 taupunkt 12.0
setstate bz_Sensor 2024-12-09 16:51:20 temperature 22.3 C
setstate bz_Sensor 2024-12-08 22:46:58 timeToAck 0.019
setstate bz_Sensor 2024-12-08 22:46:58 transmit OK
setstate bz_Sensor 2024-11-18 10:24:54 ultraviolet 0 UV
setstate bz_Sensor 2024-11-07 18:36:54 version Lib 3 Prot 7.12 App 1.5 HW 1 FWCounter 0
setstate bz_Sensor 2024-12-08 22:46:56 wakeup notification
setstate bz_Sensor 2024-03-08 12:55:04 zwavePlusInfo version:02 role:AlwaysOnSlave node:Z-Wave+Node installerIcon:0c07 userIcon:0c07


Der Eintrag aus dem Eventmonitor:

2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_nr: 1
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd: 1
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_event: bz_Sensor
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_1
2024-12-09 17:10:55 ZWave bz_Sensor temperature: 22.2 C
2024-12-09 17:10:55 ZWave bz_Sensor absFeuchte: 8.6 g/Kg
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_nr: 1
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd: 1
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_event: bz_Sensor
2024-12-09 17:10:55 DOIF bz_di_Sensor_absF cmd_1
2024-12-09 17:10:55 ZWave bz_Sensor humidity: 52 %
2024-12-09 17:10:55 ZWave bz_Sensor taupunkt: 11.9
2024-12-09 17:10:55 ZWave bz_Sensor absFeuchte: 8.6 g/Kg
2024-12-09 17:10:55 ZWave bz_Sensor luminance: 4 Lux


das Sensor Logfile:

2024-12-09_17:10:55 bz_Sensor temperature: 22.2 C
2024-12-09_17:10:55 bz_Sensor humidity: 52 %
2024-12-09_17:10:55 bz_Sensor taupunkt: 11.9
2024-12-09_17:10:55 bz_Sensor luminance: 4 Lux

und die myUtils.pm:

##############################################
# $Id: myUtilsTemplate.pm 21509 2020-03-25 11:20:51Z rudolfkoenig $
#
# Save this file as 99_myUtils.pm, and create your own functions in the new
# file. They are then available in every Perl expression.

package main;

use strict;
use warnings;

sub
myUtils_Initialize($$)
{
  my ($hash) = @_;
}

# Enter you functions below _this_ line.

sub absF($$$)
{


  my ($device, $T, $H) = @_;
  my $af = 0;
  if ($T < 0)
     {    
     $T = 0;
     }

  if ($T < 10.0)
     {
     $af = (3.78 + (0.285 * $T) + (0.0052 * $T * $T) + (0.0005 * $T * $T * $T));
     }
  else
     {
     $af = (7.62 + (0.524 * ($T-10.0)) + (0.0131 * ($T-10.0) * ($T-10.0)) + (0.00048 * ($T-10.0) * ($T-10.0) * ($T-10.0)));
     }

  $af = round(($af * $H) / (100.0 + $af * (100.0 - $H) / 622),1)." g/Kg";
 
  if ($af eq ReadingsVal($device,'absFeuchte',0))
     {
     Log 2, "absF kein neuer Wert berechnet";
     Log 2, "neuer Wert: ".$af;
     Log 2, "alter Wert: ".ReadingsVal($device,'absFeuchte',0);
     }
  else
     {
     Log 2, "absF wurde berechnet";
     Log 2, "neuer Wert: ".$af;
     Log 2, "alter Wert: ".ReadingsVal($device,'absFeuchte',0);
     }
 
  fhem( "setreading $device absFeuchte $af" );
 

}
1;



Gruß
Ralf

frank

fhem( "sleep 0.1; setreading $device absFeuchte $af" );
probiere mit sleep.
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

LaresLoci

Hallo Frank,

das war es...

Danke und ich habe solange alles mögliche probiert.

Wernieman

Events aus dem gleichen Device löst normalerweise kein neues Event aus, damit kein Loop entsteht. Durch den Trick mit dem sleep wird aber ein neues Event draus ....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html