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

yeelink.light.bslamp1 #47

Open
erwin opened this issue Mar 1, 2022 · 3 comments
Open

yeelink.light.bslamp1 #47

erwin opened this issue Mar 1, 2022 · 3 comments

Comments

@erwin
Copy link

erwin commented Mar 1, 2022

Hello,

I'm trying to connect a yeelink.light.bslamp1 and I'm getting a connection error when I try to add the Integration for the device in HA.

Bedside lamp
IP: 192.168.1.95
Token: <>
MAC: <>
Model: yeelink.light.bslamp1
Region: sg

image

I've turned on debug level logging for

2022-03-02 00:01:05 DEBUG (MainThread) [custom_components.miio_yeelink.config_flow] Miio Yeelink config flow: {'user_input': {'host': '192.168.1.95', 'token': '<<my_device_token>>', 'name': 'bedside_lamp', 'model': 'yeelink.light.bslamp1', 'mode': 'light'}, 'miio_info': None, 'errors': {'base': 'cannot_connect'}}
2022-03-02 00:01:06 ERROR (MainThread) [homeassistant.components.yeelight.config_flow] Failed to get properties from 192.168.1.95: Failed to read from the socket at 192.168.1.95:55443: [Errno 111] Connect call failed ('192.168.1.95', 55443).

I only get a "can't connect" though.

Does this my device require a different version of the API?

Note I got the token via:

https://github.com/Maxmudjon/Get_MiHome_devices_token

@al-one
Copy link
Owner

al-one commented Mar 4, 2022

Please try again after removing the physical power to the device.

@erwin
Copy link
Author

erwin commented Mar 7, 2022

I've tried a few times, but I keep getting the same result:

In the Home Assistant Add Miio-Yeelink UI:

image

And in the log (with debugging on) I just get:

2022-03-07 14:52:03 DEBUG (MainThread) [custom_components.miio_yeelink.config_flow] Miio Yeelink config flow: {'user_input': {'host': '192.168.1.95', 'token': '<my token>', 'name': 'Lamp', 'model': 'yeelink.light.bslamp1', 'mode': 'light'}, 'miio_info': None, 'errors': {'base': 'cannot_connect'}}

Note that I've verified the device is online with ping 192.168.1.95 before trying to connect and it's fine.

Connecting via yeelink android app is also working.

Do you have other other ideas on what I can do to troubleshoot?

@erwin
Copy link
Author

erwin commented Mar 8, 2022

I retrieved the token via Get Mi Home devices token.

I think Miio-Yeelink is built on top of python-miio, correct?

So I tried to connect via miiocli but get an error about the token failing checksum.

Maxmudjon/Get_MiHome_devices_token#10


I tried to use the token outlined in the readme, but the supplied APK is not able to connect to my yeelink.light.bslamp1, I get a Device offline error. The current Mi Home apk and the current Mi Yeelight apk are able to connect to my old bslamp1.

Obtain miio token

Use MiHome mod by [@vevsvevs](https://github.com/custom-components/ble_monitor/issues/7#issuecomment-595874419)
    Down apk from [СКАЧАТЬ ВЕРСИЮ 6.x.x](https://www.kapiba.ru/2017/11/mi-home.html)
    Create folder /your_interlal_storage/vevs/logs/
    Find token from vevs/logs/misc/devices.txt

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