-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Somfy Tahoma] Add RTS blinds slats tilt support #16285
Comments
I have debugged the tilt requests, and there are they: Tilt UP:
Tilt DOWN:
The number in this captures is 3 but can be in range of 1 to 5. This is the amount of tilt need to be applied. The result of both requests is:
|
This is a screenshot of the feature. The more you move the slider up or down the number increases but nothing happens until you release the slider. Then it sends the number and the slats execute the tilt amount. When the slider is released it returns to the middle. Slider up = tiltNegative |
OK, I get the point, how do you want to control it in OH? Two new command channels tilt_positive, tilt_negative - each incresing the specific tilt by the number provided, default 1 and max 5? thanks |
Yes, like this, two number channels. |
Here is the latest snapshot based on the OAUTH branch and containg support for your blinds. Please remove the original blinds from OH and let it rediscover new blinds. Up/Down Venetian blinds should appear with a control and a new tilt dimmer channel. The tilt channel expects a number in <-5..5> range and decides whether to send tiltNegative or tiltPositive commands. Please let me know if it is working or not. In case it doesn't work as expected, please, provide me with the debug log. Thanks. |
Alright, I did the testing. I have removed a blind and added it again. It is discovered as When creating a Item on the Tilt channel a Dimmer type is suggested. When using this and use the Dimmer widget the OH REST API returns a 400 Bad Request, no matter which command I send, positive, negative number. Always a 400 Bad Request. I then added a Number type Item and linked it to the tilt channel. I then send commands to this item. The Item gets updated but nothing happens in the binding. Trace/Debug logs show no activity in the Somfy binding. Other commands on the Thing work, just the Tilt doesn't seem to do anything. I tested this with multiple blinds, same result. |
OK, check this version and provide me with the trace log, if it returns 400 it must send some command, which the cloud does not support. |
Thanks, cleared the cache and tmp folders and installed this new version. Same result and no log entries during the Dimmer test. It's not making any requests to Somfy and the OH API returns a 400. I checked with tcpdump, there's really no request being made.
Response
|
Thanks, I thing I fixed it, now it should work :-) The channel was marked as read-only, sorry for your time spent. |
Sorry, still a 400 from OH API.
Is a negative value for Dimmer supported? |
On a side note, I wanted to test some things on the code myself but I when I compile the new binding with maven and deploy it I get this error when OH starts:
When I compile I have an extra file in the jar: /OSGI-INF/org.openhab.binding.somfytahoma.internal.discovery.SomfyTahomaItemDiscoveryService.xml When I remove this line from
Any idea whats going on here? |
Ok got it solved. I cherry picked your code to the 4.1.x branch, now the binding starts without errors. Looks like something changed in the meanwhile where your code does not account for yet. I then started testing and got the 400 REST API error solved. When I change We could change it to Number channel type, it support the negative number. Confirmed working. |
Yeah the compilation with the 4.1.1 branch is one way (but discovery is not working for the new thing), another one is to replace the SomfyTahomaItemDiscoveryService.java with the attached one and compiling with the -Dohc.version=4.1.1 parameter. |
So I will change it to Number - thank you very much for testing. |
Hi @octa22, have you committed the changes and is it ready to be released? |
Hi @octa22, could you please finish this? Thanks in advance. |
Hi @octa22, could you please finish this one to? |
The new Tahoma App is launched by Somfy. They have added tilt support for slats of RTS blinds. Could you please expose the tilt option in the binding.
The text was updated successfully, but these errors were encountered: