hello all,
I have a question that I am not quite getting out of. I have folding blinds that consist of a motor and a usb dongle, flashed with Tasmota. I would like to get the blinds into home assistant using mqtt. To do this, I followed a guide from Blakadder.
One of the options is to get a slider, which allows you to change the direction. What I don’t understand now is that with blinds 1 (vouwgordijn 1) I get the slider and with blinds 2 (vouwgordijn 2) I don’t get a slider, but a different icon. And that with the same settings?
How is this possible?
Blinds 1
Blinds 2
Below my configuration.yaml settings:
mqtt:
switch:
- name: "Motor Direction 1"
icon: mdi:blinds
state_topic: "tele/zemismart1/RESULT"
state_on: 1
state_off: 0
value_template: >-
{% if value_json['TuyaReceived'].DpType1Id5 is defined %}
{{ value_json.TuyaReceived.DpType1Id5 }}
{% else %}
{{ states('switch.motor_direction1') }}
{% endif %}
command_topic: "cmnd/zemismart1/TuyaSend"
payload_on: "5,1"
payload_off: "5,0"
availability_topic: "tele/zemismart1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- name: "Motor Direction 2"
icon: mdi:blinds
state_topic: "tele/zemismart2/RESULT"
state_on: 1
state_off: 0
value_template: >-
{% if value_json['TuyaReceived'].DpType1Id5 is defined %}
{{ value_json.TuyaReceived.DpType1Id5 }}
{% else %}
{{ states('switch.motor_direction2') }}
{% endif %}
command_topic: "cmnd/zemismart2/TuyaSend"
payload_on: "5,1"
payload_off: "5,0"
availability_topic: "tele/zemismart2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
Thanks in advance!
Kind regards
Johan