Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no devices or entities (no pin) #6

Closed
wimpel opened this issue Oct 5, 2023 · 14 comments
Closed

no devices or entities (no pin) #6

wimpel opened this issue Oct 5, 2023 · 14 comments
Labels
question Further information is requested

Comments

@wimpel
Copy link

wimpel commented Oct 5, 2023

HOAS latest version in a windows virtualbox, bluetooth enabled
integration version 1.0.1

After adding the device (MAC address shows),

20231005_175543_firefox

no entities / device is added (device is a jura D4) no PIN on device

20231005_175549_firefox

any ideas?

@wimpel wimpel changed the title device added, no entities detected not detected (no pin) Oct 5, 2023
@wimpel wimpel changed the title not detected (no pin) no devices or entities (no pin) Oct 5, 2023
@AlexxIT AlexxIT added the question Further information is requested label Oct 6, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

Show diagnostics for Bluetooth integration

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

Apart from the jura smart dongle, I have two shelly plus 1 with active/passive bluetooth functionality on.

2023-10-06 10:18:31.833 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] 65:91:E6:26:EE:6D (65:91:E6:26:EE:6D): Switching from shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) to shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) (new rssi:-83 - threshold:5 > old rssi:-89)
2023-10-06 10:18:33.170 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0): Scanner watchdog time_since_last_detection: 0.7910138249862939
2023-10-06 10:18:33.170 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4): Scanner watchdog time_since_last_detection: 0.24700431793462485
2023-10-06 10:18:33.465 DEBUG (MainThread) [homeassistant.components.bluetooth] Rediscovered adapters: {'hci0': {'address': 'CC:2F:71:C8:94:74', 'sw_version': 'homeassistant', 'hw_version': 'usb:v1D6Bp0246d0542', 'passive_scan': True, 'manufacturer': 'Intel Corporate', 'product': '07dc', 'vendor_id': '8087', 'product_id': '07dc'}}
2023-10-06 10:18:33.646 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] 72:FF:50:88:78:B9 (72:FF:50:88:78:B9): Switching from shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) to shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) (new rssi:-70 - threshold:5 > old rssi:-81)
2023-10-06 10:18:33.649 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] TT214H BlueFrog (CE:34:4D:15:59:71): Switching from shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) to shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) (new rssi:-47 - threshold:5 > old rssi:-55)
2023-10-06 10:18:33.649 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4): CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', service_uuids=['00001523-0000-1000-8000-00805f9b34fb'], tx_power=-127, rssi=-47) match: set()
2023-10-06 10:18:34.941 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] TT214H BlueFrog (CE:34:4D:15:59:71): Switching from shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) to shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) (new rssi:-40 - threshold:5 > old rssi:-47)
2023-10-06 10:18:34.942 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0): CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', manufacturer_data={171: b'*\x05\x08\x03u;A\xd0\x02\x00G;\xfe:\x81\x00\x01\xb2(\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['00001523-0000-1000-8000-00805f9b34fb'], tx_power=-127, rssi=-40) match: set()
2023-10-06 10:18:36.500 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4): 7B:1D:A3:63:EF:4A AdvertisementData(manufacturer_data={6: b'\x01\t \x02\x1a\xe9\xfdl\xb5=\xbc\x0f\x06\x8f5,6Qj\xc6q\xb9\xbd\xd5\x82\xef|'}, tx_power=-127, rssi=-72) match: set()
2023-10-06 10:18:49.695 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] 72:FF:50:88:78:B9 (72:FF:50:88:78:B9): Switching from shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) to shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) (new rssi:-64 - threshold:5 > old rssi:-73)
2023-10-06 10:18:54.371 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] hci0 (CC:2F:71:C8:94:74): Scanner watchdog time_since_last_detection: 49.19085971196182
2023-10-06 10:19:01.099 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] TT214H BlueFrog (CE:34:4D:15:59:71): Switching from shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) to shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) (new rssi:-52 - threshold:5 > old rssi:-58)
2023-10-06 10:19:01.099 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4): CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', service_uuids=['00001523-0000-1000-8000-00805f9b34fb'], tx_power=-127, rssi=-52) match: set()
2023-10-06 10:19:03.173 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0): Scanner watchdog time_since_last_detection: 1.3490235729841515
2023-10-06 10:19:03.173 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4): Scanner watchdog time_since_last_detection: 1.5100263869389892
2023-10-06 10:19:04.382 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] 72:FF:50:88:78:B9 (72:FF:50:88:78:B9): Switching from shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) to shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) (new rssi:-74 - threshold:5 > old rssi:-81)
2023-10-06 10:19:08.730 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] 72:FF:50:88:78:B9 (72:FF:50:88:78:B9): Switching from shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) to shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) (new rssi:-65 - threshold:5 > old rssi:-74)
2023-10-06 10:19:13.324 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] TT214H BlueFrog (CE:34:4D:15:59:71): Switching from shellyplus1-b8d61a859ff4 (B8:D6:1A:85:9F:F4) to shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0) (new rssi:-41 - threshold:5 > old rssi:-62)
2023-10-06 10:19:13.324 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0): CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', manufacturer_data={171: b'*\x05\x08\x03u;A\xd0\x02\x00G;\xfe:\x81\x00\x01\xb2(\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['00001523-0000-1000-8000-00805f9b34fb'], tx_power=-127, rssi=-41) match: set()

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

