Coder Social home page Coder Social logo

Comments (40)

syssi avatar syssi commented on May 28, 2024 3

I have added the prospective model names of an upcoming release: #53

This doesn't mean the devices are supported now. As long as the gateway reports an empty model name the devices cannot be used. Devices with empty model names doesn't respond to requests! The device support of the gateway firmware is inevitable here.

I will check if unsupported devices can be accessed by https://github.com/rytilahti/python-miio/ (the alternative protocol for polling xiaomi mi devices) mentioned by @ayufan and @qk4l.

from pyxiaomigateway.

ayufan avatar ayufan commented on May 28, 2024 2

@syssi There are two different APIs available which can be used, the second one offers a way to detect and support new devices.

I'm talking about this API: https://github.com/OpenMiHome/mihome-binary-protocol

from pyxiaomigateway.

kukki avatar kukki commented on May 28, 2024 1

I bought both latest version of Aqara smart wall switch and Aqara smart wall plug. And I have an old Aqara smart wall switch. I have same issue as above.

My gateway info is

Sub-device
{ Model: lumi.ctrl_ln2.v1,did: lumi.158d00019cfxxx,name: 排气扇/灯 } -- old version wall swtich
{ Model: lumi.ctrl_ln2.aq1,did: lumi.158d00022b7xxx,name: 台灯/日光灯 } -- new version wall switch
{ Model: lumi.ctrl_86plug.aq1,did: lumi.158d0002014xxx,name: 墙壁插座(zigbee版) } -- wall plug
Gatway:
version: 2.49.3, version code: 169
Firmware version: 1.4.1_151.0143 (currently the latest one)

lumi.ctrl_ln2.v1 works perfectly while ctrl_86plug.aq1 and ctrl_ln2.aq1 are not identified. In Mi Home app, there is no status available below the new wall switch icon.
Mi Home App

from pyxiaomigateway.

Danielhiversen avatar Danielhiversen commented on May 28, 2024 1

Do I understand correctly that no one is interesting in investigation of this problem?

No, we are interested in finding a solution to the problem.
But with the current protocol we are using, we need the model to be specified. Normally Xiaomi will publish a new firmware that support new devices and then the received packet will include a model name.
Before the 40cc5af commit we got a lot of issues where the model name is empty, and that is not of any use.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024 1

Homeassistant also needs to be updated. I will fix the incorrect model name today!

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024 1

@cxlwill prepared a PR already: #56

The corresponding line in home assistant is fine. The new devices will be part of the next HA release (0.65):

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/switch/xiaomi_aqara.py#L55

from pyxiaomigateway.

kukki avatar kukki commented on May 28, 2024 1

Can't wait for the next release of home assistant.
Manually updating both files makes new devices work perfectly.

  • ~/.homeassistant/deps/lib/python3.5/site-packages/xiaomi_gateway/__init__.py
  • /usr/local/lib/python3.5/dist-packages/homeassistant/components/switch/xiaomi_aqara.py

Thank you @syssi

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

As long as the gateway reports an empty model name the device isn't supported of the current gateway firmware. Please wait for the next firmware release of xiaomi.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

I will add the ctrl_ln2.aq1 to be prepared.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

Hmm... It's uncertain the new device model will be "ctrl_ln2.aq1". As far as the new model name is known I will provide some changes.

from pyxiaomigateway.

mylinc avatar mylinc commented on May 28, 2024

tks,have plans yet?

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

It's up to xiaomi releasing a new gateway firmware.

from pyxiaomigateway.

mylinc avatar mylinc commented on May 28, 2024

I update gateway firmware to 1.4.1_150.0143
but still error

2017-12-01 22:04:25 ERROR (SyncWorker_3) [PyXiaomiGateway] Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'cmd': 'read_ack', 'model': '', 'sid': '158d0001f24793', 'short_id': 14223, 'data': '{"voltage":3600}'}

from pyxiaomigateway.

zxjack avatar zxjack commented on May 28, 2024

Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'cmd': 'read_ack', 'model': '', 'sid': '158d0001f27b69', 'short_id': 45074, 'data': '{"voltage":3600}'}

from pyxiaomigateway.

cxlwill avatar cxlwill commented on May 28, 2024

I guess all Aqara Wall Switch has updated to new version, which means that relevant model names changed to ctrl_neutral1.aq1/ctrl_neutral2.aq1 & ctrl_ln1.aq1/ctrl_ln2.aq1.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

As long as the gateway response with an empty model name

data: {'cmd': 'read_ack', 'model': '', ...}

a new gateway firmware is required. Please be patient!

from pyxiaomigateway.

cxlwill avatar cxlwill commented on May 28, 2024

BTW, there is a new version (v2.0.0) of Aqara LAN protocol ready to be out. Second version of Aqara Air Condition Companion has already used it, which is under beta test. Maybe new switch is using it. I assume we would face with some changes next year (month). But you are right, still we need updated gateway's firmware to tell the differences. Xiaomi has pushed update 1.4.1_151.0143 earlier this week. I wonder if there are any new feedbacks.

from pyxiaomigateway.

cxlwill avatar cxlwill commented on May 28, 2024

@zxjack @mylinc Have you updated your gateway to 1.4.1_151.0143?Any positive feedbacks? (For convenience, I translate it into Chinese: 你们更新网关固件到 1.4.1_151.0143 了吗?有新的反馈吗?)

from pyxiaomigateway.

acui avatar acui commented on May 28, 2024

