Guten Abend
Ich hab ein Problem mit der structure.
Wenn in dem Fall handy_patricia present ist
Und oG_TAG absent steht im state absent.
Es sollte aber so sein das wenn eins von den beiden Geräten present ist das die structure present (Zuhause) anzeigt
Im Bild sieht man das handy_patricia present ist aber trotzdem steht da absent (Abwesend)
Save config
anyViews
0_System
1_UG
2_EG
3_1.OG
4_2.OG
Wecker.Aus 5_Klingel
6_Heizung
7_Muelltonne
8_Zuhause
9_Batterie
FBDECT
Garten
HUEDevice
ge_wht_steckdose Keller
Plots
Unsorted
icoEverything Everything
Commandref
Remote doc
Edit files
Select style
Event monitor
Internals:
ADDRESS 192.168.0.106
DEF lan-ping 192.168.0.106 3
FUUID 635fa5b7-f33f-cdd4-1b2a-8e3feaaa38a057ac
INTERVAL_NORMAL 3
INTERVAL_PRESENT oG_TAG
MODE lan-ping
NAME handy_patricia
NOTIFYDEV global
NR 453
NTFY_ORDER 50-handy_patricia
STATE Zuhause
TYPE PRESENCE
eventCount 14071
READINGS:
2022-11-01 12:06:54 model lan-ping
2022-11-01 17:44:36 presence present
2022-11-01 17:44:36 state present
helper:
CURRENT_STATE present
DISABLED 0
RUNNING_PID:
abortFn PRESENCE_ProcessAbortedScan
arg handy_patricia|192.168.0.106|0|4
bc_pid 36663
finishFn PRESENCE_ProcessLocalScan
fn PRESENCE_DoLocalPingScan
pid 10235
telnet telnetForBlockingFn_1667240976.92415_127.0.0.1_35134
timeout 60
abortArg:
Attributes:
eventMap absent:Abwesend present:Zuhause
group Anwesenheit
room 8_Zuhause
Save config
anyViews
0_System
1_UG
2_EG
3_1.OG
4_2.OG
Wecker.Aus 5_Klingel
6_Heizung
7_Muelltonne
8_Zuhause
9_Batterie
FBDECT
Garten
HUEDevice
ge_wht_steckdose Keller
Plots
Unsorted
icoEverything Everything
Commandref
Remote doc
Edit files
Select style
Event monitor
Internals:
ADDRESS 7C:2F:80:C4:5F:1E
CFGFN
DEF lan-bluetooth 7C:2F:80:C4:5F:1E 127.0.0.1:5333 5
DeviceName 127.0.0.1:5333
FD 67
FUUID 6360f7bf-f33f-cdd4-d29b-544295557cd52cb8
INTERVAL_NORMAL 5
INTERVAL_PRESENT 5
MODE lan-bluetooth
NAME oG_TAG
NOTIFYDEV global
NR 26635
NTFY_ORDER 50-oG_TAG
PARTIAL
STATE Zuhause
TYPE PRESENCE
eventCount 4387
READINGS:
2022-11-01 17:46:28 batteryPercent 100
2022-11-01 17:46:28 batteryPercentAge 3
2022-11-01 11:41:03 command_accepted yes
2022-11-01 17:46:28 daemon lepresenced V0.93
2022-11-01 17:46:28 device_name Gigaset G-tag
2022-11-01 17:46:28 model lan-lepresenced
2022-11-01 17:46:28 presence present
2022-11-01 17:46:28 rssi -82
2022-11-01 17:46:28 state present
helper:
CURRENT_STATE present
CURRENT_TIMEOUT normal
Attributes:
absenceThreshold 4
eventMap absent:Abwesend present:Zuhause
Kannst Du Dir mal bitte angewöhnen, nur die "raw definition" unterhalb eines devices hier zu posten anstatt den kompletten Text des Bildschirminhalts zu kopieren?
Das macht das Lesen und Helfen einfacher - danke.
Wo ist das list der structure?
Vermutlich fehlt dort einfach das Attribut clientstate_priority.
2022-11-01 18:04:58 LastDevice oG_TAG
2022-11-01 18:04:58 LastDevice_Abs oG_TAG
2022-11-01 18:04:58 state Zuhause
Attributes:
clientstate_behavior relative
clientstate_priority Zuhause|present Abwesend|absent|maybe.*
eventMap absent:Abwesend present:Zuhause
room 8_Zuhause
Das hatte ich schon drin.
Was soll das jetzt?
Kann mich nur anschließen!
List der structure statt Screenshot oder eines kleinen Teils davon wäre hilfreich.
Die Definition sieht "falsch" aus, lässt sich am Screenshot aber nur vermuten.
Zitat von: wiki
define structure_name structure <struct_type> <dev1> <dev2>
Es sieht für mich so aus als würde struct_type fehlen bzw. eben handy_patricia als struct_type genommen?
EDIT: hier meine Definition
defmod strPresence structure presence pGTag pPhone
mein SELBSTGEWÄHLTER struct_type ist "presence" ;) Kann aber auch irgendwas anderes sein...
EDIT: Ausschnitt aus meiner Detailansicht (vergleichbar mit deinem ScreenShot)
Zitat
Internals
ATTR presence
CHANGEDCNT 9839
DEF presence pGTag pPhone
Vergleiche mal mein ATTR und mein DEF ;)
Gruß, Joachim
NAME structure_present_patricia
NOTIFYDEV oG_TAG,global
NR 27671
NTFY_ORDER 50-structure_present_patricia
STATE Zuhause
TYPE structure
eventCount 4355
READINGS:
2022-11-01 18:16:38 LastDevice oG_TAG
2022-11-01 18:16:38 LastDevice_Abs oG_TAG
2022-11-01 18:16:38 state Zuhause
Attributes:
clientstate_behavior relative
clientstate_priority Zuhause|present Abwesend|absent|maybe.*
eventMap absent:Abwesend present:Zuhause
room 8_Zuhause
Da fehlt immer noch ein Teil. Ich habe keine Lust mehr.
Aber das hier:
NOTIFYDEV oG_TAG,global
bestätigt im Prinzip schon diese Vermutung:
Zitat von: MadMax-FHEM am 01 November 2022, 18:10:11
Es sieht für mich so aus als würde struct_type fehlen bzw. eben handy_patricia als struct_type genommen?
Sorry hatte ein Brett vor den Kopf ;)
Hab es hinbekommen
Zitat von: Sebastian84 am 01 November 2022, 18:35:24
Sorry hatte ein Brett vor den Kopf ;)
Hab es hinbekommen
Wäre schön zu wissen wie/was es war.
Wenn du vernünftig posten würdest/könntest hätte ich gesagt poste ein list aber naja...
[gelöst] vorne dran :)
Gruß, Joachim
Der struct_type hat gefehlt wie du direkt vermutet hast