Strange question , can i control one switch to an other ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
thehay95
Posts: 1
Joined: Saturday 06 October 2018 7:41
Target OS: Windows
Domoticz version:
Contact:

Strange question , can i control one switch to an other ?

Post by thehay95 »

Hi, i've searched but not found it , so here's the (strange) question
Can i control one switch to activate another, for example.
I've got an automated sunscreen witch i close with an push button on my domoticz system.
I would like when this happens , this push of a button activate another (virtual) button that gives me the state of my sunscreen when i'm away.
Later i'm thinking of using this state for a script wich would say if the rain is > then 1mm and the state of my suncreen is closed , then reopen my suncreen.
Seems simple but it isn't .... ;)
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Strange question , can i control one switch to an other ?

Post by waaren »

thehay95 wrote: Saturday 06 October 2018 7:42 ..Can i control one switch to activate another, for example.
I've got an automated sunscreen witch i close with an push button on my domoticz system.
I would like when this happens , this push of a button activate another (virtual) button that gives me the state of my sunscreen when i'm away.
Later i'm thinking of using this state for a script which would say if the rain is > then 1mm and the state of my sunscreen is closed , then reopen my sunscreen.
Seems simple but it isn't .... ;)
Short answer: You can control virtual switches by pushing the button (and by various other events).

To be able to give an idea on how to approach this, I have some more questions.
- is the sunscreen itself also defined in domoticz ? If so you could just read the state of the sunscreen.
- do you use the pushbutton also to open the sunscreen ?
- can the sunscreen also controlled from outside domoticz ?
- try to describe the situation and what you intend as complete as possible.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest