Skip to content

Home Assistant custom component event control #159

Answered by m3730r
m3730r asked this question in Q&A
Discussion options

You must be logged in to vote

This now works

       event:
          "up":
            - service: scene.turn_on
              data_template:
                entity_id: >
                  {% if val == 0 %}
                  scene.kai_sz_aus
                  {% else %}
                  scene.kai_sz_normallicht
                  {% endif %}

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
3 replies
@m3730r
Comment options

@dgomes
Comment options

@m3730r
Comment options

Comment options

You must be logged in to vote
1 reply
@m3730r
Comment options

Comment options

You must be logged in to vote
6 replies
@m3730r
Comment options

@nagyrobi
Comment options

@dgomes
Comment options

@dgomes
Comment options

@m3730r
Comment options

Comment options

You must be logged in to vote
1 reply
@rlust
Comment options

Answer selected by m3730r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants