Sometimes some of my automations don’t trigger, so when I look at the trace to find out why, I’ll see something like unknown entity. Does anyone know what’s happening and how to fix it?

  • sue_her_birds@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    8 months ago

    My guess is that at some point you had a lux sensor (illuminance) as a condition and that entity has either had its name changed or has been deleted.

    Check out the automation (either in the builder or in the yaml) to see if you have this condition. Then see if that entity still exists or if it’s name has changed.

    Edit: for clarity

    • sabreW4K3@lemmy.tfOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      See that’s the weird thing. I haven’t removed or renamed any devices and most of the time everything works, but once in awhile I get these errors.

      • thehatfox@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        8 months ago

        Once I had devices that replaced entities with new ones with a different ID after a firmware update. It happened to some ESPHome devices I had after upgrading the firmware. Have you checked the device the entity belongs to?

        • sabreW4K3@lemmy.tfOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 months ago

          Yup, once I manually trigger the automations, everything starts working again

  • Padook@feddit.nl
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 months ago

    Maybe click on that lux entity in the dashboard and see if it has been consistently transmitting its data (on the history graph)? I’m pretty sure you’ll get this warning if the state reads “unavailable” which could be a reception issue or a dying sensor.

    I recently saw this happen to an animation of mine and I think this was the cause

    • sabreW4K3@lemmy.tfOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      I’m using Zigbee2MQTT and they’re plugged in, but the fade is set to something like 5 seconds