home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.74k stars 29.99k forks source link

Lifx does not import configuration from file #77193

Closed seanmccabe closed 1 year ago

seanmccabe commented 2 years ago

The problem

Lifx does not import the lights from a file where the IPs are listed. i.e.

lifx: 
  light: !include lifx.yaml

Config file example:

`- broadcast: 192.168.10.156

This should import as stated, however it does not succeed, nor does it fail in the logs.

What version of Home Assistant Core has the issue?

2022.8.6

What was the last working version of Home Assistant Core?

2022.6

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Lifx

Link to integration documentation on our website

https://www.home-assistant.io/integrations/lifx/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-08-23 14:17:41.730 WARNING (MainThread) [homeassistant.components.lifx] The 'lifx' option near /config/configuration.yaml:0 is deprecated, please remove it from your configuration
2022-08-23 14:17:41.732 INFO (MainThread) [homeassistant.setup] Setting up lifx
2022-08-23 14:17:41.732 INFO (MainThread) [homeassistant.setup] Setup of domain lifx took 0.0 seconds

2022-08-23 14:17:55.582 INFO (MainThread) [homeassistant.components.lifx.const] Migration in progress, waiting to discover 42 device(s)

2022-08-23 14:18:04.086 INFO (MainThread) [homeassistant.components.lifx.const] Migration in progress, waiting to discover 42 device(s)

2022-08-23 14:22:50.234 INFO (MainThread) [homeassistant.components.lifx.const] Migration in progress, waiting to discover 42 device(s)

Additional information

Adding the Lifx integration again and inputting the host setup a bulb successfully and renamed the old one. This should not be the case though, it should migrate from file.

probot-home-assistant[bot] commented 2 years ago

lifx documentation lifx source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @bdraco, @djelibeybi, mind taking a look at this issue as it has been labeled with an integration (lifx) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

Djelibeybi commented 2 years ago

Can you please enable debug logging for the component by adding homeassistant.components.lifx: debug to your logger config? We need to see what the migrator is doing.

seanmccabe commented 2 years ago

Got this on startup twice:

The following devices remain: [DeviceEntry(area_id='656bdb96e02443cebbba87cae6e54b26', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:25:6a:7b')}, disabled_by=None, entry_type=None, id='c1d240b657196f34f624f79272c10a28', identifiers={('lifx', 'd0:73:d5:25:6a:7b')}, manufacturer='LIFX', model='LIFX A19', name_by_user=None, name='Kits Room', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='13b7d169583246449520353537b01e27', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2f:37:ba')}, disabled_by=None, entry_type=None, id='8133a7f7171292c2b08568e9aeb3fdb3', identifiers={('lifx', 'd0:73:d5:2f:37:ba')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Study Left', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='13b7d169583246449520353537b01e27', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2f:34:61')}, disabled_by=None, entry_type=None, id='1249be75a9c9c2010275886bf912c505', identifiers={('lifx', 'd0:73:d5:2f:34:61')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Study Right', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='c3d9c15c515a4a178a9dfe935a5ed75d', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:ed:fc')}, disabled_by=None, entry_type=None, id='eb690f1f1b20b368ddcab1d542359e37', identifiers={('lifx', 'd0:73:d5:2c:ed:fc')}, manufacturer='LIFX', model='LIFX A19', name_by_user=None, name='Finns Room', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:39:f3:89'), ('mac', 'd0:73:d5:39:f3:8a')}, disabled_by=None, entry_type=None, id='8fabc3758960b9fae573879eb848935e', identifiers={('lifx', 'd0:73:d5:39:f3:89')}, manufacturer='LIFX', model='LIFX Mini Color', name_by_user=None, name='Lounge Lamp', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='65a3119c2a0c4ffaa59146b54b6a3027', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:25:6e:7e')}, disabled_by=None, entry_type=None, id='2bc556df99b7cad4a9640f9d01e0bde0', identifiers={('lifx', 'd0:73:d5:25:6e:7e')}, manufacturer='LIFX', model='LIFX A19', name_by_user='Play Room 2', name='Playroom 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='13b7d169583246449520353537b01e27', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:28:d6:4e')}, disabled_by=None, entry_type=None, id='7d2f777b74bdb78be6dbce4e72472f43', identifiers={('lifx', 'd0:73:d5:28:d6:4e')}, manufacturer='LIFX', model='LIFX Z', name_by_user=None, name='Z Strip', suggested_area=None, sw_version='2.77', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:b0:3f')}, disabled_by=None, entry_type=None, id='c764f4c87887b41b792230a5f33acbd7', identifiers={('lifx', 'd0:73:d5:27:b0:3f')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Bar 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:bc:1c')}, disabled_by=None, entry_type=None, id='727c61dbc45395d2033ea55f84a6b96d', identifiers={('lifx', 'd0:73:d5:27:bc:1c')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Bar 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='65a3119c2a0c4ffaa59146b54b6a3027', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:d1:53')}, disabled_by=None, entry_type=None, id='953a621fff33803d787dbb40875da56a', identifiers={('lifx', 'd0:73:d5:2c:d1:53')}, manufacturer='LIFX', model='LIFX A19', name_by_user='Play Room 1', name='Playroom 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:c0:2e')}, disabled_by=None, entry_type=None, id='9515a65ad4d50bb721b2d1859bf15467', identifiers={('lifx', 'd0:73:d5:27:c0:2e')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Scullery Left', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:56:fe')}, disabled_by=None, entry_type=None, id='412bd813e9a259d9ea19b4c12071f44e', identifiers={('lifx', 'd0:73:d5:27:56:fe')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Scullery Right', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:25:c1:1e')}, disabled_by=None, entry_type=None, id='56e86c234cdd9114d1181e5f70e9c09b', identifiers={('lifx', 'd0:73:d5:25:c1:1e')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Kitchen 3', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:b0:b0')}, disabled_by=None, entry_type=None, id='3505b2f31e7275adc7b0bfdf7a37ec48', identifiers={('lifx', 'd0:73:d5:27:b0:b0')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Kitchen 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:26:2d:39')}, disabled_by=None, entry_type=None, id='65bd8d2909a2e61a633dd2f158dd6096', identifiers={('lifx', 'd0:73:d5:26:2d:39')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Kitchen 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='a71251cc3fec4b7f88c62029f5f9b7be', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:27:77:ae')}, disabled_by=None, entry_type=None, id='8d3b8eaa1990988288963a9794b952b2', identifiers={('lifx', 'd0:73:d5:27:77:ae')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Kitchen 4', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:25:11:97')}, disabled_by=None, entry_type=None, id='ea982dda47584dd48560d5bbdbb6306d', identifiers={('lifx', 'd0:73:d5:25:11:97')}, manufacturer='LIFX', model='LIFX A19', name_by_user=None, name='Master Bedroom 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='hallway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2d:35:58')}, disabled_by=None, entry_type=None, id='04797cc85a1cb9158854ce168801e915', identifiers={('lifx', 'd0:73:d5:2d:35:58')}, manufacturer='LIFX', model='LIFX A19', name_by_user=None, name='Hall', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:25:12:83')}, disabled_by=None, entry_type=None, id='4de1698c60f281bfc79b121db91cc0e1', identifiers={('lifx', 'd0:73:d5:25:12:83')}, manufacturer='LIFX', model='LIFX A19', name_by_user=None, name='Master Bedroom 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='hallway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2d:58:3c')}, disabled_by=None, entry_type=None, id='e35f7284e6e5df946cf80c0e4ae2fab1', identifiers={('lifx', 'd0:73:d5:2d:58:3c')}, manufacturer='LIFX', model='LIFX A19', name_by_user='Hall 2', name='Hall 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='9940d4184a6d4eff8b0dd02f4ed2cc83', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:55:90:ca'), ('mac', 'd0:73:d5:55:90:cb')}, disabled_by=None, entry_type=None, id='4e21ce3325b5dd354fe93463bc2c6508', identifiers={('lifx', 'd0:73:d5:55:90:ca')}, manufacturer='LIFX', model='LIFX Mini White', name_by_user=None, name='Lamp', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='hallway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:55:5d:8e'), ('mac', 'd0:73:d5:55:5d:8f')}, disabled_by=None, entry_type=None, id='0b5340ae50f3e3d5b2d6c852cebc72de', identifiers={('lifx', 'd0:73:d5:55:5d:8e')}, manufacturer='LIFX', model='LIFX Mini White', name_by_user=None, name='Cupboard', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='bathroom', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:6b:c9:34'), ('mac', 'd0:73:d5:6b:c9:35')}, disabled_by=None, entry_type=None, id='3dd8f27c8f436027af78a5cee42d1436', identifiers={('lifx', 'd0:73:d5:6b:c9:34')}, manufacturer='LIFX', model='LIFX Clean', name_by_user=None, name='Bathroom', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='toilet', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:6b:a6:03'), ('mac', 'd0:73:d5:6b:a6:02')}, disabled_by=None, entry_type=None, id='42e76bcd0356a173fc648eb73beee118', identifiers={('lifx', 'd0:73:d5:6b:a6:02')}, manufacturer='LIFX', model='LIFX Clean', name_by_user=None, name='Toilet', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='65a3119c2a0c4ffaa59146b54b6a3027', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:55:8f:75'), ('mac', 'd0:73:d5:55:8f:76')}, disabled_by=None, entry_type=None, id='541613f78418cbd8b5e6c67ece80832e', identifiers={('lifx', 'd0:73:d5:55:8f:75')}, manufacturer='LIFX', model='LIFX Mini White', name_by_user=None, name='Stairs Top', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:d6:ab')}, disabled_by=<DeviceEntryDisabler.USER: 'user'>, entry_type=None, id='8f1522f4091dc60a14002bcd6ea90832', identifiers={('lifx', 'd0:73:d5:2c:d6:ab')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user='Lounge 2-old', name='Lounge 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:98:03')}, disabled_by=None, entry_type=None, id='4678503835e5890eba83c6608c3a98d9', identifiers={('lifx', 'd0:73:d5:2c:98:03')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user='Lounge 1', name='Lounge 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='hallway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:55:94:c1'), ('mac', 'd0:73:d5:55:94:c2')}, disabled_by=None, entry_type=None, id='57367b923aea3fc5f6013e21bfb9fbde', identifiers={('lifx', 'd0:73:d5:55:94:c1')}, manufacturer='LIFX', model='LIFX Mini White', name_by_user=None, name='Stairs', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:9d:25')}, disabled_by=None, entry_type=None, id='e404089dac4a1995a24bc4f94b21e00d', identifiers={('lifx', 'd0:73:d5:2c:9d:25')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Lounge Center 2', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:70:2c')}, disabled_by=None, entry_type=None, id='e3763dc4f6e8ca54844f7e3362acb1fe', identifiers={('lifx', 'd0:73:d5:2c:70:2c')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Lounge Center 1', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='outside', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:56:da:2d'), ('mac', 'd0:73:d5:56:da:2e')}, disabled_by=None, entry_type=None, id='49d4f0977fcd256c88e0f854725e1d59', identifiers={('lifx', 'd0:73:d5:56:da:2d')}, manufacturer='LIFX', model='LIFX Mini White', name_by_user='Back Door (Old)', name='Back Door', suggested_area=None, sw_version='3.70', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='entryway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:c5:3f')}, disabled_by=None, entry_type=None, id='52067a382981eda97acec81d4c881557', identifiers={('lifx', 'd0:73:d5:2c:c5:3f')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Entryway Left', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='entryway', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:73:a9')}, disabled_by=None, entry_type=None, id='acd316b8b266e5763df89611c4827530', identifiers={('lifx', 'd0:73:d5:2c:73:a9')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Entryway Right', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:6e:97')}, disabled_by=None, entry_type=None, id='3888560f302b401b980df2818b6d0649', identifiers={('lifx', 'd0:73:d5:2c:6e:97')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Lounge 5', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:6f:9e')}, disabled_by=None, entry_type=None, id='7e07e20a69aa31f9465d37e0becd09cf', identifiers={('lifx', 'd0:73:d5:2c:6f:9e')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user='Lounge 4', name='Lounge 4', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:bb:30')}, disabled_by=None, entry_type=None, id='395ae835c248a36da4d41d6fdad52989', identifiers={('lifx', 'd0:73:d5:2c:bb:30')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Lounge 6', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='outside', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:29:77:15')}, disabled_by=None, entry_type=None, id='5abf41ba415cf4df972a66a22a31cc7e', identifiers={('lifx', 'd0:73:d5:29:77:15')}, manufacturer='LIFX', model='LIFX A19 Night Vision', name_by_user='Front Door', name='Front Door', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id=None, config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:29:ee:6e')}, disabled_by=None, entry_type=None, id='fa1fbbdf6f398f0b3783950d8ad2f98d', identifiers={('lifx', 'd0:73:d5:29:ee:6e')}, manufacturer='LIFX', model='LIFX A19 Night Vision', name_by_user=None, name='Ranch Slider', suggested_area=None, sw_version='2.80', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id=None, config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:44:5a:35')}, disabled_by=None, entry_type=None, id='b88e62c9321ce64034382a0d9268988f', identifiers={('lifx', 'd0:73:d5:44:5a:35')}, manufacturer='LIFX', model='LIFX Z', name_by_user=None, name='Shield Strip', suggested_area=None, sw_version='2.77', hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:2c:2e:b7')}, disabled_by=None, entry_type=None, id='5eb238e3bed6ec9bbeed499d29ba9d63', identifiers={('lifx', 'd0:73:d5:2c:2e:b7')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user='Lounge 2', name='Lounge 2', suggested_area=None, sw_version=None, hw_version=None, via_device_id=None, is_new=False), DeviceEntry(area_id='fcadb91ccfdb4d19af0280efc1a91bf6', config_entries={'b09ebf16314e6f78b9107f5b2a0dd08f'}, configuration_url=None, connections={('mac', 'd0:73:d5:42:e2:a4')}, disabled_by=None, entry_type=None, id='432712e1d280d2812d98da6b0154400a', identifiers={('lifx', 'd0:73:d5:42:e2:a4')}, manufacturer='LIFX', model='LIFX Downlight', name_by_user=None, name='Lounge 3', suggested_area=None, sw_version=None, hw_version=None, via_device_id=None, is_new=False)]
2022-08-23 14:34:59.130 INFO (MainThread) [homeassistant.components.lifx.const] Migration in progress, waiting to discover 41 device(s)
Djelibeybi commented 2 years ago

It's waiting to discover those bulbs. I want to see the debug logs, because it should be able to connect directly to them given they were hard-coded.

seanmccabe commented 2 years ago

That is all there is, nothing more, just lots of fails from not being able to send lighting commands to lights that don't currently exist

seanmccabe commented 2 years ago

and again...

2022-08-23 14:39:54.128 DEBUG (MainThread) [homeassistant.components.lifx.const] Migrating legacy entries: discovered_hosts_by_serial={}, existing_serials={'d0:73:d5:6d:65:df'} 2022-08-23 14:39:54.129 DEBUG (MainThread) [homeassistant.components.lifx.const] The following devices remain: [DeviceEntry

That existing is the one I've just done the adding integration for manually.

seanmccabe commented 2 years ago

Apparently now I can't add them manually either

Djelibeybi commented 2 years ago

Even with debug enabled? Debug logging is verbose. It outputs massive amounts of logging.

seanmccabe commented 2 years ago

Yup, all there is is the two above, it is quite large as it's a large list.

Ok manually adding these I am having to submit the host twice. First time fails, hitting submit a second time is successful.

Djelibeybi commented 2 years ago

It should be migrating your existing config. @bdraco wrote the migration, so I suggest waiting for him to respond.

seanmccabe commented 2 years ago

Yer I can't really. Home Assistant controls all my lights, so having to manually imput this config for each of the lights (41) not fun!

Djelibeybi commented 2 years ago

Reinstall my beta so that it works again. Then work with @bdraco to get the migration working.

Djelibeybi commented 2 years ago

(I've had to configure all 60 of my bulbs several times while testing the new integration. I feel your pain, which is why I really want to resolve the migration issue)

bdraco commented 2 years ago

I would suggest trying to figure out what is causing the problem adding them manually first since discovery and migration cannot succeed if they cannot be added manually.

Traveling this week and my day job is quite busy so won't have much time to follow up. Sorry

seanmccabe commented 2 years ago

Yer double submitting them seems to solve it on every single one.

Not sure what that is about? Perhaps something to do with the way it checks the bulb is online, or the current migration is getting in the way. Odd either way. Got all of them added, bar one, not sure what the go is with that one so will have to investigate.

seanmccabe commented 2 years ago

Restart on the one (as it had genuinely gone offline) solves that.

Rgamer84 commented 2 years ago

I'm hitting this exact same issue. In my configuration.yaml I have the following:

lifx:
  light:
    - server: 192.168.0.16
      port: 56700
    - broadcast: 192.168.107.20 #Porch Front Door Light
    - broadcast: 192.168.107.21 #Porch Main Door Light
    - broadcast: 192.168.107.22 #Porch Back Door Light
    - broadcast: 192.168.107.23 #Basement Water Heater Light
    - broadcast: 192.168.107.24 #Basement Furnace Light
    - broadcast: 192.168.107.25 #Basement Cellar Door Light
    - broadcast: 192.168.107.26 #Basement Fridge Light
    - broadcast: 192.168.107.27 #Loft Light 1
    - broadcast: 192.168.107.28 #Loft Light 2
    - broadcast: 192.168.107.29 #Loft Light 3
    - broadcast: 192.168.107.30 #Loft Light 4

After updating to 2022.9.6 from 2022.7.7 all of my lifx lights are offline. I have different vlans configured (most things fall to my IoT vlan which has restrictions for getting out to the internet) so I have to manually specify the addresses for the bulbs to work. I've since reverted back to 2022.7.7 so things are operational for now but want to find a path forward.

When you say you double submitted them to solve each one, what do you mean by that? Did you have to remove every bulb from HA then add them back in one at a time?

bdraco commented 2 years ago

The migration isn't able to find your bulbs by any discovery method so it can't migrate them automatically.

The easiest way to do it would be setup a multicast repeater between your vlans and then it will find them and migrate them.

If that's not an option, delete the integration and then add them one by one in the UI by ip address. If you go this route, make sure they all have static ip addresses since if they change in the future Home Assistant will loose track of them without working discovery

seanmccabe commented 1 year ago

I just added the integration for each bulb by typing in the IP address, and I had more than what you have on that list. The double entering was referring to this, I would have to submit the form twice as first it would say it couldn't find the bulb, but immediately hitting submit again it would go through. The bulb would then be removed from the old Lifx integration automatically,maintaing the name.

Rgamer84 commented 1 year ago

Thanks for the added info! I was able to migrate my bulbs by entering in the IP addresses into the integration like you stated. I didn't have to double submit however and each one worked the first time around so not sure if something was improved upon. It was fairly painless for the amount of bulbs I have.

seanmccabe commented 1 year ago

Thanks for the added info! I was able to migrate my bulbs by entering in the IP addresses into the integration like you stated. I didn't have to double submit however and each one worked the first time around so not sure if something was improved upon. It was fairly painless for the amount of bulbs I have.

Thats good, it may be due to my setup and the restrictive policies between the devices that required the double submit. Or could be it just didn't receive a response in time. Be good to get that migration working for others though, or given the lateness, just abandon and have people enter the IPs via the gui (tedious, but least it works).

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.