Yeelight bulbs don't appear; Homekit HA

Hi guys

I’m using the Homekit HA component at the moment on hass.io. At this moment I can access all my lights through the UI of Home Assistant. But I can’t see my lights in iOS Home using the Homekit HA component.

What I can see in iOS Home: My temperature and door sensors, the xiaomi gateway light, my d-link power switch and my apple tv 4. that’s it.

Any suggestions what I should try?

Thanks in advance,
Michael

I have 2 Xiaomi Yeelight LED strips and they don’t show in the Home App on iOS. It’s similar to your issue Meugester, as I have also a Xiaomi Gateway and that shows the light in Home App no problems.

Did you find a solution in the end?

Hey @CousinLarry

I figured out how to do it:

In my configuration file I added:

# lights
light: !include lights.yaml

And in my lights.yaml I added for example:

  - platform: yeelight
    devices:
      192.168.1.25:
        name: Esstisch

All you need to know, is the IP address of your Yeelight bulb. You can find it in the Yeelight App or the MiHome app.

1 Like

Hi. I’m just switching from Homebridge to HA HomeKit and I cannot get my Yeelightstrip to add. Iv followed your suggestion above and it won’t add, i can control it with HA fine and through the Yee App

what does your config file look like?

i only just started a few days so its a basic config everything else works fine in HomeKit

 homeassistant:
      # Name of the location where Home Assistant is running
      name: Home
      # Location required to calculate the time the sun rises and sets
      latitude: 0
      longitude: 0
      # Impacts weather/sunrise data (altitude above sea level in meters)
      elevation: 0
      # metric for Metric, imperial for Imperial
      unit_system: metric
      # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
      time_zone: GB
      # Customization file
      customize: !include customize.yaml

    # Show links to resources in log and frontend
    introduction:

    # Enables the frontend
    frontend:

    # Enables configuration UI
    config:

    # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
    # http:
    #   base_url: example.duckdns.org:8123

    # Checks for available updates
    # Note: This component will send some information about your system to
    # the developers to assist with development of Home Assistant.
    # For more information, please see:
    # https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
    updater:
      # Optional, allows Home Assistant developers to focus on popular components.
      # include_used_components: true

    # Discover some devices automatically
    discovery:

    # Allows you to issue voice commands from the frontend in enabled browsers
    conversation:

    # Enables support for tracking state changes over time
    history:

    # View all events in a logbook
    logbook:

    # Enables a map showing the location of tracked devices
    map:

    # Track the sun
    sun:

    #homekit
    homekit:
      filter:
    exclude_domains:
      - light
    include_domains:
      - light.headboard
      - sensor
      - light.yeelight_strip_7c49ebaee4a7

    #Xiomi Temps
    sensor:
      - platform: mitemp_bt
    mac: '4C:65:A8:D9:48:59'
    name: Our room
    force_update: true
    median: 3
    monitored_conditions:
      - temperature
      - humidity
      
      - platform: mitemp_bt
    mac: '4C:65:A8:D9:48:8B'
    name: Tylers Room
    force_update: true
    median: 3
    monitored_conditions:
      - temperature
      - humidity

      - platform: mitemp_bt
    mac: '4C:65:A8:D9:61:A0'
    name: Livingroom
    force_update: true
    median: 3
    monitored_conditions:
      - temperature
      - humidity
      
      - platform: yr

    # Text to speech
    tts:
      - platform: google

    # Cloud
    cloud:


    light: !include lights.yaml
    group: !include groups.yaml
    automation: !include automations.yaml
    script: !include scripts.yaml

    # API
    http:
      api_password:

    # Xbox and Media Player
    media_player:

    platform: xboxone
    device: FD0054C9AC0E8500
    name: Living Room Xbox One

Any news ?
I’m facing the same issue as @sean1516.
Yeelight won’t show up in the homekit app :disappointed_relieved:

hi,
with the latest build 0.91, since yeelight has changed config ,
i can’t make it be visible on Homekit
previusly i exposed it in the configuration.yaml
in the homekit section, but now i cant manage to do it!
i’ve tried this config haswell but don’t work

discovery:
  ignore:
    - yeelight
yeelight:
  devices:
    192.168.1.25:
      name: Living Room

I have the same problem as you. After updating hass.io to the newest build, my Yeelight configuration stopped working. Siri integration doesn‘t work anymore neither.
Any hints?

yeelight working fine in configuration.yaml.

yeelight:
  devices:
    192.168.1.45:
      name: lamp

but not working in light.yaml

light:
  - platform: yeelight
    devices:
      192.168.1.45:
        name: lamp

That is because yeelight is no longer part of the light platform. You need to do something like this:

in your configuration.yaml add:

yeelight: !yeelight.yaml

and your yeelight.yaml should look like this:

devices:
  192.168.1.45:
    name: lamp
1 Like

Thanks, Is yeelight integration documentation not updated?

Yes it is.

Ah nice, @sjee – thanks for the hint. I will try that and see if it works.

Dear sjee, I tried the solution you suggested but sadly it does not work. My yeelight gets exposed to HomeKit but when I tap to toggle/change colour/brightness nothing at all happens.
My Yeelight has the most recent firmware and I am running hassio 0.97.2.
Controlling the lights from the hassio web interface works like a charm!

I would be happy if anyone could help to solve this problem :slight_smile:

Kind regards
dop_amin

For me, your solution, @sjee, works like a charm.

@dop_amin: For me restarting Home Assistant (Settings -> Server Control) did the job. I can’t change to color through Homekit but changing the brightness works.

@meugster As far as I can remember I did this (at least once!) with no success but when I tried it again today it worked as you stated!
Sadly setting the color does not work in general. Sometimes I can manage to change it but in most cases when I select a new color the light switches to the new color for a short period of time but then goes back to the “old” color. Very odd! Seems like something is periodically “overwriting” the color settings? I’ll look into this a little bit more in detail in the next time.

I hope someday it will be possible to control the color too :slightly_smiling_face:

Kind regards
dop_amin

1 Like

i have added the yeelight configuration into the configuration.yaml file, but i still cannot see anything yeelight related in the webui. How should the yeelight control look like?

@molnart What does your configuration look like?
Check out the integration documentation, that should help:

The sample config – if you know the IP addresses of your yeelights – is:

# Example configuration.yaml entry
discovery:
  ignore:
    - yeelight
yeelight:
  devices:
    192.168.1.25:
      name: Living Room

it looks like this - the light ip address is correct - i can control it via the Yeelight Control UWP app.

also i am wondering why is there no yeelight option in the integrations menu in the app…?


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate

yeelight:
  devices:
    192.168.50.192:
      name: Light Office
      model: ceiling3
      

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml