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

MQTT Config

$
0
0

Need a wee bit of help with this one please, the config was changed on last update. I followed the new details on the MQTT integration page and after a bit of whitespace nonsense I got it to check correctly, below is the new config which is seemingly fine and passes the check, but now the blinds are greyed out in the dahsboard and thus unavaliable. Banging my head against the wall for this one, but I bet I have missed something silly and I can’t see it. Very much thankyou in advance!

mqtt:
  cover:
    - name: "Bedroom Blind"
      command_topic: "cmnd/bedroomblind/TuyaSend4"
      position_topic: "tele/bedroomblind/RESULT"
      set_position_topic: "cmnd/bedroomblind/TuyaSend2"
      availability:
        - topic: "tele/bedroomblind/LWT"
      payload_open: "1,0"
      payload_close: "1,2"
      payload_stop: "1,1"
      payload_available: "Online"
      payload_not_available: "Offline"
      position_open: 0
      position_closed: 100
      position_template: >-
        {% if value_json['TuyaReceived']['DpType2Id3'] is undefined %}
        {{ 100 - state_attr('cover.shades','current_position') | int }}
        {% else %}  
        {{ value_json['TuyaReceived']['DpType2Id3'] | int }}
        {% endif %}
      set_position_template: "2,{{ position }}"

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106571

Trending Articles



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