hass-miio-yeelink icon indicating copy to clipboard operation
hass-miio-yeelink copied to clipboard

yeelink.light.bslamp1

Open erwin opened this issue 2 years ago • 3 comments

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

erwin avatar Mar 01 '22 17:03 erwin

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

al-one avatar Mar 04 '22 05:03 al-one

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 avatar Mar 07 '22 07:03 erwin

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.

https://github.com/Maxmudjon/Get_MiHome_devices_token/issues/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

erwin avatar Mar 08 '22 03:03 erwin