Hallo,
ich bin egrade dabei wie wild überall das Statistics Modul einzubinden.
So habe ich das auch bei meinem HarmonyHub gemacht um eine bestimmte Activity zu tracken. Das klappt auch super, ich habe das über singularReadings gemacht. Da das Modul (standardmäßig?) auch automatisch "state" trackt, habe ich state bei excludedReadings angegeben. Aber leider interessiert ihn das nicht, ich bekomme auch ein Statistics Reading für state. Wie bekomme ich das denn weg?
Hier das List vom Stat:
nternals:
CFGFN
DEF HarmonyHub
DEV_REGEXP HarmonyHub
FUUID 6333be49-f33f-f685-165e-77580b988f648301
NAME StatDeviceHarmony
NOTIFYDEV global,HarmonyHub
NR 610772
NTFY_ORDER 10-StatDeviceHarmony
PREFIX stat
STATE Updated stats for: HarmonyHub
TYPE statistics
eventCount 619
READINGS:
2022-09-28 05:26:21 monitoredDevicesharmony HarmonyHub
2022-10-02 08:59:55 nextPeriodChangeCalc 2022-10-02 09:59:55
2022-10-02 09:01:32 state Updated stats for: HarmonyHub
fhem:
modulVersion $Date: 2022-07-12 07:25:06 +0200 (Tue, 12 Jul 2022) $
nextPeriodChangeTime 1664697595
hmccu:
Attributes:
excludedReadings HarmonyHub:state
room Statistics
singularReadings HarmonyHub:activity:Kodi:Day|Month|Year
Und hier vom HarmonyHub:
Internals:
CONNECTS 68
ConnectionState LoggedIn
DEF 192.168.1.59
FD 43
FUUID 5d02a591-f33f-1e42-9975-6bc1098b7e73c9ff
FVERSION 37_harmony.pm:0.191700/2019-04-13
LAST_CONNECT 2022-10-01 13:46:01
LAST_DISCONNECT 2022-10-01 13:45:59
NAME HarmonyHub
NOTIFYDEV global
NR 141
NTFY_ORDER 50-HarmonyHub
STATE Aktuelle Aktivität: Kodi
Letzte Aktivität: PowerOff
TYPE harmony
activityStatus 2
currentActivityID 49298458
eventCount 5008
hubSwVersion 4.15.307
hubUpdate 0
ip 192.168.1.59
previousActivityID -1
protocol XMPP
syncStatus 0
OLDREADINGS:
READINGS:
2022-10-02 07:40:22 activity Kodi
2022-10-02 07:40:22 currentActivity Kodi
2022-10-02 07:40:15 previousActivity PowerOff
2022-10-02 08:52:52 statActivityDayKodi 01:12:30
2022-10-01 23:59:55 statActivityDayKodiLast 02:26:21
2022-10-02 09:01:32 statStateDay Connected: 4d 03:35:11 Connected_Count: 1 (since: 2022-09-28_05:26:21)
2022-10-02 09:01:32 statStateMonth Connected: 4d 03:35:11 Connected_Count: 1 (since: 2022-09-28_05:26:21)
2022-10-02 09:01:32 statStateYear Connected: 4d 03:35:11 Connected_Count: 1 (since: 2022-09-28_05:26:21)
2022-10-01 13:46:01 state Connected
config:
activity:
HASH(0x55a96e53ee70)
HASH(0x55a96e4118b8)
HASH(0x55a96e639d20)
HASH(0x55a96e55c940)
HASH(0x55a96a8d91e0)
HASH(0x55a96953c1c0)
content:
contentDeviceHost https://content.dhg.myharmony.com/1.0/Device;{deviceProfileUri}
contentImageHost https://d1tk8oqnnsddt5.cloudfront.net/1.0/station/{stationId}/image;maxX=40;maxY=40
contentServiceHost https://content.dhg.myharmony.com/1.0/Service/{providerId}
contentUserHost https://content.dhg.myharmony.com/1.0/User;{userProfileUri}
householdUserProfileUri svcs.myharmony.com/res//household/1197166-GVYQqnDJmQYItEj5AKRTyuBuIPjgSgAlLDwpRfEBpX8=/user/default
device:
HASH(0x55a96d46b800)
HASH(0x55a96a5a9928)
HASH(0x55a96d0f13c8)
HASH(0x55a96c688848)
HASH(0x55a96d3f0c80)
HASH(0x55a96c864e48)
global:
locale de-DE
timeStampHash e6caf222-4c14-46ba-ae6a-03126388cb4a3e595b21-8d68-4e9a-9b35-553b55e444dd/8f75c670-4b62-449e-aad1-e6b04fd685b7fe106360-f7ae-4a99-8f3a-acbadd39648530204e5e-54cf-45f3-b808-699a77776e6710273830Harmony+Hubde-DEjanvanscheidt@hotmail.comDEMS-5d0ccc7f-0e96-4d89-9a03-21871c02600e0-1571004301False-1871086257europe%2fberlinTrue-4525369801;1be62fb7c6f9debed067376af7f4d23f
sequence:
sla:
latestSLAAcceptedDate /Date(1521747698580+0000)/
discoveryinfo:
accountId 9401029
current_fw_version 4.15.307
discoveryServerUri https://svcs.myharmony.com/Discovery/Discovery.svc
discoveryServerUriCF https://cf-svcs.myharmony.com/Discovery/Discovery.svc
email janvanscheidt@hotmail.com
friendlyName Harmony Hub
host_name Harmony Hub
hubId 106
hubProfiles {Harmony="2.0"}
ip 192.168.1.59
minimumOpenApiClientVersionRequired 1
mode 3
openApiVersion 2
port 5222
productId Pimento
protocolVersion {XMPP="1.0", HTTP="1.0", RF="1.0", WEBSOCKET="1.0"}
recommendedOpenApiClientVersion 1
remoteId 10273830
setupSessionClient MS-5d0ccc7f-0e96-4d89-9a03-21871c02600e
setupSessionIsStale true
setupSessionSetupType
setupSessionType 0
setupStatus 0
uuid 5cfbd4df245aa53e75a8e69ad25ca57d46cfef59
helper:
PARTIAL
UserAuthToken
_98_statistics StatDeviceHarmony
hmccu:
Attributes:
event-on-change-reading .*
group Multimedia
room Wohnzimmer
stateFormat Aktuelle Aktivität: activity
Letzte Aktivität: previousActivity
webCmd activity
Die "StatState" readings will ich nicht haben, aber über exlude bekomme ich sie auch nicht weg.
Sieht jemand meinen Fehler?
Danke!
Gruß desmo
Beobachte mal den Event Monitor, dann wirst Du sehen: 'state' ist in FHEM 'speziell'
An Deiner Stelle würde ich nicht allzu viel Zeit in das Thema stecken, es schadet ja nicht wirklich.
Zitat von: betateilchen am 02 Oktober 2022, 10:50:07
Beobachte mal den Event Monitor, dann wirst Du sehen: 'state' ist in FHEM 'speziell'
An Deiner Stelle würde ich nicht allzu viel Zeit in das Thema stecken, es schadet ja nicht wirklich.
Danke für die Antwort :)
ja stimmt es schadet nicht, nervt mich aber. Zum einen will ich das reading gar nicht sehen und zum anderen habe ich noch ein anderes Statistic device bei dem state nicht zum reading wird.
Unterschied: Dort benutze ich nicht singularReadings sondern minAvgMaxReadings. Und dort bekomme ich keine reading für state.
Feature / Bug von Statistics?!
Gruß desmo
Frage: Warum
Zitathabe ich noch ein anderes Statistic device
Bei mir reicht ein richtig eingerichtetes statistics-Device für das komplette System! (Habs nicht gezählt, sind aber so ca. 50-70 Geräte)
Zitat von: Icinger am 02 Oktober 2022, 14:40:41
Frage: Warum
Bei mir reicht ein richtig eingerichtetes statistics-Device für das komplette System! (Habs nicht gezählt, sind aber so ca. 50-70 Geräte)
ja das ist auch mein Ziel!
Aber wenn ich mit dem prefix rumspiele und ein bissel was ändere haue ich mir dann gleich bei zig Geräten readings rein die ich danach wieder mühselig entfernen muss...
Von daher: Ich experimentiere klein und sobald es passt nehme ich alles in ein device auf. Nur das mit state versehe ich noch nicht ganz...