Well. I can see AdvData in your logs. Are you sure you don't have any errors in logs? Have you checked device list later? Device may appear with some delay. It needs to get this message:

AdvertisementData(local_name='TT214H BlueFrog', manufacturer_data={171: b'*\x05\x08\x03u;A\xd0\x02\x00G;\xfe:\x81\x00\x01\xb2(\x00\x00\x00\x00\x00\x00\x00\x00'}

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

No, I do not see (relevant) errors in de debug logging (just some zigbee related errors). Any other place I need to look (I'm not a very advanced HA user)?

Do you mean the Device list in the Jura integration? It statys empty.

Can i check if the messages to the bluefrog is sent somewhere?

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

Maybe "shelly plus 1" haven't support active connection to device. You should get new device in Hass right after AdvertisementData message.

I can see you have builtin adapter:

Rediscovered adapters: {'hci0': {'address': 'CC:2F:71:C8:94:74', 'sw_version': 'homeassistant', 'hw_version': 'usb:v1D6Bp0246d0542', 'passive_scan': True, 'manufacturer': 'Intel Corporate', 'product': '07dc', 'vendor_id': '8087', 'product_id': '07dc'}}

Is you server far from Jura?

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

Do you mean after the line:
2023-10-06 10:19:13.324 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] shellyplus1-b8d61a86e0f0 (B8:D6:1A:86:E0:F0): CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', manufacturer_data={171: b'*\x05\x08\x03u;A\xd0\x02\x00G;\xfe:\x81\x00\x01\xb2(\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['00001523-0000-1000-8000-00805f9b34fb'], tx_power=-127, rssi=-41) match: set()
? I get no lines...

My coffeemachine is (for testing) located <2 meters from my HA installation.
I am indeed using a builtin adapter. Perhaps that is the problem here?

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

Yes. Component waiting this msg to get Jura model from it. It's all fine with your msg. I don't know why component doesn't get it.

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

weird. You think a different bluetoothadapter in HA might help? Perhals the shelly does not forward the message as it should?
Perhaps I can try disabling the shelly's bluetooth scanning, and remove tyhe bluetooth integration from HA..
And then restart reinstall bluetooth and see if the Jura/bluefrog can be picked up bu the builtin bluetooth adapter.

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

Definitely try to do that

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

YES!!

disabled the builtin bluetooth adapter, and pulled out mu trusted (ahem) trust... Installed bluetooth adapter in HA
20231006_112742_firefox

succes!!! now the devide is poicked up and can be added
20231006_112846_firefox

and I just pulled out the first HA-espresso.. tnx!

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

so. it looks like the builtin bluetooth-adapter was the culprit here...
You can add the jura D4 to the list of supported devices :)

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

FYI: the debug log now shows
2023-10-06 11:31:44.062 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci0 (00:1A:7D:DA:71:10) [connectable]: CE:34:4D:15:59:71 AdvertisementData(local_name='TT214H BlueFrog', manufacturer_data={171: b'*\x05\x08\x03u;A\xd0\x02\x00G;\xfe:\x81\x00\x01\xb2(\x00\x00\x00\x00\x00\x00\x00\x00'}, service_uuids=['00001530-1212-efde-1523-785feabcd123', '00001800-0000-1000-8000-00805f9b34fb', '00001801-0000-1000-8000-00805f9b34fb', '5a401523-ab2e-2548-c435-08c300000710', '5a401623-ab2e-2548-c435-08c300000710'], rssi=-77) match: set()

which looks different than the line from the log with the builtin bluetooth adapter...

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 6, 2023

It's no matter. Only local_name and manufacturer_data needs by component.
Also try to make coffee. You should have really good adapter for stable connection to Jura:
https://github.com/AlexxIT/Jura#bluetooth

@wimpel
Copy link
Author

wimpel commented Oct 6, 2023

making coffe works.. . so thank you very much!

Next step is to place the jura back to kitchen, and see is the shelly's I built in (for turning machine power on and off) will do the relaying of the bluetooth as hoped :)

afbeelding

(HA server is located in fuse box on the other side of a thick brick wall).

@wimpel wimpel closed this as completed Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants