rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
430 stars 32 forks source link

Stop button often doesn't work, when Up and Down buttons work great #314

Closed AAfetisov closed 2 months ago

AAfetisov commented 3 months ago

Hardware

ESP32-S3

Firmware version

v2.4.1

Application version

v2.4.1

What happened? What did you expect to happen?

Stop button often doesn't work, when Up and Down buttons work great. I sometimes click Stop tons of times with 0 effect. The remote control's Stop always work. why could that be?

How to reproduce it (step by step)

press Up or Down, press Stop. Sometimes it wont work no matter how many times you press it and the motor will be running for another 10sec until it stops because of the timer(probably). Tried this on esp32-s3 and esp32-wroom-32

Logs

No response

rstrouse commented 3 months ago

Increase the number of times that the commands are repeated to the motor. You will find this dropdown when you edit the shade definition.

Nickduino commented 3 months ago

But why would this impact the stop button more than the two others?

I too had the feeling the stop button was less responsive than the up and down but I thought it was just in my head.

rstrouse commented 3 months ago

I have seen a few instances where this happens. I have a theory that it is related to interference created by the running motor.

Nickduino commented 3 months ago

I have a theory that it is related to interference created by the running motor.

But these interferences would jam the up or down signal as well (when it's running, you can change its direction but not stop it).

And I'm not sure I've witnessed that with the original remotes (or my Python script or Arduino sketch for that matter).

rstrouse commented 3 months ago

Perhaps. It is just a theory. On my motors I have not witnessed any difference between sending My and any other command. It all routes through the same place for the command interface. The motors themselves do listen for long press and repeats on the My command though while they typically do not for up/down.

Nickduino commented 3 months ago

The motors themselves do listen for long press and repeats on the My command though while they typically do not for up/down.

I don't think my 30 year old motors do listen for a my command. And again, I've not seen that behaviour with my physical remotes or script.

But that might be in my head. It's just that seeing someone else noticed that behaviour made me think there was something to it.

AAfetisov commented 3 months ago

Increase the number of times that the commands are repeated to the motor. You will find this dropdown when you edit the shade definition.

I tried that. I'v set it to 5 repeats. Tried 10 and 20 too. Could it be that the app freezes sometimes after receiving Up or Down? Because I also had ui giving me very long or even endless spinning balls when clicking on my drapes.

Nickduino commented 3 months ago

Could it be that the app freezes sometimes after receiving Up or Down?

If you move the shutter with the physical remote, does the stop button work on ESPSomfy?

rstrouse commented 3 months ago

Please test what @Nickduino said.

Also try it with the IP address if you are currently using the DNS name for the device. Depending on your network it may not be efficiently resolving mDNS. In that instance the browser console will have a message indicating that it cannot resolve host name.

Depending on your network mDNS issues can sometimes be resolved by reserving an IP address and supplying the hostname in your router.

AAfetisov commented 2 months ago

Also try it with the IP address if you are currently using the DNS name for the device. Depending on your network it may not be efficiently resolving mDNS. In that instance the browser console will have a message indicating that it cannot resolve host name.

o_O, this seems to be exactly the case. It works flawless if I use static ip instead of a domain name. Thank you for your help

ps Sorry for the delay