PyXiaomiGateway icon indicating copy to clipboard operation
PyXiaomiGateway copied to clipboard

Support new Ikea Tradfri

Open Martinvdm opened this issue 6 years ago • 16 comments

Is there any roadmap of supporting the new Ikea Tradfri devices through the Xiaomi Gateway? Xiaomi does support a couple of Ikea Tradfri lamps in there newest release connected to the gateway. Mi Home app is supporting those devices already.

5e14fcc3-b387-4c5a-bc81-7ea67f7cc70e

Martinvdm avatar Jan 15 '19 18:01 Martinvdm

Awesome! Which tadfri bulb should I buy? :-)

syssi avatar Jan 15 '19 18:01 syssi

Unfortunately HA reports Tradfri bulbs

ERROR (Thread-3) [xiaomi_gateway] The device with sid xxxxxxxxxxxx isn’t supported of the used gateway firmware. Please update the gateway firmware if possible! This is the only way the issue can be solved.

Work fine in MI Home App . Lets hope Xiaomi update the firmware to add the model name

lonebaggie avatar Feb 11 '19 09:02 lonebaggie

Same error with latest firmware 1.4.1_167.0158 shame ;(

lonebaggie avatar Feb 21 '19 20:02 lonebaggie

I have same configuration here. Six GU-10 bulbs on one switch, updated hub, bulbs are connected and controllable in Mi Home app.

brendanheyu avatar Mar 16 '19 10:03 brendanheyu

Yes ! Any one working on this project can say if it is technically possible ? It would be very nice to have ikea bulbs in home assistant and not only in mi-home....

https://github.com/jon1012/mihome https://aqara.gitbooks.io/lumi-gateway-lan-communication-api/content/

schmurtzm avatar Jun 14 '19 10:06 schmurtzm

does firmware Ver. 1.4.1_170.0158 add anything ?

lonebaggie avatar Jun 27 '19 18:06 lonebaggie

Any update on this?

JasonCampey avatar Jul 08 '19 03:07 JasonCampey

About to buy a bunch of the GU10 Warm white bulbs from ikea, im planning on buying the ikea hub too, i also own the xiaomi gateway, what information would you need from these devices to get it working?

is it hard to add the support or is it something a novice programer could attempt?

bakerboy908 avatar Aug 18 '19 04:08 bakerboy908

It's not hard if the gateway firmware supports the device. At the moment this isn't the case.

syssi avatar Aug 18 '19 06:08 syssi

I maybe a little confused, if i can pair the bulbs to the xiaomi hub and control them from the xiaomi app wouldnt that mean the gateway firmware supports them?

bakerboy908 avatar Aug 18 '19 12:08 bakerboy908

I'm talking about the LAN protocol which implements this library. Xiaomi extends the protocol with some delay. Your are talking about the miIO protocol (communication between gateway and MiHome app).

syssi avatar Aug 18 '19 13:08 syssi

does firmware Ver. 1.4.1_170.0158 add anything ?

I use a Xiaomi/Aqara LED bulb tunable white and the new firmware does not solve the issue. I'm on HA 0.99.3, so thechnically this doesn't prove anything about PyXiaomiGateway, but maybe you can find out which PyXiaomiGateway version HA uses. I wasn't able to find out.

dewi-ny-je avatar Oct 06 '19 20:10 dewi-ny-je

HA uses the most recent release of PyXaomiGateway. May be I don't understand your point.

syssi avatar Oct 06 '19 20:10 syssi

I didn't know that HA uses the latest version so I didn't know whether my information was related or not. You asked about the changes in the firmware and I can confirm that led bulbs are still unsupported.

dewi-ny-je avatar Oct 06 '19 21:10 dewi-ny-je

The error comes from line 296 of /xiaomi_gateway/init.py. I seems that the trådfri stuff shows up as a device that is not one of the known types that are already hard coded into the file. I am no python expert and I have no idea how to debug the code, but I am a developer so I might be able to figure it out. Can anybody point me in the right direction of how to enumerate devices attached to my gateway through the api?

robbz23 avatar Dec 27 '19 11:12 robbz23

It would be great if this functionality could be created. The limitation with the Tradfri gateway in HA is that you can only have one gateway. So if you want to add bulbs in place where that gateway is out of range (in an office at the end of the garden) then you can't add a second Tradfri gateway. But you can have as many Xiaomi gateways as you like so its a great potential solution to the Tradfi limitation. Plus by combining with the Xiaomi gateway, you could potentially skip needing a Tradfri gateway at all I guess.

michaelrch avatar Jan 24 '20 14:01 michaelrch