lawleo
(Lawrence Leo)
January 11, 2019, 3:12pm
1
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
Did I miss anything?
tom_l
January 11, 2019, 3:19pm
2
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).
lawleo
(Lawrence Leo)
January 11, 2019, 3:22pm
3
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.
tom_l
January 11, 2019, 3:26pm
4
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?
tom_l
January 11, 2019, 3:29pm
5
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?
lawleo
(Lawrence Leo)
January 11, 2019, 3:29pm
6
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.
lawleo
(Lawrence Leo)
January 11, 2019, 3:30pm
7
yes, updated to latest firmware already
tom_l
January 11, 2019, 3:33pm
8
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.
lawleo
(Lawrence Leo)
January 11, 2019, 3:40pm
9
thx for your reset suggestion, just tried, added back… and still the same error… how come.
This time I changed the location to “backdoor” and name “BackDoorLight”
any method to see more detail log?
tom_l
January 11, 2019, 3:49pm
10
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).
lawleo
(Lawrence Leo)
January 11, 2019, 3:55pm
11
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
},
tom_l
January 11, 2019, 3:58pm
12
Have a look in the core.entity_registry