LIFX "entity unavailable"

I just brought a LIFX mini white, It work well with the iOS and homekit.

However, I cannot integrate it with hass.io, it shows the following error in the log

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 336, in _async_add_entity
‘Invalid entity id: {}’.format(entity.entity_id))
homeassistant.exceptions.HomeAssistantError: Invalid entity id: remote.
2019-01-12 00:24:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
53

Did I miss anything?

Can you edit the entity id by clicking on the text at the bottom of the box?

Did you use only letters, numbers or _ in your bulb name (looks like you called it backdoorlight, which is valid).

I can’t edit the entity id by clicking it, I just wondering how can I change it in HA.

I did try many name in the LIFX app, “outdoor”, “backdoor”, “backdoorlight”, all result the same error.

All of those are valid names and should be able to be converted to entity_ids.

Delete the integration (trash can top right of the page, this will delete all lifx integrations). Try renaming in the app one more time and wait and see if HA picks it up.

What version of HA are you on?

Weird. I’m on 0.84.6 and recently added two mini whites with no issue.

In the lifx app, have you upgraded the bulb to the latest firmware?

I did rename it in iOS, deleted the integration and then add it back, none of them work.

I have update the os from 0.84.6 to 0.85 today, still don’t work.

yes, updated to latest firmware already

The only other thing I can suggest is to reset the bulb (turn it on, then turn it off-on 5 times, slowly at the power switch, i.e. off for a second on for a second, the bulb should dim when reset), delete the integration, restart HA, re-add the bulb to your lifx app, and cross your fingers.

thx for your reset suggestion, just tried, added back… and still the same error… how come. :pensive:

This time I changed the location to “backdoor” and name “BackDoorLight”

any method to see more detail log?

Not really. This is the problem:

'Invalid entity id: {}'.format(entity.entity_id))

For some reason HA cant get a valid entity_id from the bulb name. I have dozens of lifx bulbs and have never seen this.

How many other devices do you have?

I’m wondering if blowing away or editing your ./storage files is called for (don’t do this just yet it’s rather drastic).

I have a few sonoff and nodemcu using tasmota firmware, less then 10 light & switch device.

/config/.storage/core.device_registry

    {
        "config_entries": [
            "7f38ff8369b44eefbdb90069d11ec18b"
        ],
        "connections": [
            [
                "mac",
                "xx:xx:xx:xx:xx:xx"  <- I just hide it for security
            ]
        ],
        "hub_device_id": null,
        "id": "57a55c04bf7e40bdbc09b97dd8c4a37f",
        "identifiers": [
            [
                "lifx",
                "xx:xx:xx:xx:xx:xx"  <- I just hide it for security
            ]
        ],
        "manufacturer": "LIFX",
        "model": "LIFX Mini White",
        "name": "BackDoorLight",
        "sw_version": null
    },

Have a look in the core.entity_registry

Wow, you are my hero!

        {
            "config_entry_id": "7f38ff8369b44eefbdb90069d11ec18b",
            "device_id": "57a55c04bf7e40bdbc09b97dd8c4a37f",
            "disabled_by": null,
            "entity_id": "light.",  <-  I changed this to "light.backdoorlight" and it work now
            "name": null,
            "platform": "lifx",
            "unique_id": "xx:xx:xx:xx:xx:xx"
        },
1 Like