I can’t seem to get the input_boolean to affect the motion sensors, that is, to not have them run when the input_boolean is set to off. Here’s what’s happening:
I’m using the example app for motion_lights as written here: https://github.com/home-assistant/appdaemon/blob/dev/conf/example_apps/motion_lights.py
In my app.yaml file, I’m using the following configuration:
basement_motion:
module: motion_lights
class: MotionLights
sensor: binary_sensor.basement_motion_sensor
entity_on: switch.basement
entity_off: switch.basement
delay: 60
constrain_input_boolean: input.boolean.basement_sensor
The input boolean is as follows:
basement_sensor:
name: Basement Sensor
initial: on
icon: mdi:track-light
With it set to on, the motion sensor works as expected. However, when I turn it off, the motion sensor is still active and still turns the lights on. Am I missing something? I’m very new to AppDaemon, so I very well may be missing something.