Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Brightness in MQTT template scheme

$
0
0

@vannooo wrote:

Hi,

Help me. Why brightness is not work in this code:

  command_on_template: >
    {% if brightness is defined %}
      {{ "BRI" + brightness }}
    {% else %}
      {% if effect is defined %}
        {{ "EFF" + effect }}
      {% else %}
        {% if state is defined %}
          {{ "P_ON" }}
        {% endif %}
      {% endif %}
    {% endif %}

Effect and power on works correctly.

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>