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.