Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Multiple Input Constraints #1623

Merged

Conversation

SirIndubitable
Copy link
Contributor

@SirIndubitable SirIndubitable commented Jan 13, 2023

This small change allows users to configure multiple input_boolean or input_select constraints for their apps.

For example, with this change, users should be able to configure this app:

workday_sunrise_alarm:
  module: lights
  class: SunriseAlarmLight
  light: light.bedroom
  rise_time: '07:00:00'
  constrain_input_boolean:
    - input_boolean.weekday_alarm_enabled
    - binary_sensor.is_weekday,off
  constrain_input_select:
    - person.me,home
    - person.partner,home

@acockburn
Copy link
Member

Thanks for this - can you fix up the docs as well please to reflect your changes.

@acockburn acockburn merged commit c8fd62d into AppDaemon:dev Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants