Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial Operation not working :/ #78

Open
xChr11s opened this issue Jul 1, 2020 · 11 comments
Open

Partial Operation not working :/ #78

xChr11s opened this issue Jul 1, 2020 · 11 comments

Comments

@xChr11s
Copy link

xChr11s commented Jul 1, 2020

Hello together,

I installed everything today on my raspberry pi3 and could connect my somfy instantly.
The manual Operation is working fine so far.
I tested a bit around with the Scheduled Operations and figured out, that the shutter is either going completely down or up.
I tried setting 50%, but it went completely down. And the Scheduled operations aren't executed soemtimes ..
Any Idea to debug or fix this?

May I did something wrong? :/

btw. could anyone explain "Operation Time (Seconds)" at the Shutter section? Couldnt find any info about this :/

Kind regards

@rbswift
Copy link
Contributor

rbswift commented Jul 2, 2020

you probably need to put the number of seconds it takes your shutter to open/close in that section

@xChr11s
Copy link
Author

xChr11s commented Jul 2, 2020

you probably need to put the number of seconds it takes your shutter to open/close in that section

Thats a good point. I took the time it needs to go completely down and wrote 26 seconds into the settings.
Tested it again with the shutter completely up and wanted it to go down 70% but it went gone completely.
:/

@MichaelB2018
Copy link
Collaborator

Can you try with 20%. Some slides go down much faster than they go up or vise versa. So maybe that coudl be an issue here,

@xChr11s
Copy link
Author

xChr11s commented Jul 3, 2020

Can you try with 20%. Some slides go down much faster than they go up or vise versa. So maybe that coudl be an issue here,

Thanks for your answer. Tested with 20% but it went down completely again :/

@Secarius
Copy link

Secarius commented Jul 6, 2020

I have the same issue, partioal operation alwas operates the full close and open. It dosent matter wich operation time i set.
Is there a fix for this?

2020-07-06 17:22:21,322 : [DEBUG] (Thread-1192) sendCommand: Lock aquired
2020-07-06 17:22:21,327 : [DEBUG] (Thread-1192) CONFIG FILE WRITE ->> mySectionStart = 102, mySectionEnd = 109, myLine = 104
2020-07-06 17:22:21,347 : [INFO] (Thread-1192) Remote  :      0x279622 (Wohnzimmer)
2020-07-06 17:22:21,348 : [INFO] (Thread-1192) Button  :      0x04
2020-07-06 17:22:21,349 : [INFO] (Thread-1192) Rolling code : 34
2020-07-06 17:22:21,350 : [INFO] (Thread-1192)
2020-07-06 17:22:21,351 : [INFO] (Thread-1192) Frame  :    0xA7 0x40 0x00 0x22 0x27 0x96 0x22
2020-07-06 17:22:21,352 : [INFO] (Thread-1192) With cks  : 0xA7 0x43 0x00 0x22 0x27 0x96 0x22
2020-07-06 17:22:21,353 : [INFO] (Thread-1192) Obfuscated :0xA7 0xE4 0xE4 0xC6 0xE1 0x77 0x55
2020-07-06 17:22:21,972 : [DEBUG] (Thread-1192) sendCommand: Lock released
2020-07-06 17:22:21,973 : [ERROR] (Thread-1192) Error in Process Command: down: can't multiply sequence by non-int of type 'float' : mywebserver.py:84
2020-07-06 17:22:22,960 : [DEBUG] (Thread-1194) http://somfy/cmd/stop ( POST ): ((), {'command': 'stop'}) | {}
2020-07-06 17:22:22,963 : [INFO] (Thread-1194) processing Command "stop" with parameters: CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict([('shutter', '0x279622')])])
2020-07-06 17:22:22,964 : [DEBUG] (Thread-1194) stop shutter "0x279622"
2020-07-06 17:22:22,965 : [INFO] (Thread-1194) [Wohnzimmer] Stopping
2020-07-06 17:22:22,966 : [DEBUG] (Thread-1194) sendCommand: Waiting for Lock
2020-07-06 17:22:22,967 : [DEBUG] (Thread-1194) sendCommand: Lock aquired
2020-07-06 17:22:22,972 : [DEBUG] (Thread-1194) CONFIG FILE WRITE ->> mySectionStart = 102, mySectionEnd = 109, myLine = 104
2020-07-06 17:22:22,993 : [INFO] (Thread-1194) Remote  :      0x279622 (Wohnzimmer)
2020-07-06 17:22:22,994 : [INFO] (Thread-1194) Button  :      0x01
2020-07-06 17:22:22,995 : [INFO] (Thread-1194) Rolling code : 35
2020-07-06 17:22:22,996 : [INFO] (Thread-1194)
2020-07-06 17:22:22,997 : [INFO] (Thread-1194) Frame  :    0xA7 0x10 0x00 0x23 0x27 0x96 0x22
2020-07-06 17:22:22,998 : [INFO] (Thread-1194) With cks  : 0xA7 0x17 0x00 0x23 0x27 0x96 0x22
2020-07-06 17:22:22,999 : [INFO] (Thread-1194) Obfuscated :0xA7 0xB0 0xB0 0x93 0xB4 0x22 0x00
2020-07-06 17:22:23,618 : [DEBUG] (Thread-1194) sendCommand: Lock released
2020-07-06 17:22:23,619 : [DEBUG] (Thread-1194) [0x279622] Previous position: 100
2020-07-06 17:22:23,620 : [DEBUG] (Thread-1194) [0x279622] Seconds since last command: 2
2020-07-06 17:22:23,620 : [ERROR] (Thread-1194) Error in Process Command: stop: '<' not supported between instances of 'int' and 'str' : mywebserver.py:84
2020-07-06 17:22:24,735 : [DEBUG] (Thread-1196) http://somfy/cmd/down ( POST ): ((), {'command': 'down'}) | {}
2020-07-06 17:22:24,739 : [INFO] (Thread-1196) processing Command "down" with parameters: CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict([('shutter', '0x279622')])])
2020-07-06 17:22:24,740 : [DEBUG] (Thread-1196) lower shutter "0x279622"
2020-07-06 17:22:24,741 : [INFO] (Thread-1196) [Wohnzimmer] Going down
2020-07-06 17:22:24,742 : [DEBUG] (Thread-1196) sendCommand: Waiting for Lock
2020-07-06 17:22:24,742 : [DEBUG] (Thread-1196) sendCommand: Lock aquired
2020-07-06 17:22:24,747 : [DEBUG] (Thread-1196) CONFIG FILE WRITE ->> mySectionStart = 102, mySectionEnd = 109, myLine = 104
2020-07-06 17:22:24,767 : [INFO] (Thread-1196) Remote  :      0x279622 (Wohnzimmer)
2020-07-06 17:22:24,769 : [INFO] (Thread-1196) Button  :      0x04
2020-07-06 17:22:24,770 : [INFO] (Thread-1196) Rolling code : 36
2020-07-06 17:22:24,770 : [INFO] (Thread-1196)
2020-07-06 17:22:24,771 : [INFO] (Thread-1196) Frame  :    0xA7 0x40 0x00 0x24 0x27 0x96 0x22
2020-07-06 17:22:24,772 : [INFO] (Thread-1196) With cks  : 0xA7 0x45 0x00 0x24 0x27 0x96 0x22
2020-07-06 17:22:24,773 : [INFO] (Thread-1196) Obfuscated :0xA7 0xE2 0xE2 0xC6 0xE1 0x77 0x55
2020-07-06 17:22:25,392 : [DEBUG] (Thread-1196) sendCommand: Lock released
2020-07-06 17:22:25,393 : [ERROR] (Thread-1196) Error in Process Command: down: can't multiply sequence by non-int of type 'float' : mywebserver.py:84
2020-07-06 17:22:26,010 : [DEBUG] (Thread-1198) http://somfy/cmd/stop ( POST ): ((), {'command': 'stop'}) | {}
2020-07-06 17:22:26,013 : [INFO] (Thread-1198) processing Command "stop" with parameters: CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict([('shutter', '0x279622')])])
2020-07-06 17:22:26,015 : [DEBUG] (Thread-1198) stop shutter "0x279622"
2020-07-06 17:22:26,015 : [INFO] (Thread-1198) [Wohnzimmer] Stopping
2020-07-06 17:22:26,016 : [DEBUG] (Thread-1198) sendCommand: Waiting for Lock
2020-07-06 17:22:26,017 : [DEBUG] (Thread-1198) sendCommand: Lock aquired
2020-07-06 17:22:26,022 : [DEBUG] (Thread-1198) CONFIG FILE WRITE ->> mySectionStart = 102, mySectionEnd = 109, myLine = 104
2020-07-06 17:22:26,042 : [INFO] (Thread-1198) Remote  :      0x279622 (Wohnzimmer)
2020-07-06 17:22:26,043 : [INFO] (Thread-1198) Button  :      0x01
2020-07-06 17:22:26,044 : [INFO] (Thread-1198) Rolling code : 37
2020-07-06 17:22:26,045 : [INFO] (Thread-1198)
2020-07-06 17:22:26,046 : [INFO] (Thread-1198) Frame  :    0xA7 0x10 0x00 0x25 0x27 0x96 0x22
2020-07-06 17:22:26,047 : [INFO] (Thread-1198) With cks  : 0xA7 0x11 0x00 0x25 0x27 0x96 0x22
2020-07-06 17:22:26,048 : [INFO] (Thread-1198) Obfuscated :0xA7 0xB6 0xB6 0x93 0xB4 0x22 0x00
2020-07-06 17:22:26,667 : [DEBUG] (Thread-1198) sendCommand: Lock released
2020-07-06 17:22:26,668 : [DEBUG] (Thread-1198) [0x279622] Previous position: 100
2020-07-06 17:22:26,680 : [DEBUG] (Thread-1198) [0x279622] Seconds since last command: 1
2020-07-06 17:22:26,681 : [ERROR] (Thread-1198) Error in Process Command: stop: '<' not supported between instances of 'int' and 'str' : mywebserver.py:84
2020-07-06 17:22:27,921 : [DEBUG] (Thread-1200) http://somfy/cmd/up ( POST ): ((), {'command': 'up'}) | {}
2020-07-06 17:22:27,924 : [INFO] (Thread-1200) processing Command "up" with parameters: CombinedMultiDict([ImmutableMultiDict([]), ImmutableMultiDict([('shutter', '0x279622')])])
2020-07-06 17:22:27,925 : [DEBUG] (Thread-1200) rise shutter "0x279622"
2020-07-06 17:22:27,926 : [INFO] (Thread-1200) [Wohnzimmer] Going up
2020-07-06 17:22:27,927 : [DEBUG] (Thread-1200) sendCommand: Waiting for Lock
2020-07-06 17:22:27,928 : [DEBUG] (Thread-1200) sendCommand: Lock aquired
2020-07-06 17:22:27,932 : [DEBUG] (Thread-1200) CONFIG FILE WRITE ->> mySectionStart = 102, mySectionEnd = 109, myLine = 104
2020-07-06 17:22:27,953 : [INFO] (Thread-1200) Remote  :      0x279622 (Wohnzimmer)
2020-07-06 17:22:27,954 : [INFO] (Thread-1200) Button  :      0x02
2020-07-06 17:22:27,955 : [INFO] (Thread-1200) Rolling code : 38
2020-07-06 17:22:27,956 : [INFO] (Thread-1200)
2020-07-06 17:22:27,957 : [INFO] (Thread-1200) Frame  :    0xA7 0x20 0x00 0x26 0x27 0x96 0x22
2020-07-06 17:22:27,958 : [INFO] (Thread-1200) With cks  : 0xA7 0x21 0x00 0x26 0x27 0x96 0x22
2020-07-06 17:22:27,959 : [INFO] (Thread-1200) Obfuscated :0xA7 0x86 0x86 0xA0 0x87 0x11 0x33
2020-07-06 17:22:28,578 : [DEBUG] (Thread-1200) sendCommand: Lock released
2020-07-06 17:22:28,579 : [ERROR] (Thread-1200) Error in Process Command: up: can't multiply sequence by non-int of type 'float' : mywebserver.py:84

@stalakerob
Copy link

Hi, I'm interested in that too. Any progress in the meantime on how to do that?
Thx

@firewiremb
Copy link
Contributor

Hi, I think I found one of the problems.

An example:

Shutter A is fully opened in the morning an closed for 60% by scheduled operations lets say at 8:00. Shutter A should again be closed by scheduled operations for 60% at 13:00. Between 8:00 and 13:00 the shutter is operated manually.

What happens?

Lets say Shutter A is moved manually to position 40% between 8:00 and 12:00 --> At 13:00 nothing happens. You will find an error in the logfile

Lets say Shutter A is moved manually to position 80% between 8:00 and 12:00 --> At 13:00 Shutter A is moved to positon 60%. Everything is fine

Lets say Shutter A is not moved manually between 8:00 and 12:00 at all --> At 13:00 Shutter A is fully closed.

I changed the code in my installation and the Problem is gone. I tried to created my first pull request. Hopefully it worked. Never done this before.

@rbswift
Copy link
Contributor

rbswift commented Aug 5, 2020

Before making substantial changes to the code may I suggest reflecting each shutter position open/close% state in the web UI? This will help greatly with troubleshooting and understanding when and if the Pi-Somfy state does not correspond with reality.

Currently it's very likely that there will be unpredictable results if the shutter is controlled manually outside Pi-Somfy because the code has no way of tracking manual movement.

FWIW, I've got a 3 blinds and 2 shutters all running with Pi-Somfy and have found the best option is to put the manual controllers away somewhere safe for emergency use only and do everything either with schedules, scenes or manually on phones. I use Siri/Apple Home > Homebridge > MQTT > Pi-Somfy and it works flawlessly for open/close and partial states.

@stalakerob
Copy link

@firewiremb and @rbswift, thanks for taking the time to reply. I think rbswift hits the point. Since the 433 MHz system is only unidirectional, you cannot find out the current position if it has been changed with a manual controller.
What you can do though if you want to move the shutter to a specific position using a script or automation and you want to make sure that the position is correct:

  1. first close the shutter with Pi-Somfy (even if it is closed already ). Pi-Somfy now knows the current position is 100
  2. move the shutter to the position you want

@firewiremb
Copy link
Contributor

@rbswift and @stalakerob
I do not use a controller outside Pi-Somfy. "Mannually" in my post from yesterday means I am using the Pi-Somfy web interface and not a scheduled operation.
I know the system is unidirectional and I made sure that the starting positions of the shutters match those in Pi-Somfy.

My message from yesterday is a response to the start message from xChr11s
The problems described from xChrs11s occur precisely in this configuration I have described yesterday and can be reproduced at any time. Just try.

@xChr11s
Copy link
Author

xChr11s commented Sep 16, 2020

Hello guys,
Sorry for the long time not answering, but I'm back now.
Sadly my Raspi SD Card died and I had to get a new one and setup it correctly.
I have a fresh installed Pi Somfy now and stil the same issue with it completely running down when sat at 70% and completely up before. Any Ideas how to troubleshoot this more?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants