Controlling dumb wired exterior blinds with tilt

Hi, I am going to have motorised wired exterior blinds with tilt installed on our new house.
The motor is Somfy WT, unfortunatelly it’s the wired version, with no RF/IR connection. So basically it is wired to a rocker switch with 3 connections: Neutral, Live - up, Live - down.
Basically if you press and hold up, it first tilts to open and then starts to pull them up, if you press and hold down, it first tilts to closed position and then moves down.

They sell an RF module, which only works with their remotes, but it is crazy expensive, so I thought I could make my controller using Wemos D1 mini and two relays to supply the line for up/down.

I would like to be able to independently control tilt and up/down in HA. I studied their remote module and it works by calibrating the time it takes to open/close the tilt.

So lets say, it takes 2s to open/close the blinds, it knows if it previously went down, the blinds will be closed, so if 2s of UP command is supplied, the blinds will open and vice versa. If 1s of UP command is supplied, it will be half open. It would have to remember the state of the tilt based on the interval it already used, so if I send the close command, it would know to only supply additional 1s close command.
I guess this could be simplified by instead of remembering the tilt state, it would basically first send the 2s UP command so it knew for sure that the tilt is open, and then supply the down command for the specified range 1-5 (0-2s mapped), only in case it’s already open it would move the blind up slightly.

My question is if something like this would be achievable with ESPHome for example, or some other firmware for ESP? So I could set up MQTT Cover in HA, having position and tilt control, where I would specify tilt on range 1-5, and the firmware would know the previous state and timing to correctly tilt the blinds?

I don’t know if my explanation makes any sense, but I wanted to ask if there is some ready made solution or if I have to write my own code for it and perhaps if anyone could find this useful for their blinds so I could share the code.

There are zwave actors that do that if you’re interested to go in that direction. Check out the fibaro roller shutter. It can be configured so that it can control tilt Level as well as up/down.

1 Like

Thank you jo-me. I didn’t know about this roller shutter, but it seems to do exactly what I need, only problem is that is uses Z-wave, since I don’t have any other Z-wave device and don’t have USB stick for it, it would be rather expensive to buy it for just this one purpose. I searched for some Zigbee alternative, but couldn’t find any, so I guess I will try to write my own ESP code for the D1 mini with relays, with basically the same funcionality and if that won’t work I will go for this FIbaro.

Sorry to revive such an old thread, but I was curious what solution you chose after all. I’m trying to connect Shelly 2.5 with Somfy WT but failing badly. Shelly somehow resets the motor and it now goes down for a few cms and then stops. Removing Shelly and redoing the wiring in the switch didn’t get it back to the normal working state. It just stayed “broken” :smiley: