OK, I finally got back to this again. One error I noticed was that I had single quotes around the MQTT username and password, which the HASSIO broker didn’t seem to like. However, I’m still not seeing tracker devices being created. Here’s the log from my MQTT broker:
1555768066: |-- data=username=xxxx&password=yyyy&topic=&acc=-1&clientid=
[INFO] found mqtt on local database
1555768066: |-- getuser(mqtt) AUTHENTICATED=1 by http
1555768066: New client connected from 192.168.16.91 as ground_floor31286 (c1, k60, u'mqtt').
1555768067: |-- mosquitto_auth_acl_check(..., client id not available, mqtt, monitor/ground_floor/pat_s_iphone_7, MOSQ_ACL_WRITE)
1555768067: |-- url=http://127.0.0.1:8080/superuser
1555768067: |-- data=username=mqtt&password=&topic=&acc=-1&clientid=
1555768067: |-- aclcheck(mqtt, monitor/ground_floor/pat_s_iphone_7, 2) SUPERUSER=Y by http
1555768067: |-- Cached [52199086E1E8F745A616308A7A88C09E2572EBA9] for (client id not available,mqtt,2)
1555768067: |-- mosquitto_auth_acl_check(..., client id not available, mqtt, monitor/ground_floor/pat_s_iphone_7, MOSQ_ACL_READ)
1555768067: |-- aclcheck(mqtt, monitor/ground_floor/pat_s_iphone_7, 1) CACHEDAUTH: 0
1555768067: |-- mosquitto_auth_acl_check(..., client id not available, mqtt, monitor/ground_floor/pat_s_iphone_7, MOSQ_ACL_READ)
1555768067: |-- aclcheck(mqtt, monitor/ground_floor/pat_s_iphone_7, 1) CACHEDAUTH: 0
1555768067: |-- mosquitto_auth_acl_check(..., client id not available, mqtt, monitor/ground_floor/pat_s_iphone_7, MOSQ_ACL_READ)
1555768067: |-- aclcheck(mqtt, monitor/ground_floor/pat_s_iphone_7, 1) CACHEDAUTH: 0
1555768067: Client ground_floor31286 disconnected.
Output from monitor with -V:
> btle text pid = 30881
> btle listener pid = 30883
> mqtt listener pid = 30886
> packet listener pid = 30890
> beacon database time trigger pid = 30893
[-] 0.2.184 20-04-2019 02:47:35 pm [CMD-RAND] [passed filter] data: 38:F2:C8:84:17:18 pdu: ADV_NONCONN_IND rssi: -73 dBm flags: none man: Microsoft delay: 0
[-] 0.2.184 20-04-2019 02:47:36 pm [CMD-INFO] **** started arrival scan [x1 max rep] ****
[-] 0.2.184 20-04-2019 02:47:36 pm [CMD-RAND] [passed filter] data: 4E:6B:A4:4C:7B:FB pdu: ADV_IND rssi: -68 dBm flags: 0x1a man: Apple, Inc. delay: 1
[-] 0.2.184 20-04-2019 02:47:43 pm [CMD-SCAN] (No. 1) 88:6B:6E:3E:59:79 arrival?
[-] 0.2.184 20-04-2019 02:47:44 pm [CMD-NAME] 88:6B:6E:3E:59:79 Pat’s iPhone 7 Plus Apple Inc
monitor/ground_floor/pat_s_iphone_7/device_tracker home
[-] 0.2.184 20-04-2019 02:47:45 pm [CMD-POST] monitor/ground_floor/pat_s_iphone_7/device_tracker
[-] 0.2.184 20-04-2019 02:47:46 pm [CMD-POST] monitor/ground_floor/pat_s_iphone_7
{
"id":"88:6B:6E:3E:59:79",
"confidence":"100",
"name":"Pat's iPhone 7",
"manufacturer":"Apple Inc",
"type":"KNOWN_MAC",
"retained":"false",
"timestamp":"Sat Apr 20 2019 14:47:43 GMT+0100 (IST)",
"version":"0.2.184"
}