# \[APP\]\[Pro\] Virtual Blinds – turn two relays into one positioned blind, window, awning or gate

**URL:** <https://community.homey.app/t/app-pro-virtual-blinds-turn-two-relays-into-one-positioned-blind-window-awning-or-gate/163081>\
**Category:** Apps\
**Created:** [December 4, 2026, 6:05pm UTC](https://community.homey.app/t/app-pro-virtual-blinds-turn-two-relays-into-one-positioned-blind-window-awning-or-gate/163081 "2026-12-04T18:05:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guglez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/guglez/32/97989_2.png) [@guglez](https://community.homey.app/u/guglez)\
**Post date:** [December 4, 2026, 6:05pm UTC](https://community.homey.app/t/app-pro-virtual-blinds-turn-two-relays-into-one-positioned-blind-window-awning-or-gate/163081/1 "2026-12-04T18:05:53Z")

</div>

Hi everyone!

I finally published my first Homey app called **Virtual Blinds**.

> **[Virtual Blinds | Homey](https://homey.app/en-us/app/com.virtualblinds/)**
>
> Combine two relays into one virtual controller

**Why I made it**

I have motorized windows and roller shutters at home controlled by Heltun touch panels. Each motor is connected to two relays, one for each direction.

The problem is that in Homey I have two separate switches instead of a window device. I can open and close a window, but I can’t simply tell Homey to open it to 30%, for example.

I was waiting for Heltun to implement something like this for quite a long time. At some point I decided to do it myself. I also made it independent of Heltun, because I guess people with other relay modules have the same problem.

The idea is quite simple. You select two existing relay outputs in Homey and the app creates a virtual window covering device with Open, Close, Stop and a position slider.

It should work with Heltun, MCOHome and pretty much any Z-Wave, Zigbee or Wi-Fi relay that Homey can control using `onoff` or `dim`.

It doesn’t have to be a window or a roller shutter either. It could be a curtain, an awning, a projector screen or anything else that uses two relays in the same way. The motor just needs to stop when the relay is switched off.

If your relay module already supports position control natively in Homey, you probably don’t need this app.

**How it works**

There is no physical position sensor. The app calculates the position based on how long the motor has been running. You need to measure the full opening and closing times once during setup.

A few things the app supports:

- Open, close, stop and set a specific position.

- Different travel times for opening and closing.

- Position tracking when you use physical wall buttons, not just Homey.

- Automatic calibration when the window is fully opened or closed.

- Both interlocked and independent relays.

- Control via HomeKit, Google Home and Alexa through Homey.

The app also has Flow cards to check the current position, check if the window is moving, trigger flows when the position changes and control or calibrate the window.

**What happens when something goes wrong?**

The basic functionality was probably the easiest part to implement. Making it work reliably was a different story.

Anyone with a reasonably large smart home probably knows that sometimes a Z-Wave or Zigbee command just doesn’t arrive, or a device doesn’t report its state back to Homey.

I’ve been testing the app on my own windows for about six months. A lot of development time went into handling situations like these:

- If a relay doesn’t confirm that it has switched off, the app retries the command. If it still can’t confirm it, the virtual device becomes unavailable and shows an error. You can clear it with a manual Stop.

- There is an optional automatic recovery mode. The app can fully open or close the window to calibrate it and then move it back to the requested position. The number of recovery attempts is limited.

- If Homey or the app restarts while a window is moving, the app tries to switch the relays off on startup.

- If someone presses a physical button while the app is moving the window, the app follows the physical button and recalculates the position.

- If Homey misses an OFF report, there is a watchdog that tries to stop the motor after the maximum travel time.

- Delayed and duplicate reports are handled as well.

- When changing direction, the app switches off the opposite relay first and waits a bit before switching direction.

Most of the timings and recovery options can be configured individually for each window.

I also added remote logging via UDP syslog. I use Elastic at home and find it much easier to investigate problems when I have a history of what happened. If you have your own syslog server, you can enable this in the app settings.

**Setup**

1. Add a new Virtual Blinds device in Homey.

2. Select your UP and DOWN relay outputs.

3. Enter the full opening and closing times in seconds.

4. Select whether your relays are interlocked or independent.

5. Fully close the window and confirm.

That’s pretty much it.

Keep in mind that the position is calculated, not measured. It can drift a bit over time, but every full opening or closing recalibrates it.

Also, if you use it with something like a garage door or a gate, the app is not a replacement for the safety features of your motor.

**Feedback**

The current version is 0.3.2 and this is the first public release. I’m currently using the app on 7 windows at home.

So far I’ve mostly tested it with my own hardware, and I’m quite interested to see how it behaves with other relay modules.

If you try it, please let me know what hardware you use and if everything works as expected.

If you find a bug, please include the app version, relay model and a description of what happened. If you have remote logging enabled, the relevant logs would be very helpful.

Suggestions are welcome too.

Hopefully someone else finds this app useful 🙂
