Hallo,
bei mir scheint es Probleme mit dem ROOMMATE-Modul zu geben:
Seit mehreren Tagen wechselt der Status der Bewohner / ROOMMATEs regelmäßig zwischen home und absent binnen weniger Sekunden, wie etwa hier sehr deutlich zu erkennen:
Zitat2017.10.04 00:56:49 2: ROOMMATE set rr_John absent
2017.10.04 00:59:10 2: ROOMMATE set rr_John home
2017.10.04 01:21:05 2: ROOMMATE set rr_John absent
2017.10.04 01:21:37 2: ROOMMATE set rr_John home
2017.10.04 01:24:07 2: ROOMMATE set rr_John absent
2017.10.04 01:25:33 2: ROOMMATE set rr_John home
2017.10.04 01:26:09 2: ROOMMATE set rr_John absent
2017.10.04 01:26:40 2: ROOMMATE set rr_John home
2017.10.04 01:29:44 2: ROOMMATE set rr_John absent
2017.10.04 01:30:18 2: ROOMMATE set rr_John home
2017.10.04 01:42:33 2: ROOMMATE set rr_John absent
2017.10.04 01:43:05 2: ROOMMATE set rr_John home
2017.10.04 01:45:05 2: ROOMMATE set rr_John absent
2017.10.04 01:47:07 2: ROOMMATE set rr_John home
2017.10.04 01:47:42 2: ROOMMATE set rr_John absent
2017.10.04 01:48:14 2: ROOMMATE set rr_John home
2017.10.04 01:49:21 2: ROOMMATE set rr_John absent
2017.10.04 01:49:53 2: ROOMMATE set rr_John home
2017.10.04 01:51:52 2: ROOMMATE set rr_John absent
2017.10.04 01:53:53 2: ROOMMATE set rr_John home
2017.10.04 01:56:32 2: ROOMMATE set rr_John absent
2017.10.04 01:57:06 2: ROOMMATE set rr_John home
2017.10.04 02:04:06 2: ROOMMATE set rr_John absent
2017.10.04 02:04:38 2: ROOMMATE set rr_John home
2017.10.04 02:07:18 2: ROOMMATE set rr_John absent
2017.10.04 02:07:50 2: ROOMMATE set rr_John home
2017.10.04 02:08:58 2: ROOMMATE set rr_John absent
2017.10.04 02:13:02 2: ROOMMATE set rr_John home
2017.10.04 02:13:38 2: ROOMMATE set rr_John absent
2017.10.04 02:14:08 2: ROOMMATE set rr_John home
2017.10.04 02:15:15 2: ROOMMATE set rr_John absent
2017.10.04 02:16:22 2: ROOMMATE set rr_John home
2017.10.04 02:18:01 2: ROOMMATE set rr_John absent
2017.10.04 02:18:34 2: ROOMMATE set rr_John home
2017.10.04 02:19:29 2: ROOMMATE set rr_John absent
2017.10.04 02:22:59 2: ROOMMATE set rr_John home
2017.10.04 02:23:35 2: ROOMMATE set rr_John absent
2017.10.04 02:24:43 2: ROOMMATE set rr_John home
2017.10.04 02:25:38 2: ROOMMATE set rr_John absent
2017.10.04 02:27:21 2: ROOMMATE set rr_John home
2017.10.04 02:27:56 2: ROOMMATE set rr_John absent
2017.10.04 02:43:09 2: ROOMMATE set rr_John home
2017.10.04 02:43:44 2: ROOMMATE set rr_John absent
2017.10.04 02:45:28 2: ROOMMATE set rr_John home
2017.10.04 02:46:03 2: ROOMMATE set rr_John absent
2017.10.04 02:48:59 2: ROOMMATE set rr_John home
2017.10.04 02:49:34 2: ROOMMATE set rr_John absent
2017.10.04 02:53:05 2: ROOMMATE set rr_John home
2017.10.04 02:53:40 2: ROOMMATE set rr_John absent
2017.10.04 02:54:12 2: ROOMMATE set rr_John home
...
2017.10.04 03:32:38 2: ROOMMATE set rr_John absent
2017.10.04 03:34:04 2: ROOMMATE set rr_John home
2017.10.04 03:34:59 2: ROOMMATE set rr_John absent
2017.10.04 03:35:31 2: ROOMMATE set rr_John home
2017.10.04 03:49:41 2: ROOMMATE set rr_John absent
2017.10.04 03:50:15 2: ROOMMATE set rr_John home
2017.10.04 03:50:56 2: ROOMMATE set rr_John absent
2017.10.04 03:51:26 2: ROOMMATE set rr_John home
2017.10.04 03:52:33 2: ROOMMATE set rr_John absent
2017.10.04 03:53:07 2: ROOMMATE set rr_John home
2017.10.04 03:55:52 2: ROOMMATE set rr_John absent
2017.10.04 03:56:22 2: ROOMMATE set rr_John home
2017.10.04 03:57:30 2: ROOMMATE set rr_John absent
2017.10.04 03:58:39 2: ROOMMATE set rr_John home
2017.10.04 04:02:21 2: ROOMMATE set rr_John absent
2017.10.04 04:02:52 2: ROOMMATE set rr_John home
2017.10.04 04:10:20 2: ROOMMATE set rr_John absent
2017.10.04 04:10:53 2: ROOMMATE set rr_John home
2017.10.04 04:17:42 2: ROOMMATE set rr_John absent
2017.10.04 04:19:08 2: ROOMMATE set rr_John home
2017.10.04 04:34:44 2: ROOMMATE set rr_John absent
2017.10.04 04:35:14 2: ROOMMATE set rr_John home
2017.10.04 04:39:04 2: ROOMMATE set rr_John absent
2017.10.04 04:39:37 2: ROOMMATE set rr_John home
2017.10.04 04:47:15 2: ROOMMATE set rr_John absent
2017.10.04 04:47:51 2: ROOMMATE set rr_John home
2017.10.04 04:52:14 2: ROOMMATE set rr_John absent
2017.10.04 04:52:46 2: ROOMMATE set rr_John home
2017.10.04 04:55:54 2: ROOMMATE set rr_John absent
2017.10.04 04:56:28 2: ROOMMATE set rr_John home
...
2017.10.04 04:59:42 2: ROOMMATE set rr_John absent
2017.10.04 05:00:13 2: ROOMMATE set rr_John home
2017.10.04 05:02:14 2: ROOMMATE set rr_John absent
2017.10.04 05:02:47 2: ROOMMATE set rr_John home
2017.10.04 05:03:42 2: ROOMMATE set rr_John absent
2017.10.04 05:04:17 2: ROOMMATE set rr_John home
2017.10.04 05:14:34 2: ROOMMATE set rr_John absent
2017.10.04 05:15:42 2: ROOMMATE set rr_John home
2017.10.04 05:16:49 2: ROOMMATE set rr_John absent
2017.10.04 05:17:20 2: ROOMMATE set rr_John home
2017.10.04 05:19:49 2: ROOMMATE set rr_John absent
2017.10.04 05:20:20 2: ROOMMATE set rr_John home
2017.10.04 05:23:09 2: ROOMMATE set rr_John absent
2017.10.04 05:23:42 2: ROOMMATE set rr_John home
2017.10.04 05:24:48 2: ROOMMATE set rr_John absent
2017.10.04 05:25:22 2: ROOMMATE set rr_John home
2017.10.04 05:27:01 2: ROOMMATE set rr_John absent
2017.10.04 05:27:32 2: ROOMMATE set rr_John home
2017.10.04 05:28:07 2: ROOMMATE set rr_John absent
2017.10.04 05:30:11 2: ROOMMATE set rr_John home
2017.10.04 05:31:55 2: ROOMMATE set rr_John absent
2017.10.04 05:32:27 2: ROOMMATE set rr_John home
2017.10.04 05:33:02 2: ROOMMATE set rr_John absent
2017.10.04 05:33:36 2: ROOMMATE set rr_John home
2017.10.04 05:34:11 2: ROOMMATE set rr_John absent
2017.10.04 05:34:45 2: ROOMMATE set rr_John home
2017.10.04 05:35:50 2: ROOMMATE set rr_John absent
2017.10.04 05:37:00 2: ROOMMATE set rr_John home
2017.10.04 05:39:35 2: ROOMMATE set rr_John absent
2017.10.04 05:40:09 2: ROOMMATE set rr_John home
2017.10.04 05:45:54 2: ROOMMATE set rr_John absent
2017.10.04 05:46:28 2: ROOMMATE set rr_John home
2017.10.04 05:48:39 2: ROOMMATE set rr_John absent
2017.10.04 05:49:48 2: ROOMMATE set rr_John home
2017.10.04 05:50:24 2: ROOMMATE set rr_John absent
2017.10.04 05:51:34 2: ROOMMATE set rr_John home
2017.10.04 05:53:48 2: ROOMMATE set rr_John absent
2017.10.04 05:54:56 2: ROOMMATE set rr_John home
2017.10.04 05:57:08 2: ROOMMATE set rr_John absent
2017.10.04 05:58:17 2: ROOMMATE set rr_John home
2017.10.04 05:58:52 2: ROOMMATE set rr_John absent
2017.10.04 06:01:02 2: ROOMMATE set rr_John home
2017.10.04 06:07:51 2: ROOMMATE set rr_John absent
2017.10.04 06:08:22 2: ROOMMATE set rr_John home
Ich habe für jeden Bewohner / ROOMMATE als rr_presenceDevices eine Stucture definiert (Smartphone), das zum einen ein PRESENCE-Device hat (Bluetooth) und einen Dummy (WLAN). Der Dummy wird mit einem Notify aktualisiert:
# Anwesenheitserkennung
define Fritzbox FRITZBOX 192.168.178.1
attr Fritzbox INTERVAL 300
attr Fritzbox allowTR064Command 1
attr Fritzbox event-on-change-reading mac_XX_XX_XX_XX_XX_XX
attr Fritzbox forceTelnetConnection 0
attr Fritzbox group Fritzbox
attr Fritzbox icon it_router
attr Fritzbox room Technik
#John
define JohnsSmartphone structure smartphone JohnsSmartphoneBluetooth JohnsSmartphoneWLAN
attr JohnsSmartphone alias Johns Smartphone
attr JohnsSmartphone clientstate_behavior relative
attr JohnsSmartphone clientstate_priority present absent
attr JohnsSmartphone devStateIcon .*present:ios-on-green .*absent:ios-off .*:ios-NACK
attr JohnsSmartphone event-on-change-reading state
attr JohnsSmartphone eventMap present absent
attr JohnsSmartphone icon it_smartphone
attr JohnsSmartphone webCmd present:absent
define JohnsSmartphoneBluetooth PRESENCE local-bluetooth XX:XX:XX:XX:XX:XX
attr JohnsSmartphoneBluetooth userattr devices devices_map smartphone smartphone_map structexclude
attr JohnsSmartphoneBluetooth alias Johns Smartphone Bluetooth
attr JohnsSmartphoneBluetooth devStateIcon .*present:ios-on-green .*absent:ios-off .*:ios-NACK
attr JohnsSmartphoneBluetooth devices JohnsSmartphone
attr JohnsSmartphoneBluetooth event-on-change-reading state
attr JohnsSmartphoneBluetooth eventMap present absent
attr JohnsSmartphoneBluetooth icon bluetooth
attr JohnsSmartphoneBluetooth smartphone JohnsSmartphone
define JohnsSmartphoneWLAN dummy
attr JohnsSmartphoneWLAN userattr devices devices_map smartphone smartphone_map structexclude
attr JohnsSmartphoneWLAN alias Johns Smartphone WLAN
attr JohnsSmartphoneWLAN devStateIcon .*present:ios-on-green .*absent:ios-off .*:ios-NACK
attr JohnsSmartphoneWLAN devices JohnsSmartphone
attr JohnsSmartphoneWLAN event-on-change-reading state
attr JohnsSmartphoneWLAN eventMap present absent
attr JohnsSmartphoneWLAN icon it_wifi
attr JohnsSmartphoneWLAN smartphone JohnsSmartphone
define Notify_JohnsSmartphoneWLAN notify Fritzbox:mac_XX_XX_XX_XX_XX_XX:.* {\
if (ReadingsVal("Fritzbox", "mac_XX_XX_XX_XX_XX_XX", "inactive") eq "inactive") {\
fhem("set JohnsSmartphoneWLAN absent");;\
} else {\
fhem("set JohnsSmartphoneWLAN present");;\
}\
}
define FamilieDoe RESIDENTS
attr FamilieDoe alias Familie Doe
attr FamilieDoe devStateIcon .*bewohnt:user_available:absent .*unbewohnt:user_away:home .*verreist:user_ext_away:home .*im_Bett:scene_toilet:asleep .*schlafend:scene_sleeping:awoken .*aufgestanden:scene_sleeping_alternat:home .*:user_unknown
attr FamilieDoe event-on-change-reading .*
attr FamilieDoe eventMap home:bewohnt absent:unbewohnt gone:verreist gotosleep:im_Bett asleep:schlafend awoken:aufgestanden
attr FamilieDoe group Bewohner
attr FamilieDoe icon control_building_filled
attr FamilieDoe room Anwesenheit
attr FamilieDoe webCmd state
attr FamilieDoe widgetOverride state:bewohnt,unbewohnt,verreist,schlafend,aufgestanden
define rr_John ROOMMATE FamilieDoe
attr rr_John alias John
attr rr_John devStateIcon .*anwesend:user_available:absent .*abwesend:user_away:home .*verreist:user_ext_away:home .*im_Bett:scene_toilet:asleep .*schlafend:scene_sleeping:awoken .*aufgestanden:scene_sleeping_alternat:home .*:user_unknown
attr rr_John event-on-change-reading .*
attr rr_John eventMap home:anwesend absent:abwesend gone:verreist gotosleep:im_Bett asleep:schlafend awoken:aufgestanden
attr rr_John group Bewohner
attr rr_John icon people_sensor
attr rr_John room Anwesenheit
attr rr_John rr_presenceDevices JohnsSmartphone
attr rr_John rr_realname alias
attr rr_John sortby 1
attr rr_John webCmd state
attr rr_John widgetOverride state:anwesend,im_Bett,abwesend,verreist
Habt ihr dieses Verhalten bei euch auch? Was kann der Grund dafür sein?
Das gleiche Problem besteht bei mir auch seit dem Update meiner FritzBox 7490 auf die Firmware Version 6.90. Hast du auch ein Update hinter dir?
Nein, ich habe hier eine FB 7390. Dort gibt nur Updates bis 6.83. Bei mir hat die Box schon lange kein Update mehr gemacht.
Nur mal so als Vermutung, kann es sein, dass es mit folgendem Problem zusammenhängt:
https://forum.fhem.de/index.php/topic,77556.0.html (https://forum.fhem.de/index.php/topic,77556.0.html)
Wenn ja könnte es sein, das ein Update hier hilft.
Wenn nicht wäre es ja relevant rauszufinden, welche der verschiedenen Präsenzerkennungen zu diesem ständigen Wechsel führt und ob vielleicht auch etwas im fhem log auftaucht?
Vielleicht mal die eine Präsenz zeitweise abschalten und weiter eingrenzen
8Ahcso - Bitte auch logfiles als Code und nicht Zitat eintragen