Page 1 of 1

adding blinds controlled via relays

Posted: Wednesday 29 August 2018 19:17
by Adso76
I want to control blinds using two relays. I know how to do this using two separate switches in domoticz, however I'd like to use icon designed for blinds

Image

I don't know how to do this.

Re: adding blinds controlled via relays

Posted: Wednesday 29 August 2018 23:17
by StanHD
For my Velux windows I also use 2 relays, so this may give you some ideas for your blinds.

To start with I made 2 virtual dummy Domoticz Push-Buttons to operate the relays:-

Image

They are defined with scripts to address relays 7 and 8 on an ETH008 Board (This will be different according to your chosen hardware):-

Image

The "Off Delay" is because the relays are providing a "Pulse" and this will return the relay to "Off" after 5 seconds.

I then made this virtual or dummy switch:-

Image

This triggers my relays with this Blockly:-

Image

Note:- I found that "On" and "Off" worked when I created this, but it was a long time ago so with improvements to Domoticz, the "Open" and "Close" options may work just as well.

So that's the basics that I use. You can then go on to automate using further scripting. Here is an example of how I automated my windows. This has developed over the last 3 - 4 years but works really well. (I realise that there are probably far more elegant ways of achieving all of the above and below, however, this all just works for me) ;)

Image

So in Floor Plan I have a timer that sets nominal operating times, the blinds switch, a set-point for opening temp, a position indicator, and most importantly an auto switch that I have on each and every Blockly for when it all goes "pear shaped" :D (Or I just want manual control)

Image

Hope this may help you a bit,
Domoticz is awesome. :)

Re: adding blinds controlled via relays

Posted: Thursday 30 August 2018 16:56
by Adso76
Thanks! I made it.
Now how do I hide those dummy witches? When I click "switches" I want there only this switch for blinds.

Re: adding blinds controlled via relays

Posted: Thursday 30 August 2018 17:15
by StanHD
Add them to "$Hidden Devices" Room Plan

Re: adding blinds controlled via relays

Posted: Thursday 30 August 2018 17:24
by Adso76
Thanks, in the meantime I found other solution by adding "$" as the first character in the name.