Hallo ich benutze das Modul CustomReadings habe aber das Problem dass die Daten nicht in der Datenbank erscheinen:
ich kann die Werte in FHEM sehen aber wie gesagt nicht in der Datenbank. Was ist falsch. Kann man keine
CustomReadings in die DB ablegen?
anbei meine Implementierung:
define OG.AzS.NUC.SysMonExt CustomReadings
attr OG.AzS.NUC.SysMonExt DbLogExclude .*
attr OG.AzS.NUC.SysMonExt event-on-change-reading .*
attr OG.AzS.NUC.SysMonExt group Grp-SystemMonitor
attr OG.AzS.NUC.SysMonExt icon system_fhem
attr OG.AzS.NUC.SysMonExt interval 60
attr OG.AzS.NUC.SysMonExt readingDefinitions CPU0_Temp:qx(sensors | grep "Core 0" | cut -d "+" -f2 | cut -d "C" -f1), \
CPU1_Temp:qx(sensors | grep "Core 1" | cut -d "+" -f2 | cut -d "C" -f1), \
CPU2_Temp:qx(sensors | grep "Core 2" | cut -d "+" -f2 | cut -d "C" -f1), \
CPU3_Temp:qx(sensors | grep "Core 3" | cut -d "+" -f2 | cut -d "C" -f1), \
RAM_Gesamt:qx(free -b | tr -s ' '| grep "Mem" | cut -d " " -f2), \
RAM_Belegt:qx(free -b | tr -s ' '| grep "Mem" | cut -d " " -f3), \
RAM_Frei:qx(free -b | tr -s ' '| grep "Mem" | cut -d " " -f4), \
RAM_Belegt_Perc:(qx(free -b | tr -s ' '| grep "Mem" | cut -d " " -f3) / qx(free -b | tr -s ' '| grep "Mem" | cut -d " " -f2) * 100.0)
attr OG.AzS.NUC.SysMonExt room 1.0.0_Haus,9.6_System
in die DB speichere ich die Werte per
fhem("set DBLogging addLog OG.AzS.NUC.SysMonExt:.* !useExcludes");;\