Philips Xiaomi not found

Hi,
I try to integrate a new Philips Xiaomi bulb directly without gateway.
I checked using ping that the bulb is reachable
I obtained the token using MitoolKit that confirms the ip
My configuration is:
light:

  • platform: xiaomi_miio
    name: Xiaomi
    host: 192.168.1.120
    token: 91xxxxa5xxxx47dxxxx9f13xxxx5c9c5’
  • platform: limitlessled

but I have the following message
2017-12-16 10:10:35 ERROR (MainThread) [homeassistant.loader] Unable to find component light.xiaomi_miio

Is something missing for the configuration ?

Thanks

Hi.

Is it my impression or you have an ’ at the end of the token?

I don’t think the key contains any ’, so please check if that’s your issue, as mine is setup like this (HA 0.58.0):

light:
  - platform: xiaomi_miio
    name: Philips Light
    host: 172.16.23.32
    token: !secret philips_token1

Let us know how it goes.

Hi @bcaro,
Did you find a solution to your problem?

Hi @pplucky,
How do you connect the Xiaomi Philips light to wifi without using the gateway?

You need to add it directly via Mi Home app (where you connect it to the Wifi network) and afterwards follow these instructions to retrieve the token.

Hi @pplucky,
One question, why is your host a non local IP address? I have something like 192.168.0.18. Does it change anything?

172.16.x.x is a private network IP

Oh ok, is it better in terms of security? What is the reason you are using private network IP?

I don’t understand your question: if you add the lamp to your private network at home, it has an IP which belongs to the DHCP range provided by your home router (in my case 172.16.23.x), which is what you need to input in your HA.

It seems that this link is if I have a gateway. This is what I did when I had the gateway installed, I retrieved the token and the lamp integration worked. But now that I removed the gateway, it does not work anymore. But I can still see and control the light from Mi Home.
To come back to the link you sent, it asks me to go into my gateway settings which I don’t have anymore.

I am sorry, I am very noob in this. What I did is link the light to my wifi using the Mi Home app. So now I can see on my router’s page the light IP address which is 192.168.0.18. How to find the other IP address?

Please don’t read only the 1st paragraph - check here

That’s the IP you need to put in the config, along with the token, that you need to obtain.

Thank you for your explanations. So I checked, the token hasn’t changed even after removing the gateway. The IP is still good. So I do not need to change my integration. But I still can’t see the light. The IP is good as I can see it through nmap device tracker being home.

But are you sure you got the lamp token?

Have you checked HA logs for possible errors?