Anwesenheitserkennung Presence - Bluetooth iPhone 6s

Begonnen von Simon74, 02 August 2017, 17:22:22

Vorheriges Thema - Nächstes Thema

Simon74

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..

rubbertail

Einmal gekoppelt mit dem Bluetoothdongle deines fhem - nicht einmal gekoppelt mit irgendwas anderem
FHEM auf Raspi, CUL433, CUL868, RFXTRX433e, CULCuBE
FRITZ: Fritzbox7590AX, 6xFritzDECT301, 10xFritzDECT200, FritzRepeater 6000
MAX!: Fensterkontakte
netatmo: Wetterstation & Thermostat
Milights, IT, Withings, HUE

Simon74

#2
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


Jamo

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?
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/ConbeeII, FB, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack

Simon74

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"


amenomade

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?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Simon74

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..

MikeRoxx

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

Proxmox mit FHEM und Debmatic auf Deb. Buster
HM / HmIP / FS20

Jamo

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.
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/ConbeeII, FB, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack