Home Assistant Blinds Control Custom Integration

Home Assistant Blinds Control Integration

GitHub Repository: BUT_blinds_time_control

Upgrade your Home Assistant with this custom blinds control integration. Effortlessly manage your time-based blinds, syncing with your chosen entities for raising and lowering. Plus, it remembers your settings after restarts and supports tilting.

How to Install

You can add this integration through HACS (Home Assistant Community Store) as a custom repository, or simply copy all files from the custom_components/blinds_controller directory into your Home Assistant’s /custom_components/blinds_controller/ directory.

Then, just give Home Assistant a quick restart, and you’re good to go.

Setting Things Up

Head over to Settings → Devices and Services → Click on Add Integration (select Blinds Control) to integrate your blinds into the system.

Name your blinds, select the controlling entities, specify roll-up and roll-down times in seconds, and if you need it, set tilt times (or leave them at 0 if you don’t want to tilt support).

You can also tweak existing configurations to suit your preferences (just reload the edited entries).

Automations

During the setup process, you have the option to configure various automated tasks. These features are currently in an EXPERIMENTAL phase and are being developed as part of my bachelor’s thesis, so please refrain from extensive experimentation with this automation.

Examples include scheduling specific times for actions such as raising or lowering blinds, automating the opening and closing of blinds based on sunrise and sunset times, or automatically lowering blinds when a particular entity is activated during the night. Additionally, there are weather protection measures available, such as responding to strong winds using the WMO Code and utilizing the Open Meteo API or perhaps you would like to use Netatmo, that also works. For those utilizing interlock relays, there’s the possibility of triggering a stop command at the end of travel.

Acknowledgment

Work was based on and inspired by this insightful community post

Hi Matthew,

This seems a very usefull imtegration. Thanks for sharing this with us. Since this is a new integration i ahve some ‘blond’ queastion. Really appriciate if you could help me!

  1. is your solution ready to control sunshade?
    How can I control a sunshade where I can determine how far the sunshade is closed or open based on ‘open’ or ‘close’ time? Does you integration support this?

I have a sunshade which I can control with an RFLINK for OPEN, STOP or CLOSE. I control the RFLINK via MQTT (so with 3 separate commands). This works well, but I would like to give a command: open sunshade for 20% or open it for 100%
My awning has no support to return how much % the screen is open.

  1. How can I integrate MQTT commands in your solution?

To control my sunshade I have to send a command to RFLINK thru MQTT, the commands are staded below. How can I integrate these commands in your solution?

10;BrelMotor;5b0572;D1;UP;
10;BrelMotor;5b0572;D1;STOP;
10;BrelMotor;5b0572;D1;DOWN;

  1. I have installed the HACS files + integration
 but the descriptions are missing

I have installed everything according your instruction, the labels descriptions are missing
 what do I wrong?


Hi konehead,

Thank you for your feedback. Let me address your points:

  1. Absolutely, the integration can manage sunshades. However, if you prefer not to utilize this feature, you can simply set the tilt times to 0 during configuration.

  2. This might be a problem that I did not anticipate. My setup works with Sonoff switches connected to Home Assistant via ESPHome. While I indeed utilize three commands, I only have two buttons. However, I believe I could address this by adding a third option for a STOP button. (Feel free to open an issue on GitHub so i dont forget).

  3. I suggest clearing your cache and reloading the page to see if that resolves the issue. Hopefully, this will fix the problem.

I hope that this will answer your questions. I apologize if I didn’t fully understand everything, as English is not my first language.

Nice!

Regarding point 2: thanks, will do
Regarding point 3: I have cleared the cach, and have checked on other device. I still don’t see the labels :frowning: Please see below my files


Hi,

That’s odd. Well, I had this issue at the beginning, but clearing the cache did the trick for me. However, I found this post, but that also doesn’t seem to be the case because the domain and directory name are the same (blinds_controller).

The files look good, and I just redownloaded the whole project to double-check if something is wrong, but I can’t replicate this issue. As shown in the picture below, it works.

But there is one more thing we can check: if you can access the logs (home-assistant.log). Perhaps we can find more information there.

Thanks for your reply. I deleted the whole integration, deleted cach and the problem is still there. I have only to upload the files in the ‘blinds_controller’ directory, Am i right?

No errors in home-assistant.log :frowning:

Well yes, that should work.

I just tested it by copying the files into custom_components, and it works. I also tried downloading it again via HACS, and it worked without any issues as well.

It’s really strange that it’s not working properly. I can’t think of anything else that could be causing it. Could you try editing anything else in Devices and Services to see if the problem persists there?

I found it! BEcause you mentioned installing via HACS


Please see the main directory, made an issuein the name: controler in stead of controller! Now it works fine. Thanks for your support.

Will submit tomorrow the STOP request

1 Like