Closed snakuzzo closed 5 years ago
Totally agree to your finding and thanks for the log files. I assume you are use the standard mode this is most likely from the logs. I have same configuration here, therefore easy to reproduce. If it behaves like that this is for sure a bug..
The second power2 off is the mistake. The position is correct with 28 but it should not stop until 10. should be easy fixable
There were some changes in the webinterface and the INTERLOCK behavior. Therefore the detection, if someone hits a button or play on the slider in the webinterface was not working anymore. Please feel free o check and give feedback
Thanks! Now it works.
18:28:18 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"ON"}
18:28:18 MQT: stat/sonoff-cletto/POWER1 = ON (salvato)
18:28:18 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":56}
18:28:18 Shutter 0: Real Pos: 1100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 0.6 [s]
18:28:19 Shutter 0: Real Pos: 3100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 1.6 [s]
18:28:20 Shutter 0: Real Pos: 5100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 2.5 [s]
18:28:21 Shutter 0: Real Pos: 7100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 3.5 [s]
18:28:22 Shutter 0: Real Pos: 9100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 4.5 [s]
18:28:23 Shutter 0: Real Pos: 11100, Target 22400, source: Shutter, start-pos: 0 %, direction: 1, rtcshutter: 5.5 [s]
18:28:24 Start shutter in direction -1
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"POWER1":"OFF"}
18:28:24 MQT: stat/sonoff-cletto/POWER1 = OFF (salvato)
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"ON"}
18:28:24 MQT: stat/sonoff-cletto/POWER2 = ON (salvato)
18:28:24 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":9}
18:28:25 Shutter 0: Real Pos: 10500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 1.0 [s]
18:28:26 Shutter 0: Real Pos: 8500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 2.0 [s]
18:28:27 Shutter 0: Real Pos: 6500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 3.0 [s]
18:28:28 Shutter 0: Real Pos: 4500, Target 3600, source: Shutter, start-pos: 0 %, direction: -1, rtcshutter: 4.0 [s]
18:28:28 MQT: stat/sonoff-cletto/SHUTTER1 = 9 (salvato)
18:28:28 MQT: stat/sonoff-cletto/RESULT = {"POWER2":"OFF"}
18:28:28 MQT: stat/sonoff-cletto/POWER2 = OFF (salvato)
18:28:28 MQT: tele/sonoff-cletto/RESULT = {"SHUTTER-1":{"position":9, "direction":0}}
18:28:28 MQT: stat/sonoff-cletto/RESULT = {"shutterposition1":9}
Just a question... Do you think is correct to add a little delay (maybe about 0.3s) between POWERx OFF and POWERy ON on switch direction using slider ? To understand why I made two videos...
Switch with buttons (native) https://www.youtube.com/watch?v=plhQcKpSMXk
Switch with slider (after your fix) https://www.youtube.com/watch?v=npMF2gMbI4Y
This is more tricky than you might expect. There is already a delay implemented with 0.5sec default value. You will find the variable under: MOTOR_STOP_TIME
This will not work if you hit the relay button directly in the webinterface. In this case, the INTERLOCK is switching OFF the first relay and it is very hard to get a SLEEP after this. Maybe I can have a look tomorrow afternoon, but I do not expect an easy change. With the slider, I control the relays. This makes things much easier. The INTERLOCK must be defined but as long as you use the slider or SHUTTERPOSITION the rescue mechanism from INTERLOCK should have no reason to dig in.
Thank you for your time Stefan. But in the "switch buttons" video I used buttons on web interface...and that delay is ok. My question about delay was related to the slider
Hi Stefan, any news about that delay ?
Not yet. The slider should work anyway because I’m this situation I control the relay. Will investigate tomorrow afternoon
Than you ;)
New vesion is now aware of a fine motor_stop in any situation. Default time is 0.5 sec. Can be changed in code. Search for: MOTOR_STOP_TIME
Thank you Stefan! I'll try later :)
It works great!
status 0
:I think I found a problem about slider to set percentage position. Here is an example of my problem... I'm starting with blind completely closed. Moving slider on 50% position it correctly starts moving...
...but...if while opening I move slider back to (for example) 10% it stops. (I hear relay sound two times and it stops)
I think last
stat/sonoff-cletto/RESULT = {"POWER2":"OFF"}
is wrong. I don't know if I can fix this by some configuration parameter or if it's a bugWithout using slider but just buttons, it works fine...
I made 2 videos about this
SLIDER KO https://www.youtube.com/watch?v=QinVLlk7qmg
BUTTONS OK https://www.youtube.com/watch?v=VxIdwPuKM2s