Closed jrstaal closed 3 months ago
@jrstaal I indeed did not add the option to go to the favorite possition (to HomeAssistant).
This because in HomeAssistant you can set the rollerblind to a specific position % using the service: cover.set_cover_position
.
Therefore it is really easy to make a button in the frontend or as part of a automation or script to set the blind to a specific (favorite) position.
Therefore I thougth it would not be nessesary to add the favorite position.
If you would really like to have it, I can add a button for it if you like, but at the earliest it could be included in HA 2023.2.0. Just let me know.
If you appreciate the motion_blinds integration and want to support its development, please consider sponsering.
I would really like to have the favorite position button in home assistant, if you could do that. That would be awesome!
Reason is, I have duo rollerblinds and the favorite position is way more specific than the percentages. With duo rollerblinds it needs to be specific or else I don’t have the proper see trough.
I’m definitely making a donation!
Thanks!
@jrstaal I think you can use a combination of position and tilt to get a more accurate postioning of the duo rollerblinds.
Thank you very much for your generous donation.
I have been looking into the possibility of the favorite postion, but to my surprise there is no such command in the API to move the blind to its favorite position. Even more surprising to me is that the Brel apps favorite postion is actually just a postion saved in the app, so moving to the "favorire" position in the app moves to a diffrent "favorite" position than using the remote control to move to the favorite postion stored in the blind itself.
I have contacted the manufacturer and he is looking into this and asking around if there is some hidden API command to move the blind to its favorite position.
So I am very sorry, but at this point it seems impossible to add the favorite position button to Home Assistant.
I will close this issue now, but if I hear back from the manufacturer that there is a API command, I will re-open and implement the command.
Did you found out if there is a API function for the favorite function? There is definitely a difference in setting a percentage and the favorite position, and the hub uses the favorite position stored in the motor. Because I never set a favorite position with the hub, only with the remote and I can call the favorite position in the app and still knows where to go. I found out today that I hate the brel app but I need that favorite position function so bad! With the old motors when pressing stop 3 times (using blocky in domoticz) I could use it but this does not work for me with my new motors. Can you please take a look?
@jrstaal I had a look, but could not find any API commond to go to a preset favorite position, even tried to guess some commands, but no luck.
@starkillerOG I Found some new information. I used the Brel app on my MacBook with some tools Wireshark, Postman en Requestly. Found some interesting stuff. Looks like the brel app uses "https://connectoreu.shadeconnector.com/" as backend. Looks like the app uses json to send requests to the backend en receives json back. With that in mind I searched for information about shade connector. They use the same bridges, so I digged some deeper in the bridge documentation. Finally found something about my favourite function. Looks likes it is called "3rd position".
Please have a look at this document: https://www.autoblinds.co.nz/files/Connector_Bridge_RS485_Interface.pdf There is a lot of information about sending requests to the bridge. I looked at the Motionblinds code but I do not understand how exactly the api to the bridge works. Maybe this document can help you? There is also a zip file: https://www.autoblinds.co.nz/files/3rd_Party_Integration_for_Connector_Bridge_20230729.zip It contains a lot of files with documentation about the api calls (CRESTRON-Dooya-1.0.0.pdf).
Also, in the JSON post from the app, function number 12 is used to call the "3rd position" Where 0, 1, 2 are down, stop up. This was also traceable to the Chinese documentation of shade connector: https://github.com/ShadeConnector/IOSDocument/blob/master/DataPoint/DataPoint_CN.md Here the translation: https://github-com.translate.goog/ShadeConnector/IOSDocument/blob/master/DataPoint/DataPoint_CN.md?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=nl&_x_tr_pto=wapp 12 points to: Run the third travel point
I hope you can do something with this information? Or maybe you can explain what you exactly need? Maybe I can try to alter the code and play around in my own HA.
@jrstaal I tested the operation 12 and indeed it moves the blind to the favorite postion. That was the info I needed, I will implement a button entity in HomeAssistant to move the blind to its favorite position. May take a bit of time, but I expect it to be ready in the HA 2024.9 release in a month.
Thanks for the detailed info and figuring this out!
WAUW YEAH I'm so happy now! Thank you! Looking forward to it.
See the HomeAssistant PR here: https://github.com/home-assistant/core/pull/123489
@jrstaal the HomeAssistant PR has been merged, so I can confirm the button entities for the favorite position will be included in the upcomming HomeAssistant release HA 2024.9.0 which is schedualed for september 4th.
Hope you enjoy them. Let me know if you have any issues with the new entities.
Hi,
Sorry if this is not the right way to do this. I use the motion-blinds intergration in Home-Assistant in combination with my Brel hub and rollerblinds. In the brel application on my phone I can sent the command "favorite possition" and the blinds wil go to the present position. Just like a long press on the stop button on the remote does. I don't see this function in this intergration. Is it possible to get this function? Or somehow sent the "favorite position" command?
Thanks in advance.