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

Control non Xiaomi Zigbee devices #44

Closed
AlexxIT opened this issue Sep 27, 2020 · 93 comments
Closed

Control non Xiaomi Zigbee devices #44

AlexxIT opened this issue Sep 27, 2020 · 93 comments
Assignees
Labels
enhancement New feature or request

Comments

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 27, 2020

This issue to discuss the feature of adding third-party Zigbee devices to the Mi Home ecosystem.

It is important to understand that only devices similar to Xiaomi devices will work this way!

You must add devices by calling the remote.send_command service with the specified model.

Tested devices:

@AlexxIT AlexxIT added the enhancement New feature or request label Sep 27, 2020
@AlexxIT AlexxIT pinned this issue Sep 27, 2020
@Zuz666
Copy link

Zuz666 commented Sep 27, 2020

@AlexxIT impressive! But what means "similar to Xiaomi devices"?

@AlexxIT
Copy link
Owner Author

AlexxIT commented Sep 27, 2020

@Zuz666 the device must support the same protocol, have the same number of channels and the same functions as one of the Xiaomi devices.
For example, Xiaomi does not have an analogue of a two-channel dimmer. Or a 5 channel relay.
But they have relays for 1-3 channels and bulbs with brightness.

@l0ckk
Copy link

l0ckk commented Sep 27, 2020

Try to add led power supply ikea (with wireless reciever) model : icpshc24-10eu-1l-1. in HA detected in eventes as new device (
model: TRADFRI Driver 10W
version: 17
zb_ver: 3.0
)
but gateway sounds 3 times...

@edicine
Copy link

edicine commented Sep 27, 2020

Tested
Müller Licht
tint LED 2700-6500 K added as ikea.light.led1546g12 (on/off brightness color temp)
https://www.mueller-licht.de/produktinformationen/artikel/404004/

Ikea TRÅDFRI LED- E27 806 lm ww added as ikea.light.led1623g12 (on/off brightness)
https://www.ikea.com/de/de/p/tradfri-led-leuchtmittel-e27-806-lm-kabellos-dimmbar-warmes-tageslicht-warmes-tageslicht-rund-opalweiss-90408797/

@AlexxIT
Copy link
Owner Author

AlexxIT commented Sep 28, 2020

@l0ckk Are you adding through the remote.send_command service? I think the model ikea.light.led1623g12 will be suitable.

@l0ckk
Copy link

l0ckk commented Sep 28, 2020

@AlexxIT
Trying to add this code to automation.yaml, but when i check configuration HA flashed an error ( Invalid config for [automation]: [service] is an invalid option for [automation]. Check: automation->service. (See ?, line ?).) What i'm doing wrong? New to HA....

  • alias: Ligts
    service: remote.send_command
    entity_id: remote.0xnnnnnnnn_pair
    device: ikea.light.led1623g12
    command: pair

@AlexxIT
Copy link
Owner Author

AlexxIT commented Sep 28, 2020

@l0ckk check demo video in readme. You can call service from GUI

@l0ckk
Copy link

l0ckk commented Sep 28, 2020

@AlexxIT thanks!

@kkmaslowski
Copy link

