addon-presence-monitor icon indicating copy to clipboard operation
addon-presence-monitor copied to clipboard

Starting add-on powers off the BT radio

Open msbc42 opened this issue 4 years ago • 1 comments

Installed add-on for first time on HA 117.5 - running in Docker Supervised on Ubuntu - Intel NUC.

Installed bluez on host and checked status of BT:

mark@mschome:/usr/share/hassio$ sudo hciconfig hci0 -a
hci0:	Type: Primary  Bus: USB
	BD Address: 0C:7A:15:87:C0:25  ACL MTU: 1021:4  SCO MTU: 96:6
	UP RUNNING 
	RX bytes:53763 acl:0 sco:0 events:2614 errors:0
	TX bytes:42433 acl:0 sco:0 commands:2501 errors:0
	Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH SNIFF 
	Link mode: SLAVE ACCEPT 
	Name: 'mschome'
	Class: 0x0c0104
	Service Classes: Rendering, Capturing
	Device Class: Computer, Desktop workstation
	HCI Version: 5.1 (0xa)  Revision: 0x100
	LMP Version: 5.1 (0xa)  Subversion: 0x100
	Manufacturer: Intel Corp. (2)

mark@mschome:/usr/share/hassio$ hcitool dev
Devices:
	hci0	0C:7A:15:87:C0:25

Start add-on on HA while rerunning the above commands and see:

mark@mschome:~$ hcitool dev
Devices:
mark@mschome:~$ hcitool dev
Devices:
mark@mschome:~$ sudo hciconfig hci0 -a
hci0:	Type: Primary  Bus: USB
	BD Address: 0C:7A:15:87:C0:25  ACL MTU: 1021:4  SCO MTU: 96:6
	DOWN 
	RX bytes:61306 acl:0 sco:0 events:3118 errors:0
	TX bytes:50525 acl:0 sco:0 commands:3005 errors:0
	Features: 0xbf 0xfe 0x0f 0xfe 0xdb 0xff 0x7b 0x87
	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
	Link policy: RSWITCH SNIFF 
	Link mode: SLAVE ACCEPT 

In the add-on log I see:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 

-----------------------------------------------------------
 Hass.io Add-on: Bluetooth Presence Monitor
 Passive Bluetooth presence detection of beacons, cell phones, and other Bluetooth devices.
-----------------------------------------------------------
 Add-on version: 1.0.0
 There is an update available for this add-on!
 Latest add-on version: null
 Please consider upgrading as soon as possible.
 System: Ubuntu 20.04.1 LTS  (amd64 / qemux86-64)
 Home Assistant version: 0.117.5
 Supervisor version: 2020.11.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] monitor.sh: executing... 

[12:56:13] INFO: Updating running configuration...
[cont-init.d] monitor.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:56:13] INFO: Starting required services...
Starting system message bus: dbus.
Starting bluetooth: bluetoothd.
[12:56:13] INFO: Updating Bluetooth Presence Monitor to latest version...
From https://github.com/andrewjfreyer/monitor
 + 87d433b...53c512e master     -> origin/master  (forced update)
Previous HEAD position was 87d433b Merge pull request #289 from hmmbob/patch-1
HEAD is now at 53c512e Merge pull request #318 from dxdc/patch-1
Already up to date.
[12:56:16] INFO: Starting Bluetooth Presence Monitor...
> updated monitor (v. Unknown) -> (v. 0.2.200)...
> using custom config directory [/opt/monitor]
using /opt/monitor as config dir
> F0:99:B6:36:3B:63 confidence topic: presence/mschome/mscphone (has not previously connected to hci0)
> F0:99:B6:36:3B:63 device_tracker topic: presence/mschome/mscphone/device_tracker [not_home or home]
[-] 0.2.200 19-11-2020 12:56:19 PM [CMD-INFO]	cycling bluetooth hardware on hci0. please wait a moment...
[-] 0.2.200 19-11-2020 12:56:25 PM [CMD-INFO]	cycling bluetooth hardware on hci0. please wait a moment...
[-] 0.2.200 19-11-2020 12:56:30 PM [CMD-INFO]	cycling bluetooth hardware on hci0. please wait a moment...
[-] 0.2.200 19-11-2020 12:56:35 PM [CMD-INFO]	cycling bluetooth hardware on hci0. please wait a moment...

msbc42 avatar Nov 19 '20 01:11 msbc42

Is this project abandoned? No messages from Limych since April.

msbc42 avatar Nov 24 '20 05:11 msbc42