core: Lifx integration hhas stopped working shortly after installing 2021.9.3

The problem

Last night, home assistant stopped being able to talk to all my lights. I suspect this may be related to upgrading to 2021.09.03 (I am running in docker, and use watchtower to upgrade my containers automatically). Restarting does not bring the lights back. They continue to be on the network and accessible using my flic buttons so I am confident that the problem is to to with home assistant. I have log entries as follows:

2021-09-05 09:41:58 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.study

Nothing else useful appears to be in the logs, and all the lights are showing as “unavailable” in Lovelace.

What is version of Home Assistant Core has the issue?

core-2021.9.3

What was the last working version of Home Assistant Core?

No response

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/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-09-05 09:41:58 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.study

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (10 by maintainers)

Most upvoted comments

I’ve fixed the issue on my end and will recap what I have running now that works:

  • I have a PC running openSUSE Leap 15.3 with NetworkManager and firewalld.
  • In NetworkManager I ensured that eth0 is in the “home” zone for firewalld.
  • In firewalld I added acceptance of “new, untracked” packets from port 56700/udp
    • firewall-cmd --permanent --zone=home --add-source-port=56700/udp
    • firewall-cmd --reload
  • I run Home Assistant via Docker using the suggested docker-compose configuration in the documentation:
version: '3'
services:
  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    volumes:
      - /etc/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
    privileged: true
    network_mode: host

Thanks for your help, @amelchio 👍🏻 😃

@francais01 Adding port-forwarding to Docker is not needed/possible with host networking. When you change the firewall, make sure that the filter is for source port 56700. Usually one makes rules for the destination port but that will not work with LIFX (or you can check the advanced section of the documentation to set a fixed port).