stefanbode / Sonoff-Tasmota

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE, enhanced with I2C options
GNU General Public License v3.0
127 stars 41 forks source link

shutterstop doesn't work #98

Closed B1G1 closed 5 years ago

B1G1 commented 5 years ago

Hi Stefan, I have found that the shutterstop command does not work properly, the position is updated to the moment I send the stop command, but the shutter does not stop.

Also, make sure these boxes are checked [x] before submitting your issue - Thank you!

here a log

16:27:58 MQT: stat/tapparellaStudio/SHUTTER1 = 100
16:27:58 SRC: Shutter
16:27:58 MQT: stat/tapparellaStudio/RESULT = {"POWER1":"ON"}
16:27:58 MQT: stat/tapparellaStudio/POWER1 = ON
16:27:59 SRC: PulseTimer
16:27:59 MQT: stat/tapparellaStudio/RESULT = {"POWER1":"OFF"}
16:27:59 MQT: stat/tapparellaStudio/POWER1 = OFF
16:27:59 CFG: Saved to flash at F5, Count 38, Bytes 3824
16:28:52 SRC: MQTT
16:28:52 RSL: Group 0, Index 1, Command BACKLOG, Data SHUTTERCLOSE
16:28:52 SRC: Backlog
16:28:52 RSL: Group 0, Index 1, Command SHUTTERCLOSE, Data 
16:28:52 shutterposition in: payload 0, index 1, source 7
16:28:52 lastsource 7:, realpos 48000, target 0, payload 0
16:28:52 Start shutter in right direction -1
16:28:52 SRC: Shutter
16:28:53 MQT: stat/tapparellaStudio/RESULT = {"POWER2":"ON"}
16:28:53 MQT: stat/tapparellaStudio/POWER2 = ON
16:28:53 Delay6 5s, xdrv 21
16:28:53 MQT: stat/tapparellaStudio/RESULT = {"shutterclose1":0}
16:28:53 SRC: PulseTimer
16:28:53 MQT: stat/tapparellaStudio/RESULT = {"POWER2":"OFF"}
16:28:53 MQT: stat/tapparellaStudio/POWER2 = OFF
16:28:53 Shutter 0: Real Pos: 45712, Target 0, source: PulseTimer, start-pos: 100 %, direction: -1, rtcshutter: 1.1  [s]
16:28:54 Shutter 0: Real Pos: 43632, Target 0, source: PulseTimer, start-pos: 100 %, direction: -1, rtcshutter: 2.1  [s]
16:28:55 MQT: tele/tapparellaStudio/STATE = {"Time":"2018-12-12T16:28:55","Uptime":"0T00:05:20","Vcc":3.156,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"FRITZ2.4","BSSId":"C8:0E:14:1E:C4:9C","Channel":1,"RSSI":100},"DeepSleep":0,"Heap":17672}
16:28:55 MQT: tele/tapparellaStudio/SENSOR = {"Time":"2018-12-12T16:28:55","SHUTTER-1":100}
16:28:55 Shutter 0: Real Pos: 41448, Target 0, source: PulseTimer, start-pos: 100 %, direction: -1, rtcshutter: 3.1  [s]
16:28:56 Shutter 0: Real Pos: 39472, Target 0, source: PulseTimer, start-pos: 100 %, direction: -1, rtcshutter: 4.1  [s]
16:28:57 Shutter 0: Real Pos: 37392, Target 0, source: PulseTimer, start-pos: 100 %, direction: -1, rtcshutter: 5.1  [s]
16:28:57 SRC: MQTT
16:28:57 RSL: Group 0, Index 1, Command BACKLOG, Data SHUTTERSTOP
16:28:58 SRC: Backlog
16:28:58 RSL: Group 0, Index 1, Command SHUTTERSTOP, Data 
16:28:58 Stop moving shutter 1: direction:-1
16:28:58 shutterposition in: payload 63, index 1, source 7
16:28:58 lastsource 7:, realpos 36248, target 34865, payload 63
16:28:58 MQT: stat/tapparellaStudio/RESULT = {"shutterstop1":63}
16:28:58 Shutter 0: Real Pos: 35312, Target 34865, source: WebGui, start-pos: 100 %, direction: -1, rtcshutter: 6.1  [s]
16:28:58 Shutter 0: Real Pos. 34792, Stoppos: 62, relay: 1, direction -1, pulsetimer: 5, rtcshutter: 6.3 [s], operationtime 2
16:28:58 MQT: stat/tapparellaStudio/SHUTTER1 = 62
16:28:58 CFG: Saved to flash at F4, Count 39, Bytes 3824
stefanbode commented 5 years ago

Fixed version uploaded