kein Update bei Label Widget - Module MSwitch und inotify

Begonnen von Petrosilius Zwackelmann, 04 April 2020, 01:08:36

Vorheriges Thema - Nächstes Thema

Petrosilius Zwackelmann

Ich versuche die Daten welche aus einem fhem-externen Logile zu visualisieren. Um die Daten in einzelne Readings zu zerlegen habe ich das Modul MSwitch verwendet.

Es ist mir mit Tablet-UI auch schnell gelungen verschiedene Graphen zu erzeugen, am vermeintlich einfachstem Thema komme ich aber nicht weiter und hoffe auf eure Unterstützung.
Konkret geligt es mir nicht, ein Reading welches ich wie folgt abrufen kann als Label anzuzeigen.
{ReadingsVal("ESS_Minutenwerte","01_SoC_in_Pct","0")}

<div  data-type="label" data-device="ESS_Minutenwerte" data-unit=" %" class="ontop bigger" style="left: 236px; top: 440px"  data-color="black" data-get="01_SoC_in_Pct" ></div>


Internals:
   CFGFN      ./FHEM/00_Caterva_ESS.cfg
   DEF        watch_ESS_Minutenwerte_update # FreeCmd
   FUUID      5e7eabea-f33f-295f-bc18-b0f6925940e87e42
   INIT       fhem.save
   MODEL      Notify
   NAME       ESS_Minutenwerte
   NOTIFYDEV  watch_ESS_Minutenwerte_update
   NR         99
   NTFY_ORDER 45-ESS_Minutenwerte
   STATE      active
   Support_Fhemforum https://forum.fhem.de/index.php/topic,86199.0.html
   TYPE       MSwitch
   Version_Datenstruktur V2.00
   Version_Modul 3.02
   Version_autoupdate off
   eventsave  unsaved
   READINGS:
     2020-04-03 22:40:50   00_Timestamp    2020-04-03_22:39:27
     2020-04-03 22:40:50   01_SoC_in_Pct   84
     2020-04-03 22:40:50   02_Grid_to_Household_in_W 694
     2020-04-03 22:40:50   03_Battery_to_Household_in_W 0
     2020-04-03 22:40:50   04_PV_to_Household_in_W -8
     2020-04-03 22:40:50   05_PV_to_Battery_in_W 0
     2020-04-03 22:40:50   06_PV_to_Grid_in_W 0
     2020-04-03 22:40:50   07_PV_power_provision_in_W -8
     2020-04-03 22:40:50   08_Household_demand_in_W 685
     2020-04-03 22:40:50   09_PVpeak_in_W  5122
     2020-04-03 22:40:50   10_Load_resistor_in_W 0
     2020-04-03 22:40:50   11_Neg_Inverter_AC_power_in_W 0
     2020-04-03 22:40:50   12_Pos_Inverter_AC_power_in_W 0
     2020-04-03 22:40:50   13_Neg_Inverter_DC_power_in_W 0
     2020-04-03 22:40:50   14_Pos_Inverter_DC_power_in_W 0
     2020-04-03 22:40:50   15_PFCR_as_measured_in_W 0
     2020-04-03 22:40:50   16_PFCRpos_scheduled_in_W 0
     2020-04-03 22:40:50   17_PFCRneg_scheduled_in_W 0
     2020-04-03 22:40:50   18_Traded_power_in_W 0
     2020-04-03 22:40:50   19_PGRD_as_measured_in_W 694
     2020-04-03 22:40:50   20_PFRR_as_measured_in_W 0
     2020-04-03 22:40:50   21_PFRRpos_reserved_in_W 0
     2020-04-03 22:40:50   22_PFRRneg_reserved_in_W 0
     2020-04-03 22:40:50   23_PFCRpos_overfulfillment_setpoint_in_W 0
     2020-04-03 22:40:50   24_PFCRneg_overfulfillment_setpoint_in_W 0
     2020-04-03 22:40:50   25_Control_Power_to_Battery_in_W 0
     2020-04-03 22:40:50   26_Battery_to_Control_Power_in_W 0
     2020-04-03 22:40:50   27_Deadband_recharge_in_W 0
     2020-04-03 22:40:50   28_Recharge_by_power_purchase_in_W 0
     2020-04-03 22:40:50   29_Discharge_by_power_sale_in_W 0

     2020-03-31 19:02:41   30_Reading_30   -0.000
     2020-04-03 22:40:50   EVENT           lastEventMask:IN_MODIFY
     2020-04-03 22:40:50   EVTFULL         watch_ESS_Minutenwerte_update:lastEventMask:IN_MODIFY
     2020-04-03 22:40:50   EVTPART1        watch_ESS_Minutenwerte_update
     2020-04-03 22:40:50   EVTPART2        lastEventMask
     2020-04-03 22:40:50   EVTPART3        IN_MODIFY
     2020-04-04 00:17:07   Trigger_device  watch_ESS_Minutenwerte_update
     2020-03-31 19:02:41   Trigger_log     off
     2020-04-03 22:47:40   last_activation_by event
     2020-04-03 22:40:50   last_cmd        1
     2020-04-03 22:40:50   last_event      lastEventMask:IN_MODIFY
     2020-04-03 22:40:50   last_exec_cmd   {createReadings_ESS_Minutenwerte("ESS_Minutenwerte");}
     2020-04-03 22:40:50   state           active
   helper:
Attributes:
   MSwitch_Comments 1
   MSwitch_Debug 1
   MSwitch_Delete_Delays 1
   MSwitch_Eventhistory 30
   MSwitch_Expert 1
   MSwitch_Extensions 1
   MSwitch_Help 1
   MSwitch_Ignore_Types notify allowed at watchdog doif fhem2fhem telnet FileLog readingsGroup FHEMWEB autocreate eventtypes readingsproxy svg cul
   MSwitch_Include_Devicecmds 1
   MSwitch_Include_MSwitchcmds 1
   MSwitch_Include_Webcmds 1
   MSwitch_Inforoom MSwitch
   MSwitch_Lock_Quickedit 1
   MSwitch_Mode Notify
   MSwitch_Safemode 1
   event-on-update-reading 1
   eventMap   /exec_cmd_1:read_file/exec_cmd_1 ID 1:clear_readings/
   group      4_device with readings
   room       5_Einstellungen
   verbose    4
   webCmd     read_file:clear_readings



Teilweise bekomme ich veraltete, teilweise gar keine Werte angezeigt - je nach Reading, obwol auch im state.file ein neuerer Wert abgespeichert ist. Ich vermute das Problem im Zusammenhang mit dem fehlenden event, da das Logfile wie beschrieben nicht von fhem erzeugt ist. Im weiteren habe ich das Modul inotify - welches ein event bei Änderung von Dateien erzeugen kann eingebunden. Wo aber nun hin mit dem event?



Gruß Manuel
FHEM 6 auf RaspPi V3:
HM_LAN / CUNX / HUEBridge /OneWire / Homebridge / SONOS / Harmony

Petrosilius Zwackelmann

Hallo zusammen,

das Problem besteht nicht mehr. Leider kann ich nicht sagen welche Änderung nun ausschlaggeben war. Die untenstehenden Zeilen sind unverändert und nun klappt es.

Gruß Manuel
FHEM 6 auf RaspPi V3:
HM_LAN / CUNX / HUEBridge /OneWire / Homebridge / SONOS / Harmony