Hallo,
my Darling ist von iPhone4 auf iPhone6s+ umgestiegen.
Mit dem neuen iPhone6.. funktioniert die Bluetooth Anwesenheitserkennung nicht mehr zuverlässig bzw. deaktiviert sich Bluetooth am iPhone, wenn das Bluetooth Einstellungsmenü geöffnet wird, wird es gefunden.
-> Fehler in presense/collectord selbst kann ich auschliessen, mein Android ist immer zuverlässig "presend".
In anderen Beiträgen lese ich: das iPhone muss einmal gekoppelt werden und Bluetooth bleibt dann an..
Gekoppelt wurde das neue iPhone schon mit dem Auto, trotzdem deaktiviert sich Bluetooth.
Danke für Hinweise..
Einmal gekoppelt mit dem Bluetoothdongle deines fhem - nicht einmal gekoppelt mit irgendwas anderem
oha, Danke :)
Wenn nichts mehr weiterzulesen ist, war es das..
EDIT: Hier noch meine Pairing Aktion (mal sehen ob es zukünftig hilft):
root@r1 ~ > bluetoothctl
[NEW] Controller 00:1A:7D:DA:71:0A r1 [default]
[bluetooth]# help
Available commands:
list List available controllers
show [ctrl] Controller information
select <ctrl> Select default controller
devices List available devices
paired-devices List paired devices
power <on/off> Set controller power
pairable <on/off> Set controller pairable mode
discoverable <on/off> Set controller discoverable mode
agent <on/off/capability> Enable/disable agent with given capability
default-agent Set agent as the default one
advertise <on/off/type> Enable/disable advertising with given type
set-advertise-uuids [uuid1 uuid2 ...] Set advertise uuids
set-advertise-service [uuid][data=[xx xx ...] Set advertise service data
set-advertise-manufacturer [id][data=[xx xx ...] Set advertise manufacturer data
set-advertise-tx-power <on/off> Enable/disable TX power to be advertised
set-scan-filter-uuids [uuid1 uuid2 ...] Set scan filter uuids
set-scan-filter-rssi [rssi] Set scan filter rssi, and clears pathloss
set-scan-filter-pathloss [pathloss] Set scan filter pathloss, and clears rssi
set-scan-filter-transport [transport] Set scan filter transport
set-scan-filter-clear Clears discovery filter.
scan <on/off> Scan for devices
info [dev] Device information
pair [dev] Pair with device
trust [dev] Trust device
untrust [dev] Untrust device
block [dev] Block device
unblock [dev] Unblock device
remove <dev> Remove device
connect <dev> Connect device
disconnect [dev] Disconnect device
list-attributes [dev] List attributes
set-alias <alias> Set device alias
select-attribute <attribute> Select attribute
attribute-info [attribute] Select attribute
read Read attribute value
write <data=[xx xx ...]> Write attribute value
notify <on/off> Notify attribute value
register-profile <UUID ...> Register profile to connect
unregister-profile Unregister profile
version Display version
quit Quit program
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1A:7D:DA:71:0A Discovering: yes
[NEW] Device 70:48:0F:74:08:15 Susis iPhone
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 00:1A:7D:DA:71:0A Discoverable: yes
[bluetooth]# pair 70:48:0F:74:08:15
Attempting to pair with 70:48:0F:74:08:15
[CHG] Device 70:48:0F:74:08:15 Connected: yes
[CHG] Device 70:48:0F:74:08:15 Modalias: bluetooth:v004Cp6F01d0A30
[CHG] Device 70:48:0F:74:08:15 UUIDs: 00000000-deca-fade-deca-deafdecacafe
[CHG] Device 70:48:0F:74:08:15 UUIDs: 00001000-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 70:48:0F:74:08:15 ServicesResolved: yes
[CHG] Device 70:48:0F:74:08:15 Paired: yes
Pairing successful
[CHG] Device 70:48:0F:74:08:15 ServicesResolved: no
[CHG] Device 70:48:0F:74:08:15 Connected: no
[bluetooth]# trust 70:48:0F:74:08:15
[CHG] Device 70:48:0F:74:08:15 Trusted: yes
Changing 70:48:0F:74:08:15 trust succeeded
[bluetooth]# paired-devices
Device 70:48:0F:74:08:15 Susis iPhone
Hallo Simon,
ich habe das gleiche Problem wie Du mit dem iPhone 6s.
Ich habe jetzt nach deiner Anleitung mein iPhone mit dem Raspberry BT dongle gepaired, ich bekomme mein iPhone auch angezeigt als 'paired'
[bluetooth]# paired-devices
Device 54:A5:D3:DB:21:29 iPhone
Trotzdem ist das iPhone weiter absent nach einiger Zeit.
Hast Du da noch eine Erkenntnis?
Hallo inoma,
Wollte eigentlich eh schon im Thread weiterschreiben..
Meine Erkenntnis ist diese das Paring (mit dem presense Bluetooth-Device) rein gar nichts bewirkt.
Auch hier noch dasselbe: Nach gewisser Zeit Status: "absend"
Ja, so ist es. "Moderne" Geräte schalten die Schnittstellen (WLAN, Bluethooth, usw) nach bestimmter Zeit aus. Wie soll dann FHEM unterscheiden, ob das Gerät "weg" ist, oder ob es doch noch im Haus ist, aber nur schläft?
Zitat von: amenomade am 04 August 2017, 21:33:30
Wie soll dann FHEM unterscheiden, ob das Gerät "weg" ist, oder ob es doch noch im Haus ist, aber nur schläft?
Die Frage hat eigentlich niemand gestellt..
Das müßte aber die Antwort auf das Problem sein.
Ich mache die Anwesendheitserkennung über WLAN und bei Android kann ich sagen "WLAN im Ruhemodus an" . Gibt es so etwas beim iPhone und BT nicht?
Gesendet von meinem A0001 mit Tapatalk
Hallo Mike,
nicht das ich wüsste.
Deswegen ja die Idee mit der BT Kopplung zum Dongle, damit hätte man genau das erreicht das BT 'an' bleibt.