FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: fmth am 09 März 2017, 09:25:26

Titel: RESIDENTS ändert den Status nicht mehr (Erledigt)
Beitrag von: fmth am 09 März 2017, 09:25:26
Hallo,
seit einigen Tagen ist mir aufgefallen das die RESIDENTS Anzeige im Dashboard ihren Status nicht mehr ändert :(.
Hat sich da etwas geändert?
Der Status der Personen ändert sich nach wie vor (PING aufs Handy) und wird richtig angezeigt.
Aber selbst wenn alle weg (absent) sind bleibt der Home Status auf  HOME.

Gruß
Michael
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: CoolTux am 09 März 2017, 09:39:13
Auch im Webfrontend? Oder nur im Dashboard?
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 09:42:09
Auch im Webfrontend.
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: CoolTux am 09 März 2017, 09:57:10
Wie sorgst du dafür das sich der Roommatestatus ändert entsprechend presence Devices? Notify oder roommate Attribut?
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 10:05:54
Per presence Devices. Selbst wenn ich per set State den Status ändere tut sich nichts.
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: CoolTux am 09 März 2017, 10:40:12
Ok merke schon so kommen wir da nicht weiter.
Gib mir mal bitte ein list von den entsprechenden Devices

list DEVICENAME


Und hier bitte in Codetags. Irgendwie reden wie aneinander vorbei.
Du hast ein Residentsdevice und ein oder mehrere Roommatedevices. Dazu hast Du presence Devices (Handy)
Handy wird erkannt, presence Device schaltet auf present. Nun muss ein Notify oder ein Roommatedevice das erkennen.
Statt Notify kann auch DOIF sein. Aber irgendwas musst du eingestellt haben, da ein Roommate sich nicht von alleine verstellt.
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 10:52:11
Internals:
   NAME       HOME
   NR         122
   NTFY_ORDER 50-HOME
   ROOMMATES  rr_Name,rr_Name
   STATE      home
   TYPE       RESIDENTS
   Readings:
     2017-03-08 19:39:04   lastActivity    home
     2017-03-08 19:39:04   lastActivityBy  Status Name
     2017-03-08 19:39:04   lastActivityByDev rr_Name
     2017-03-08 19:39:04   lastArrival     2017-03-08 19:39:04
     2017-02-20 06:41:11   lastAwake       2017-02-20 06:41:11
     2017-03-08 09:50:58   lastDeparture   2017-03-08 09:50:58
     2017-03-08 19:39:04   lastDurAbsence  09:48:06
     2017-03-08 19:39:04   lastDurAbsence_cr 588
     2017-03-08 09:50:58   lastDurPresence 168:37:57
     2017-03-08 09:50:58   lastDurPresence_cr 10118
     2017-02-20 06:41:11   lastDurSleep    00:18:10
     2017-02-20 06:41:11   lastDurSleep_cr 18
     2017-02-20 06:23:01   lastSleep       2017-02-20 06:23:01
     2017-03-08 19:39:04   lastState       absent
     2017-03-08 19:39:04   presence        present
     2017-03-08 19:39:04   residentsAbsent 0
     2017-03-08 19:39:04   residentsAbsentDevs -
     2017-03-08 19:39:04   residentsAbsentNames -
     2017-03-04 11:31:28   residentsAsleep 0
     2017-03-04 11:31:28   residentsAsleepDevs -
     2017-03-04 11:31:28   residentsAsleepNames -
     2017-01-01 13:56:12   residentsAwoken 0
     2017-01-01 13:56:12   residentsAwokenDevs -
     2017-01-01 13:56:12   residentsAwokenNames -
     2016-10-24 11:30:06   residentsGone   0
     2016-10-24 11:30:06   residentsGoneDevs -
     2016-10-24 11:30:06   residentsGoneNames -
     2017-02-23 06:22:19   residentsGotosleep 0
     2017-02-23 06:22:19   residentsGotosleepDevs -
     2017-02-23 06:22:19   residentsGotosleepNames -
     2017-03-08 19:39:04   residentsHome   2
     2017-03-08 19:39:04   residentsHomeDevs rr_Name,rr_Name
     2017-03-08 19:39:04   residentsHomeNames Status Name, Status Name
     2016-10-24 11:30:06   residentsTotal  2
     2017-03-08 19:39:04   residentsTotalAbsent 0
     2017-03-08 19:39:04   residentsTotalAbsentDevs -
     2017-03-08 19:39:04   residentsTotalAbsentNames -
     2016-10-24 11:30:06   residentsTotalGuests 0
     2016-10-24 11:30:06   residentsTotalGuestsAbsent 0
     2016-10-24 11:30:06   residentsTotalGuestsAbsentDevs -
     2016-10-24 11:30:06   residentsTotalGuestsAbsentNames -
     2016-10-24 11:30:06   residentsTotalGuestsPresent 0
     2016-10-24 11:30:06   residentsTotalGuestsPresentDevs -
     2016-10-24 11:30:06   residentsTotalGuestsPresentNames -
     2017-03-08 19:39:04   residentsTotalPresent 2
     2017-03-08 19:39:04   residentsTotalPresentDevs rr_Name,rr_Name
     2017-03-08 19:39:04   residentsTotalPresentNames Status Name, Status Name
     2016-10-24 11:30:06   residentsTotalRoommates 2
     2017-03-08 19:39:04   residentsTotalRoommatesAbsent 0
     2017-03-08 19:39:04   residentsTotalRoommatesAbsentDevs -
     2017-03-08 19:39:04   residentsTotalRoommatesAbsentNames -
     2017-03-08 19:39:04   residentsTotalRoommatesPresent 2
     2017-03-08 19:39:04   residentsTotalRoommatesPresentDevs rr_Name,rr_Name
     2017-03-08 19:39:04   residentsTotalRoommatesPresentNames Status Name, Status Name
     2016-10-24 11:30:06   residentsTotalWakeup 0
     2016-10-24 11:30:06   residentsTotalWakeupDevs -
     2016-10-24 11:30:06   residentsTotalWakeupNames -
     2016-10-24 11:30:06   residentsTotalWayhome 0
     2016-10-24 11:30:06   residentsTotalWayhomeDelayed 0
     2016-10-24 11:30:06   residentsTotalWayhomeDelayedDevs -
     2016-10-24 11:30:06   residentsTotalWayhomeDelayedNames -
     2016-10-24 11:30:06   residentsTotalWayhomeDevs -
     2016-10-24 11:30:06   residentsTotalWayhomeNames -
     2017-03-08 19:39:04   state           home
Attributes:
   alias      Residents
   devStateIcon .*home:status_available:absent .*absent:status_away_1:home .*gone:status_standby:home .*none:control_building_empty .*gotosleep:status_night:asleep .*asleep:status_night:awoken .*awoken:status_available:home .*:user_unknown:home
   event-on-change-reading 1
   event-on-update-reading 1
   group      Home State
   icon       control_building_filled
   rgr_states home,gotosleep,asleep,awoken,absent,gone
   room       Residents
   webCmd     state


Meinst du dieses?
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 10:57:31
oder das?
Internals:
   AUTOGONE   1489180852
   CHANGED
   DEF        HOME
   DURATIONTIMER 1489053326.39878
   NAME       rr_Name
   NR         123
   NTFY_ORDER 50-rr_Name
   RESIDENTGROUPS HOME
   STATE      absent
   TYPE       ROOMMATE
   Readings:
     2017-03-09 10:54:26   durTimerAbsence 00:35:44
     2017-03-09 10:54:26   durTimerAbsence_cr 36
     2017-03-09 10:18:42   durTimerPresence 00:00:00
     2017-03-09 10:18:42   durTimerPresence_cr 0
     2017-03-09 06:45:49   durTimerSleep   00:00:00
     2017-03-09 06:45:49   durTimerSleep_cr 0
     2017-03-09 10:16:50   lastArrival     2017-03-09 10:16:50
     2017-03-09 10:17:31   lastAwake       2017-03-09 10:17:31
     2017-03-09 10:18:42   lastDeparture   2017-03-09 10:18:42
     2017-03-09 10:16:50   lastDurAbsence  00:25:29
     2017-03-09 10:16:50   lastDurAbsence_cr 25
     2017-03-09 10:18:42   lastDurPresence 00:01:52
     2017-03-09 10:18:42   lastDurPresence_cr 2
     2017-03-09 10:17:31   lastDurSleep    00:00:41
     2017-03-09 10:17:31   lastDurSleep_cr 1
     2017-03-09 08:20:33   lastLocation    home
     2017-03-09 10:18:42   lastMood        calm
     2017-03-09 10:16:50   lastSleep       2017-03-09 10:16:50
     2017-03-09 10:20:52   lastState       gone
     2017-03-09 08:20:33   location        underway
     2017-03-09 10:18:42   mood            -
     2017-03-09 10:18:42   presence        absent
     2017-03-09 10:20:52   state           absent
     2016-10-24 11:30:06   wayhome         0
   Timer:
     Rr_Namel_autogone:
       HASH       rr_Name
       MODIFIER   AutoGone
       NAME       rr_Name_AutoGone
     Rr_michael_durationtimer:
       HASH       rr_Name
       MODIFIER   DurationTimer
       NAME       rr_Name_DurationTimer
Attributes:
   alias      Status Name
   devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown:home
   event-on-change-reading 1
   event-on-update-reading 1
   group      Home State
   icon       people_sensor
   room       Residents
   rr_realname alias
   rr_states  home,gotosleep,asleep,awoken,absent,gone
   sortby     1
   webCmd     state

?
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: CoolTux am 09 März 2017, 11:09:39
Fehler gefunden. Nimm mal bei allen Roommates und bei dem Residents das event-on* raus. Das brauchst bei den Devices nicht. Und wenn Du sowas machst dann schon mal nicht so. Das bedeutet ja das er rein gar keine Events mehr generiert. Hast Du das beim presence Device auch so gemacht? Gib mal ein list vom presence Device (Handy)
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 11:31:42
Internals:
   ADDRESS    192.168.2.196
   CHANGED
   DEF        lan-ping 192.168.2.196 60 120
   MODE       lan-ping
   NAME       Name
   NOTIFYDEV  global
   NR         55
   NTFY_ORDER 50-Name
   STATE      absent
   TIMEOUT_NORMAL 60
   TIMEOUT_PRESENT 120
   TYPE       PRESENCE
   Readings:
     2017-03-09 11:30:11   presence        absent
     2017-03-09 11:30:11   state           absent
   Helper:
     ABSENT_COUNT 0
Attributes:
   event-on-change-reading state
   event-on-update-reading 1
   room       Residents
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: CoolTux am 09 März 2017, 11:34:37
event-on-update-reading raus.
Bleibt noch die Frage was das presence Device triggert um den status an den roommate weiter zu geben?

Hast du bei den Roommates und dem Residents Modul alle event-on Attribute gelöscht?
Titel: Antw:RESIDENTS ändert den Status nicht mehr
Beitrag von: fmth am 09 März 2017, 11:45:13
Danke sehr,
alle event on * gelöscht, und schon klappts wieder.
"Ich sollte mehr lesen" :o

Gruß
Michael