Skip to content

Motion based light control - lights not turning off #11

@jose1711

Description

@jose1711

I am using your motion_activated_entity.yaml blueprint and I really like the level of customisation it brings. There is one problem though. During the day it's set to watch the lux level and I am calling custom script to turn on the lights.

The problem starts when the lights are switched on manually by using a wall switch. That means they transition from "unavailable" to "on". The issue is that this condition

value_template: '{{ (states(target_entity) == ''on'') or (illuminance_currently
almost never evaluates to true - during a normal day there is enough light in the room and script state returns "off" all the time.

Is there a solution you'd recommend?

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