@cxlwill I have an 1.4.1_151.0143 gateway and a lumi.ctrl_ln1.aq1 switch. The gateway reports an empty model name too. And I also got a lumi.ctrl_86plug.aq1 wall plug. It has the same problem.

from pyxiaomigateway.

zxjack avatar zxjack commented on May 28, 2024

@cxlwill I had updated my gateway to 1.4.1_151.0143.The problem is same.
2017-12-21 15:22:07 ERROR (SyncWorker_2) [PyXiaomiGateway] Unsupported device found! Please create an issue at https://github.com/Danielhiversen/PyXiaomiGateway/issues and provide the following data: {'cmd': 'read_ack', 'model': '', 'sid': '158d0001f27b69', 'short_id': 23272, 'data': '{"voltage":3600}'}

from pyxiaomigateway.

pataha avatar pataha commented on May 28, 2024

same issue here, gateway firmware 1.4.1_151.0143, device: lumi.ctrl_ln2.aq1

from pyxiaomigateway.

shenxn avatar shenxn commented on May 28, 2024

Any updates? It seems that the new version of the LAN protocol is already released: http://docs.opencloud.aqara.cn/development/gateway-LAN-communication/

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

Do I miss something? The release date of (the newest) version 2.0.1 is pretty old. There is no new firmware with updated network protocol right now.

from pyxiaomigateway.

shenxn avatar shenxn commented on May 28, 2024

There is a new discovery command, so maybe the protocol is already in the firmware. I don't have any devices on hand right now so I'm not sure.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

No. The discovery command is just a remote command instead of pushing the button of the gateway three times (already tested).

from pyxiaomigateway.

ayufan avatar ayufan commented on May 28, 2024

Interestingly. These new devices can be connected when using https://github.com/aholstenson/miio/. You only need to add it to additional types: https://github.com/aholstenson/miio/blob/master/lib/devices/gateway/subdevices.js#L3.

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

As long as the gateway reports an empty model name the device cannot be used or added to the subdevices.js.

from pyxiaomigateway.

gsotiriou avatar gsotiriou commented on May 28, 2024

Hello , are there any updates coming? I too have an unsupported GW and it gives me grief as it sometimes makes the whole HA hang

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

Is your gateway unsupported or a specific subdevice? Please contact the manufacturer.

from pyxiaomigateway.

gsotiriou avatar gsotiriou commented on May 28, 2024

@syssi my GW is not supported and produces the following data on HA:
{'data': '{"voltage":3600,"channel_0":"off"}', 'cmd': 'read_ack', 'model': '', 'short_id': 54865, 'sid': '158d0001f2ada8'}

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

@gsotiriou Are you sure this is a gateway? I think the error message is of an unsupported wall switch.

from pyxiaomigateway.

gsotiriou avatar gsotiriou commented on May 28, 2024

@syssi you are correct indeed. Thanks for that! Problem now is I cannot find which device this is , I have about seven wall switches wired into the wall and another wireless one. But that's beyond the scope of this project so just thank you!

from pyxiaomigateway.

qk4l avatar qk4l commented on May 28, 2024

@Danielhiversen " Please update the gateway firmware if possible! This is the only way the issue can be solved."

Do I understand correctly that no one is interesting in investigation of this problem?

@ayufan suggested here that probably Xiaomi is switching to the new protocol. In this case ctrl_ln2.aq1 will never stats work with this library nor any new devices.

from pyxiaomigateway.

pataha avatar pataha commented on May 28, 2024

the new firmware has been released
from logs:
{'cmd': 'read_ack', 'model': 'ctrl_ln2.aq1', 'sid': 'xxxxxxxxxxxx', 'short_id': 43069, 'data': '{"voltage":3600}'}

from pyxiaomigateway.

Danielhiversen avatar Danielhiversen commented on May 28, 2024

It is already added to HA, and will be part of the next release.

from pyxiaomigateway.

pataha avatar pataha commented on May 28, 2024

It sill report as ‘unsupported device found’ with HA 0.64.1

from pyxiaomigateway.

gsotiriou avatar gsotiriou commented on May 28, 2024

@pataha maybe you don't have the newest firmware on your gateway yet?

from pyxiaomigateway.

syssi avatar syssi commented on May 28, 2024

"will be part of the next release" == 0.65

from pyxiaomigateway.

kukki avatar kukki commented on May 28, 2024

After I upgrade hass to 0.54.1, the new device model name can be extracted. They look like:

{'sid': '158d000201xxxx', 'short_id': 20500, 'data': '{"voltage":3600,"status":"off","inuse":"0"}', 'cmd': 'read_ack', 'model': 'ctrl_86plug.aq1'}
{'sid': '158d00022bxxxx', 'short_id': 42600, 'data': '{"voltage":3600}', 'cmd': 'read_ack', 'model': 'ctrl_ln2.aq1'}

I copy xiaomi_gateway/__init__.py from 0.8.2 tag (file commit: f47e4de) to replace ~/.homeassistant/deps/lib/python3.5/site-packages/xiaomi_gateway/__init__.py, and update the line 228 from

'86plug', '86plug.aq1'],

to

'86plug', '86plug.aq1', 'ctrl_86plug.aq1'],

Now there is no more unsupported device found error in the log.
But the new model devices are not shown in the hass entities list or in the log.

from pyxiaomigateway.

pataha avatar pataha commented on May 28, 2024

me too, cant wait to see.
Manually updating above 2 files make it works

Finally, ctrl_ln2.aq1 shows up and works properly
Thanks all

from pyxiaomigateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.