Comments (40)
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.
@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.
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.
from pyxiaomigateway.
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.
Homeassistant also needs to be updated. I will fix the incorrect model name today!
from pyxiaomigateway.
@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):
from pyxiaomigateway.
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.
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.
I will add the ctrl_ln2.aq1 to be prepared.
from pyxiaomigateway.
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.
tks,have plans yet?
from pyxiaomigateway.
It's up to xiaomi releasing a new gateway firmware.
from pyxiaomigateway.
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.
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.
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.
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.
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.
@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.
@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.
@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.
same issue here, gateway firmware 1.4.1_151.0143
, device: lumi.ctrl_ln2.aq1
from pyxiaomigateway.
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.
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.
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.
No. The discovery command is just a remote command instead of pushing the button of the gateway three times (already tested).
from pyxiaomigateway.
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.
As long as the gateway reports an empty model name the device cannot be used or added to the subdevices.js.
from pyxiaomigateway.
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.
Is your gateway unsupported or a specific subdevice? Please contact the manufacturer.
from pyxiaomigateway.
@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.
@gsotiriou Are you sure this is a gateway? I think the error message is of an unsupported wall switch.
from pyxiaomigateway.
@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.
@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.
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.
It is already added to HA, and will be part of the next release.
from pyxiaomigateway.
It sill report as ‘unsupported device found’ with HA 0.64.1
from pyxiaomigateway.
@pataha maybe you don't have the newest firmware on your gateway yet?
from pyxiaomigateway.
"will be part of the next release" == 0.65
from pyxiaomigateway.
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.
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)
- Support for switch.b2lacn02
- Change Light Migateway to unavailable when migate cannot be reached HOT 4
- Config Flow HOT 4
- Xiaomi Aqara Wireless Releay - HOT 2
- Multicast socket error on WSL system HOT 2
- Support for Aqara wall smart switch D1 (2020 model) HOT 1
- Push the release to pypi please HOT 9
- Pls add support for new type wall switch of Xiaomi HOT 1
- Help With: Zeroconf discovered Gateway could not be located to get the necessary information, try using the IP of the device running HomeAssistant as interface HOT 3
- Aqara Wireless Remote Switch D1 not supported HOT 1
- Unsuported device (Aqara wall switch D1 single rocker with neutral) HOT 1
- Add switch.l3acn3 and switch.n3acn3 support HOT 7
- Endless "Unknown gateway ip" errors in log HOT 1
- i can't use Aqara D1 Wireless Remote Switch (Single Rocker) (WXKG06LM) (lumi.remote.b186acn02) in homeassistant 0.114.3 HOT 7
- Add switch.b2lacn02 support HOT 6
- Unsupported device found! Unsupported device data: dmaker.fan.1c HOT 1
- Support for non-multicast network
- Map models to type collection
- Xiaomi Aqara Wireless Relay HOT 1
- xiaomi_gateway errors dont report which gateway
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyxiaomigateway.