Skip to content

Template support in state-based layer #3

@confusinguser

Description

@confusinguser

I want to have a base layer which is always on. This is so my room does not go into pitch black darkness when I restart HA, as that is uncomfortable and scary.

I tried doing this:

Image

But obviously that didn't work, as templates are not supported. The main issue is when the integration is reloaded, because the layers are reevaluated then. I can see three solutions that would solve this conundrum:

  • Evaluate any condition on startup, regardless of whether it's supported or not
  • Add a toggle to define a layer as always-on
  • Keep the layer state from when the integration was shut down, if that layer does not have any conditions or triggers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions