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

My M216S-E is not able to be paired #7

Closed
szafran81 opened this issue Feb 12, 2022 · 10 comments
Closed

My M216S-E is not able to be paired #7

szafran81 opened this issue Feb 12, 2022 · 10 comments

Comments

@szafran81
Copy link

I've tried several times to pair my M216S-E using this integration, and it always says that it connected to the kettle but cannot pair with it.
Any ideas?

NOTE: I'm able to pair it using the ready4sky integration
NOTE2: I've removed other BLE devices from the list, just in case.

2022-02-12 21:45:21 DEBUG (MainThread) [custom_components.skykettle.config_flow] Scan result: [ BleDevice(mac='ED:59:6E:4D:16:52', name='RK-M216S-E')]
2022-02-12 21:45:21 DEBUG (MainThread) [custom_components.skykettle.config_flow] Filtered scan result: [BleDevice(mac='ED:59:6E:4D:16:52', name='RK-M216S-E')]
2022-02-12 21:45:22 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:22 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:23 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:23 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:24 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:24 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #1
2022-02-12 21:45:25 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:25 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:25 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:25 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:26 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:26 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #2
2022-02-12 21:45:27 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:27 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:27 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:27 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #3
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:29 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:31 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:31 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #4
2022-02-12 21:45:31 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:31 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:32 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:32 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:33 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:33 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for mqtt doing blocking calls at homeassistant/components/mqtt/__init__.py, line 371: return self._value_template.async_render_with_possible_json_value(
2022-02-12 21:45:34 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for mqtt doing blocking calls at homeassistant/components/mqtt/__init__.py, line 371: return self._value_template.async_render_with_possible_json_value(
2022-02-12 21:45:34 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for mqtt doing blocking calls at homeassistant/components/mqtt/__init__.py, line 371: return self._value_template.async_render_with_possible_json_value(
2022-02-12 21:45:35 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:35 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #1
2022-02-12 21:45:35 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:35 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Connected to the Kettle
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Writing command ff, data: [9c a2 e7 99 4d b0 7c d8]
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Received: 00
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.skykettle] Auth: ok=False
2022-02-12 21:45:36 WARNING (MainThread) [custom_components.skykettle.kettle_connection] Auth failed. You need to enable pairing mode on the kettle.
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Disconnected
2022-02-12 21:45:36 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:37 INFO (SyncWorker_6) [custom_components.skykettle.kettle_connection] Disposed.
2022-02-12 21:45:55 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:55 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:55 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:55 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #1
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:45:57 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:45:59 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:45:59 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #2
2022-02-12 21:45:59 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:45:59 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:00 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:00 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:01 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:46:01 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #3
2022-02-12 21:46:02 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:46:02 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:02 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:02 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:03 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:46:03 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #4
2022-02-12 21:46:04 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:46:04 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:04 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:04 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Connected to the Kettle
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Writing command ff, data: [9c a2 e7 99 4d b0 7c d8]
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Received: 02
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.skykettle] Auth: ok=False
2022-02-12 21:46:06 WARNING (MainThread) [custom_components.skykettle.kettle_connection] Auth failed. You need to enable pairing mode on the kettle.
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Disconnected
2022-02-12 21:46:06 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:46:11 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:46:11 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:11 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:11 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:12 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated
2022-02-12 21:46:12 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Timeout, retry #1
2022-02-12 21:46:13 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for websocket_api doing blocking calls at homeassistant/components/websocket_api/commands.py, line 275: integrations = await asyncio.gather(
2022-02-12 21:46:13 INFO (SyncWorker_12) [custom_components.skykettle.kettle_connection] Disposed.
2022-02-12 21:46:13 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for websocket_api doing blocking calls at homeassistant/components/websocket_api/commands.py, line 275: integrations = await asyncio.gather(
2022-02-12 21:46:13 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for websocket_api doing blocking calls at homeassistant/components/websocket_api/commands.py, line 275: integrations = await asyncio.gather(
2022-02-12 21:46:13 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call inside the event loop. This is causing stability issues. Please report issue for websocket_api doing blocking calls at homeassistant/components/websocket_api/commands.py, line 275: integrations = await asyncio.gather(
2022-02-12 21:46:13 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Updating
2022-02-12 21:46:13 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Staring gatttool...
2022-02-12 21:46:13 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Started gatttool
2022-02-12 21:46:13 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Attempting to connect...
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Connected to the Kettle
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Writing command ff, data: [9c a2 e7 99 4d b0 7c d8]
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Received: 02
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.skykettle] Auth: ok=False
2022-02-12 21:46:14 WARNING (MainThread) [custom_components.skykettle.kettle_connection] Auth failed. You need to enable pairing mode on the kettle.
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Disconnected
2022-02-12 21:46:14 DEBUG (MainThread) [custom_components.skykettle.kettle_connection] Terminated

I'm on HAOS v7.4 with 2022.2.6 core.

@ClusterM
Copy link
Owner

Seems like M216S-E is not supported for now :(
Bluetooth log after using official app can help me.

@szafran81
Copy link
Author

Ok. So how can I get that log?

@ClusterM
Copy link
Owner

ClusterM commented Feb 16, 2022

Ok. So how can I get that log?

Which smartphone are you using? Android or iPhone?

@szafran81
Copy link
Author

Sorry. Forgot to mention that.
It's POCO F2 Pro with miui.eu rom (Android - without root).

@ClusterM
Copy link
Owner

I just wrote the guide: https://github.com/ClusterM/skykettle-ha/wiki/How-to-get-HCI-log-on-Android-device
But it can be difficult for an average user.

@szafran81
Copy link
Author

szafran81 commented Feb 17, 2022

I've tried creating the log a few times. Everything seems to be ok, except the resulting .zip doesn't contain anything about BT log (there's no FS/data/log folder in my .zips - only FS/data).
I'm on MIUI13/A12 now - maybe that's the reason?

EDIT: {facepalm}
I've found them. It seems that A12 exports them in FS/data/misc/bluetooth/logs
At least I think I've found it - it's a binary file.
btsnoop_hci.log

After enabling the logs I've launched the R4S app and tried pairing with the kettle for the first time (but pressed the pair button on my phone to soon, and it said that it can't pair), then tried for second time, and this time everything went ok. After that I've exited the app, and downloaded the logs.

@szafran81
Copy link
Author

@ClusterM is that the correct file or did I screw up something?

@ClusterM
Copy link
Owner

Sorry for not so fast answer, I was busy for a while. I'll check it soon.

@ClusterM
Copy link
Owner

Please try new version: v1.3

@szafran81
Copy link
Author

Sorry for not so fast answer, I was busy for a while. I'll check it soon.

No problem. Was just asking in case the log should be text not binary.

Please try new version: v1.3

Just updated, and the kettle paired without errors.
So looks like it's working now.
Thank you very much for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants