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

Add template condition #61

Merged
merged 1 commit into from
Jan 5, 2023
Merged

Conversation

ericmatte
Copy link
Owner

@ericmatte ericmatte commented Jan 5, 2023

Fixes #44.
Fixes #57.

This PR add a new way to setup the condition to wether or not to sync the lights with this app.

Example:

condition:
  value_template: "{{ state_attr('media_player.tv', 'media_content_type') == 'movie' and is_state('sun.sun', 'below_horizon') }}"

@ericmatte ericmatte merged commit 453d6b7 into master Jan 5, 2023
@ericmatte ericmatte deleted the improve-condition-documentation branch January 5, 2023 03:17
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.

Support state attributes in condition like media player source Help configuration for Condition
1 participant