You can also add Ikea tradfri outlet to supported devices (https://www.zigbee2mqtt.io/devices/E1603_E1702.html). No power meter, only on/off. Paired as lumi.plug.mmeu01.

@ANS-spb
Copy link

ANS-spb commented Oct 3, 2020

Aqara Smart Plug EU (SP-EUC01, lumi.plug.maeu01) paired as lumi.plug.mmeu01.
No power measurement, on/off only.

@dstudio3
Copy link

dstudio3 commented Oct 4, 2020

Can you please tell me if it is possible to add colored lamps?

for example:
https://www.ikea.com/gb/en/p/tradfri-led-bulb-e14-600-lumen-wireless-dimmable-colour-and-white-spectrum-globe-colour-and-white-spectrum-opal-white-50411565/

what to use the device?

Thanks!

@agmaq
Copy link

agmaq commented Oct 15, 2020

I was able to add IKEA Tradfri LED 1000 lm E27 (id: LED1732G11) as ikea.light.led1623g12. on/off & brightness work! Thx @AlexxIT

@kkmaslowski
Copy link

I'm trying to control Ikea E1743 (https://www.zigbee2mqtt.io/devices/E1743.html) switch without success. It has 2 buttons.
I tried to pair it as lumi.sensor_switch.aq2 and lumi.remote.b286opcn01. I see no actions when i press buttons. When it's paired as b286opcn01 it shows battery level. Any idea how to debug it? Button press is visible in debug mode? I enabled debug but don't see anything when I press it.

@Spirituss
Copy link

Spirituss commented Oct 17, 2020

@AlexxIT
It would be great to add IKEA Zigbee2 dimmer as well, since z2m support works quite bad for it (Koenkk/zigbee2mqtt#4609).

@fedkevichan
Copy link

Добрый день! Один Blitzwolf BW SHP-13 добавлен как lumi.plug.mmeu01. Работает и в НА и в MiHome, но без измерений мощности.
Второй попробовал добавить как lumi.plug.mitw01. В НА работает также как первый. А в MiHome устройство вне сети. Возможно его теперь добавить в MiHome как lumi.plug.mmeu01? Пробовал удалять - не помогло.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 19, 2020

@fedkevichan Нельзя. Я предупреждал, что в Mi Home есть только 1 шанс.

@scoobypt
Copy link

Sonoff ZigBee motion sensor (SNZB-03) paired successfully as lumi.sensor_motion but no motion is detected (always clear) only battery readings work.

@Zuz666
Copy link

Zuz666 commented Oct 19, 2020

@fedkevichan Нельзя. Я предупреждал, что в Mi Home есть только 1 шанс.

@AlexxIT, а где можно про это подробнее прочитать?

@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 19, 2020

@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 19, 2020

@scoobypt yes. Sonoff motion sensor is very different from Xiaomi / Aqara

@fedkevichan
Copy link

@fedkevichan Нельзя. Я предупреждал, что в Mi Home есть только 1 шанс.

Я видел. Не готов был, что он вообще не будет доступен в MiHome, хоть и добавился. В инструкции, про такой вариант тоже не было.

@biscuitee
Copy link

Hi, how can I use xiaomi gateway 3 integration to control Yeelight M2 spotlights mesh (YLTS02YL model) ? i can see yeelight mesh spotlights in xiaomi smart gateway BLE connection, but I am unable to see any in HA with the xiaomi gateay 3 installed. Anyone can help?

@scoobypt
Copy link

@scoobypt yes. Sonoff motion sensor is very different from Xiaomi / Aqara

One question if I change to zha component do you think it will work?

@Zuz666
Copy link

Zuz666 commented Oct 19, 2020

@Zuz666 readme https://github.com/AlexxIT/XiaomiGateway3#add-third-party-zigbee-devices

Thanks, but it's not clear to me! Deleting device from MiHome later will not help to change the device model?

@rezmus
Copy link

rezmus commented Oct 19, 2020

mijia cloud remembers device model forever after first registration (per region).

@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 20, 2020

@scoobypt it seems to have worked for ZHA. I have such a sensor. But no time for tests

@AlexxIT
Copy link
Owner Author

AlexxIT commented Oct 20, 2020

@biscuitee There are other issues about mesh. No need to discuss it here.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 14, 2021

Any 3rd party buttons won't work with this method. You may:

  • use ZHA mode
  • use z2m mode
  • wait 2.0 version of this integration

@dsimoes
Copy link

dsimoes commented Dec 14, 2021

Hi @AlexxIT.

Thanks for the reply. Ok, understood. I would like to try to keep the mi home still functional so I will try to buy compatible devices for now. I've read about the ZHA and Z2M modes, but what will come with 2.0 version? Which type of new features can we expect?

Thanks.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 14, 2021

@dsimoes You can check and already try beta versions
https://github.com/AlexxIT/XiaomiGateway3/releases

@dsimoes
Copy link

dsimoes commented Dec 16, 2021

Hi @AlexxIT.
I have an IKEA LED1837R5 GU10 Bulb. Simple dimmable with 400lm.
I've used the custom pair with a similar bulb from your zigbee.py file: ikea.light.led1650r5.
Pair works, but on the Xiaomi App it shows the child device as a generic device and I'm not able to manipulate the bulb on the app, only on HA.

If I use mainland china servers this will work. The device will get added as an IKEA bulb and I can manipulate the device on the app and on the HA. But china servers are very slow for me. I went back to the europe server and tried to fool the app by choosing on of the available bulbs from the app. Example: lumi.light.aqcn01 - Aqara LED Light Bulb(Dimmable).
But you don't have the aqcn01 defined on zigbee.py and the pairing fails. If I use aqcn02 the pairing works but it's the same issue on the app, it will not recognize it.

Do you know if I can do this? Fool the app somehow? Or should I just give up on this scenario.
Thank you for the help.

@rzv-trsc
Copy link

rzv-trsc commented Dec 16, 2021

@dsimoes,

Do you know if I can do this? Fool the app somehow? Or should I just give up on this scenario. Thank you for the help.

Personally I gave up pairing to the hub since I needed it in Mi mode & EU server.
Had a cc2531 laying around, set up zigbee2mqtt and everything works smooth. Keep in mind, if going this way, that there are newer and better dongles around (=better power/range), but this works for me since I hand only planned max 10 gadgets in direct view of the dongle (<10m,no walls). If needed will reconfigure for updated dongle or add repeaters.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 16, 2021

@dsimoes Maybe MiHome vevs mod can work with this bulb on EU servers. I don't know

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 16, 2021

@rzv-trsc You don't need any stick to use z2m or ZHA. The gateway has an excellent zigbee chip

@rzv-trsc
Copy link

@rzv-trsc You don't need any stick to use z2m or ZHA. The gateway has an excellent zigbee chip

@AlexxIT good to know, thanks.
Z2m was already configured and running on cc for testing purposes. Needed something functional and didn't wanna fiddle with existing integrations, will research reconfiguring z2m to use with gw3.

Great work, many thanks for all your efforts! Silently profiting from it for quite a while!

@Eduadel
Copy link

Eduadel commented Dec 16, 2021

@AlexxIT great work.
I've bought a IKEA TRADFRI LED 1055lm 9.5W E27 - LED2003G10, with brightness and temperature adjustment.

The system only identifies as ikea.light.led1650r5 LED1650R5, even when I send the remote command as ikea.light.led1545g12. So far it's working the on/off & brightness setup. Temperature adjustment isn't working.

Also @AlexxIT, could please clarify what are the firmware mod's that you have done, I've upgraded via telnet but select the original firmware. I couldn't find that information.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 16, 2021

I have not done any firmware mod. The component works with the gateway on the original Xiaomi firmware. All info in readme:
https://github.com/AlexxIT/XiaomiGateway3#requirements

@Eduadel
Copy link

Eduadel commented Dec 16, 2021

The option from 1 to 6 what are they? image

@dsimoes
Copy link

dsimoes commented Dec 16, 2021

@Eduadel
You can read the modifications on the readme of each of the modded firmware here: https://github.com/zvldz/mgl03_fw/tree/main/firmware/custom

@dsimoes
Copy link

dsimoes commented Dec 22, 2021

Hi. Any chance to get the IKEA button working? it's the simple switch button (E1812).
I've paired it with the lumi.sensor_switch device code, but there are no events/communication when I press it.
Will this only work in ZHA mode? Thanks

@AlexxIT
Copy link
Owner Author

AlexxIT commented Dec 23, 2021

Maybe it will work in release 2.0 in MiHome mode. But I don't have such a button for tests

@nicholaslimck
Copy link

I'm trying to pair an Ikea Tradfri E14 LED1733G7 under ikea.light.led1536g5. Was originally able to pair, but after removing it from Mi Home I am no longer able to repair it. Calling the service results in a single beep from the gateway.

Does anyone know what I'm doing wrong?

@AlexxIT
Copy link
Owner Author

AlexxIT commented Jan 10, 2022

@nicholaslimck your bulb not enter in pair mode https://youtu.be/07fhNCIjQDs

@nicholaslimck
Copy link

@AlexxIT I already put it into pairing mode the same way that I did the first time. Tried the suggestion in the video but the result was the same: one beep from the gateway.

@bldevcode
Copy link

Hello,
I'm desperately trying to add Aqara Smart Plug EU (SP-EUC01) to my Xiaomi Gateway 3 (ZNDMWG02LM).
After I quickly realised that I cannot simply do it on Mi Home I found this brilliant guide (huge thanks @AlexxIT !)
I managed to integrate HASS, HACS with Xiaomi Gateway 3 based on this guide, and also managed to pair Aqara SP-EUC01 with the gateway, I can control it from HASS GUI. I also have a working automation in place in HASS with Aqara SP-EUC01 and an Aqara Water Leak sensor. However the automation works only as long as HASS is up and running, once HASS is down, automation does not work any more. And unfortunately I cannot use the paired Aqara SP-EUC01 in Mi Home automations.

The guide says:
"The devices added in this way will work even after the Gateway is restarted. They will continue to work without Hass. And they can be used in Mi Home automations."

Question #1: What could I do wrong?
Question #2: It would be a simple salvation to my problem to buy another piece of Xiaomi Plug EU (ZNCZ04LM), but this model is out of stock (or maybe end of sale / end of life) everywhere. Anyone knows any alternative Zigbee EU plug model that is available and compatible with Mi Home (EU server) and Xiaomi Gateway 3 ?

Any suggestion is welcome!

Xiaomi Gateway 3 Firmware version: 1.5.0_0102, EU server.
HASS version: 2022.2.3
HACS version: 1.22.0

@AlexxIT
Copy link
Owner Author

AlexxIT commented Feb 8, 2022

Latest Aqara Zigbee devices has regional restrictions
https://github.com/AlexxIT/XiaomiGateway3#regional-restrictions

@rezmus
Copy link

rezmus commented Feb 8, 2022

this plug can be paired on any region, but it is not supported by stock app. search for vevs mod if you want to control/automate it in mi home.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Feb 8, 2022

@rezmus are there any other devices with the same problem (can be paired in any region, but supported only by vevs)?

@AlexxIT AlexxIT unpinned this issue Feb 16, 2022
@jimmygrin73
Copy link

SP-EUC01 проблема возникла с этой розеткой, раньше что бы она корректно работало, нужно было обновить прошивку через aqara home до версии 0.0.0_0032. После можно было подключать к xiaomi gateway через mi home vevs. Но сейчас в aqara home обновляет до версии 0.0.0_0041 и к к xiaomi gateway через mi home vevs больше не подключается. Точнее подключается работает пору секунд, видит розетку в home assistant, после шлюз пищит и розетка отваливается,
google translate:
SP-EUC01 a problem arose with this socket, earlier, in order for it to work correctly, it was necessary to update the firmware via aqara home to version 0.0.0_0032. After that, it was possible to connect to xiaomi gateway via mi home vevs. But now in aqara home it updates to version 0.0.0_0041 and it no longer connects to xiaomi gateway via mi home vevs. More precisely, it connects for a while, it sees the socket in the home assistant, after the gateway beeps and the socket falls off.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Feb 20, 2022

@jimmygrin73 This is a known problem with the latest socket firmware. There is no solution yet

@bldevcode
Copy link

Thank you all for your replies. Actually I gave it up after realising that Xiaomi Gateway v3 cannot perform any automation either without internet connection or available HASS. I started my little home project with Zigbee devices for two reasons:

  1. I'm only aware of Zigbee type water leak sensors (obviously because of the battery power supply)
  2. I had the assumption that once the automation is saved on the gateway it will work even without internet or LAN connection ,so the availability of the router or the internet service is not a dependency for the automation
    and when the Zigbee water leak sensor triggers the automation the zigbee smart plug will power off.
    Now that it is clearly not the case I can bought a Xiaomi wifi smart plug and use stock Mi Home app. This automation anyway requires the router and internet connection.

@rezmus
Copy link

rezmus commented Feb 21, 2022

@bldevcode download vevs mod, connect aqara eu plug and setup local mijia automation. it will work without wifi.

@AlexxIT
Copy link
Owner Author

AlexxIT commented Feb 21, 2022

@bldevcode local gateway automation (from MiHome) works fine without Hass and Internet.

Zigbee and BLE devices works fine with Hass without Internet. But Hass automations won't work without Hass...

There is a problem with the status of Mesh devices without Internet.

@Jascha20
Copy link

Hi,
the integration into Home Assistant works nice. I am able to control my devices within the GUI.
The only issue I have is to connect Zigbee devices in the dev tools. The service remote.send_command is just not available. Do I need to add it manually first?
Already tried different versions v2.1.0, v2.0.10 and v2.0.09 none seem to let me add Zigbee devices to Mi Home

Hub firmware 1.5.0_0102 cn server
core-2022.5.5
Home Assistant OS 8.1
supervisor-2022.05.2
HACS 1.24.5

Thanks!

@AlexxIT AlexxIT closed this as completed Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests