arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.18k stars 4.8k forks source link

Error when running ShutterSetClose during shutters calibration #20344

Closed rlegrand closed 10 months ago

rlegrand commented 10 months ago

PROBLEM DESCRIPTION

Tasmota returns ERROR when running the ShutterSetClose command. My device is this one. For the conf I did several tests but the one provided here is the last I tried after a reset of the device. Thanks for any help !

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [x] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
19:23:47.031 CMD: Backlog Rule1; Rule2;
19:23:47.060 RSL: RESULT = {"Rule1":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":39,"Free":472,"Rules":"on Power3#State=1 do ShutterStop1 endon"}}
19:23:47.290 RSL: RESULT = {"Rule2":{"State":"ON","Once":"OFF","StopOnError":"OFF","Length":233,"Free":278,"Rules":"on Power1#State=0 do LEDPower1 0 endon on Power1#State=1 do LEDPower1 1 endon on Power2#State=0 do LEDPower2 0 endon on Power2#State=1 do LEDPower2 1 endon on Power3#State=0 do LEDPower3 0 endon on Power3#State=1 do LEDPower3 1 endon"}}
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
19:25:43.388 CMD: ShutterSetClose
19:25:43.390 SRC: WebConsole from 192.168.86.159
19:25:43.392 CMD: Grp 0, Cmd 'SHUTTERSETCLOSE', Idx 1, Len 0, Pld -99, Data ''
19:25:43.397 RSL: RESULT = {"Command":"Error"}

TO REPRODUCE

Use the same device and run:

Reset 1
Template {"NAME":"WF-CS02 Tuya","GPIO":[157,0,53,11,23,18,0,0,17,21,54,22,52],"FLAG":0,"BASE":18}
SetOption80 1
SetOption13 1
Backlog PulseTime1 0; PulseTime2 0
Pulsetime3 1
Backlog Interlock 1,2,3; Interlock ON
PowerRetain 1
Rule1 on Power3#State=1 do ShutterStop1 endon
Rule1 1
Rule2 on Power1#State=0 do LEDPower1 0 endon on Power1#State=1 do LEDPower1 1 endon on Power2#State=0 do LEDPower2 0 endon on Power2#State=1 do LEDPower2 1 endon on Power3#State=0 do LEDPower3 0 endon on Power3#State=1 do LEDPower3 1 endon
Rule2 1
SwitchMode2 4
SwitchMode3 4
ShutterSetClose

EXPECTED BEHAVIOUR

No error.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

The only thing I can think about is it looks like there is something related to tuya in this device ( as the template name says here ) and the calibration doc tells tuya is not supported for shutters calibration. But I don't know if it's really the issue while the conf proposed for the device is a preamble to the shutter calibration so I guess it should work.

(Please, remember to close the issue when the problem has been addressed)

stefanbode commented 10 months ago

This works to spec. After starting calibration no other commands are supported. Pls let me know if you need further support. The calibration is still beta state and only work if you strictly follow the path.

stefanbode commented 10 months ago

Calibration is supported for all devices that reports the power usage on the shutter during operation. Anyhow still struggle with reboots on some of the hardware doing the measurement.