Hey guys,
I’ve been reading this forums and all the projects and I’m amazed, thus I installed HA onto RPI and already managed to get two buttons for controlling one blind, one up and one for down. I’m using RPI GPIO with Relay board. Two relays for each blind, one relay for each direction.
But, while searching for tutorials and instructions, I’ve found a button on a yt video, that I would like to abuse. Since I cant find link image button, please check this video at this time: https://youtu.be/E99-17XyyUg?t=354, there is a button for Garage door at the top.
But, I know this guys has garage door connected to some reed sensors, which I dont have installed on blinds, thus I would need to control blinds by the time it takes them to go up and down.
To get into details:
Lets says blind1 is totally opened (up position). When I press button down, it should go down for x seconds and then stop (write 1 to GPIO16, write 0 to GPIO19). In other words: AH should trigger relay on RPI GPIO for x seconds and then stop it. So, blind is now at bottom position after x seconds.
This DOWN button should now be disabled (UP button should be disabled while DOWN is active) and only UP button should be enabled. Same happens with pressing UP button. AH triggers relay on GPIO for x seconds and then stops it.
Button stop (rectangle) should just write 0 to both relay controlling up and down movement.
But I’m lost tho I can spam 2 buttons for each blind, one is up and one is down movement, but thats not optimal, also dangerous, since if I trigger both relays on one blind, its not really good for AC motor
How to manage this?