starkillerOG / motion-blinds

Python library for interfacing with Motion Blinds
MIT License
22 stars 9 forks source link

Unknown brel type 57 #39

Closed Pipsen94 closed 7 months ago

Pipsen94 commented 8 months ago

Hi.

I have this error.

Device with mac '4c75251360800001' has blind_type '57' that is not yet known, please submit an issue at https://github.com/starkillerOG/motion-blinds/issues

It´s a brel triangle bleated blind. Work and recognized ind the brel app.

But in HA is unknown This device has no entities

Can you help?

Many thanks.

starkillerOG commented 8 months ago

@Pipsen94 thanks for reporting this. I think it is this motor right?: https://www.brel-home.nl/en/pro/products/bi-directional-motors/641/bje24tr-0-634

How do you opperate this blind in the brel app? Do you only have up/down position control or do you also have tilt control with this motor?

starkillerOG commented 8 months ago

Eventhough the blindtype is not yet known, it should have gave the warning: "Blind type '%s' not yet supported, assuming RollerBlind" and added it as a rollerblind....

Do you see any additional warnings/errors?

Pipsen94 commented 8 months ago

@starkillerOG

Thank you very much for your time.

I'm pretty sure it's a correct motor that you've found.

Just reinstalled motion blinds integration and added API key from brel app again now.

I have attached some pictures from the brel app (so you can see what the control looks like) and the log from the HA. Also attached a picture from a working blind and a picture from the unknown.

I have two regular up/down roller blinds also from brel which it finds and has the functions (up/down - stop) immediately.

The other blinds that are with the motor you link to, it says unknown and have no options to control it in the integration.

Hope you can help :)

Best wishes.

PS:

Gateway is a brel DD-1554

home-assistant_2024-02-04T17-13-52.682Z.log HA motion blinds integration - Roller blind with controls HA motion blinds integration - unknown device HA motion blinds integration Brel app3 Brel app2 Brel app1

starkillerOG commented 8 months ago

@Pipsen94 thank you very much for the debug log, that is extremely helpfull!!!

This motor behaves like a TopDownBottomUp and is more complicated than the standard RollerBlinds. Since the type is unknown, a RollerBlind is assumed causing errors and the entities not to show up.

I can make it work, but first I will need to know exactly how this thing behaves. Apperently there are two motors in this thing. But are you allowed to change both motors independently? With a normal TopDownBottomUp that is the case.

But with this one I believe you first have to fully close the bottom motor before you are allowed to operate the top motor.... In your pictures I see 100, 30% or 100, 100%. Could you play a bit with the motor and see what combinations are possible? Is 0, 0% possible? 100, 0? 0, 100? 50, 50?

How do these percentages change when moving the motor from fully down to halfway straight piece up, to straight piece fully up, to halfway triangle piece up, to triangle piece fully up?

starkillerOG commented 8 months ago

Is it possible to close the straigt part while opening the triangle part?

Pipsen94 commented 8 months ago

@starkillerOG

No I can only control the bottom "straigt" part when the triangle part is fully closed and the other way around. I can only control the triangle part when the bottom part is fully closed.

So in the brel app - I can do:

0 % - 0 % the blinds are fully open. 50 % - 0 % the triangle part is half closed. 100 % - 0 % the triangle part is fully closed. 100 % - 50 % the triangle part is fully closed and the straigt part is half closed 100 % - 100 % all closed

starkillerOG commented 8 months ago

@Pipsen94 thank you for the info, that makes it a lot more insightfull for me.

I will do some additional coding to get this type of blind supported. Unfortunately it has a unique way of control. Therefore this requires quite a lot of new code, it can probably not be included in a patch release. Therefore it will be included at the earliest in HA 2023.3.0

I will make some code this week, maybe I will let you test it as a custom component.

If you appreciate the motion blinds integration and want to support its development, please consider sponsering this library.

Pipsen94 commented 8 months ago

@starkillerOG

thank you very much. If it becomes necessary, just write to me regarding possible testing. a donation will definitely happen for all your fantastic work.

starkillerOG commented 7 months ago

@Pipsen94 I did managed to get the update in HA 2024.2.0, so later today there should be a homeassistant update available that will include the Triangle blind type. It should be identified correctly then. The controls should also work, but of course I am not able to test, so please let me know if everything works once you updated to HA 2024.2.0.

Pipsen94 commented 7 months ago

@starkillerOG

Hi again :)

Thanks for the quick reply.

The curtain is now visible in integration and there are 3 rows of controls. I have attached a picture of it.

The first row controls the triangle part of the curtain and the second row the bottom part.

I don't quite sure about the third row of control does? When I push the arrow up, only the lower part of the curtain opens and stops when the bottom part is closed. When I push down, it goes down a little before going all the way back up.

I was wondering if it is possible to code it so that you can open/close the whole thing (both the triangle part and bottom part) with one push of a button?

Right now, in the brel app as well as the physical remote control, I can open and close from top to bottom and vice versa.

Thanks.

I have attached a picture of the blind when is fully closed and one with the bottom open. Also a small video showing what happens when I push down on the third row of controls

https://github.com/starkillerOG/motion-blinds/assets/155903969/ee0413ec-6daa-4f39-b742-66c823c51969

IMG_1505 IMG_1506 Test 1

starkillerOG commented 7 months ago

So first of all the naming is not correct apperently... It schould have added Bottom, Top and Combined to the names, I will check that. I will also adjust the way up/down are handeled.

Pipsen94 commented 7 months ago

@starkillerOG

thank you will test it again when you have a change to look at it.

starkillerOG commented 7 months ago

@Pipsen94 This PR will hopefully fix the control of the combined entity: https://github.com/home-assistant/core/pull/110970 The PR to fix the naming (Top, Bottom, Combined) has already been merged. Both PRs are tagged for the HA 2024.2.3 patch release, so you should be able to test in a few days.

Pipsen94 commented 7 months ago

@starkillerOG

Just updated but now I have no controls available at all.

same problem on all blinds.

i have tried to reinstall also.

starkillerOG commented 7 months ago

@Pipsen94 I know, see PR https://github.com/home-assistant/core/pull/110871 The solution is merged, but at the last moment there was a conflict in getting it into HA 2024.2.3. Unfortunetely this means you will have to wait for HA 2024.3.0 release that will fix this.

I am sorry.

starkillerOG commented 7 months ago

In the meantime you could downgrade to HA 2024.2.1, that should work for now (withouth the proper fixes for the triangle blind).

starkillerOG commented 6 months ago

@Pipsen94 have you already tried with HA 2023.3.0?