Hi!
I’ve bought 5 LoraTap In-Wall Curtain Module (SC511WSC) and add Tasmota to them with:
{"NAME":"SC511WSC","GPIO":[0,255,0,56,17,19,0,0,21,18,23,22,0],"FLAG":0,"BASE":18}
pulsetime1 112 # 12 seconds of pulsetime for open
pulsetime2 1 # Pulsetime for stop
pulsetime3 112 # 12 seconds of pulsetime for close
Backlog Delay 50; Interlock 1,2,3; Interlock on; PowerOnState 0; PowerRetain 0; setoption1 1; setoption26 1; Restart 1
And added this to mqtt.yaml:
- cover:
name: "Estore Quarto"
command_topic: "cmnd/estore_quarto/POWER"
state_topic: "stat/estore_quarto/POWER"
availability_topic: "tele/estore_quarto/LWT"
qos: 1
retain: true
payload_open: "On"
payload_close: "ON"
payload_stop: "ON"
payload_available: "Online"
payload_not_available: "Offline"
optimistic: false
value_template: >
{% if value_json.STATE == 'OPENING' %}
opening
{% elif value_json.STATE == 'OPEN' %}
open
{% elif value_json.STATE == 'CLOSING' %}
closing
{% elif value_json.STATE == 'CLOSED' %}
closed
{% elif value_json.STATE == 'STOPPED' %}
stopped # Ensure Home Assistant recognizes the 'STOPPED' state
{% else %}
unknown
{% endif %}
And I have these rules:
{"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":157,"Free":354,"Rules":"ON Power1#State=1 DO Publish stat/estore_quarto/POWER {\"STATE\":\"OPENING\"} ENDON ON Power1#State=0 DO Publish stat/estore_quarto/POWER {\"STATE\":\"OPEN\"} ENDON"}}
{"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":159,"Free":352,"Rules":"ON Power3#State=1 DO Publish stat/estore_quarto/POWER {\"STATE\":\"CLOSING\"} ENDON ON Power3#State=0 DO Publish stat/estore_quarto/POWER {\"STATE\":\"CLOSED\"} ENDON"}}
{"Rule3":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":79,"Free":432,"Rules":"ON Power2#State=1 DO Publish stat/estore_quarto/POWER {\"STATE\":\"STOPPED\"} ENDON"}}
If I use the buttons at Tasmota everything works great and HA updates correctly.
But if I push the “Open”, “Close” and “Stop” at HA, the shutter always OPENS.
I think the problem resides on the payloads, but I don’t know how to fix this. Over a week trying with the help of chatGPT 4 and still nothing.
Any help would be appreciated!!