Logic lock

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
User avatar
emme
Posts: 909
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Milano, Italy
Contact:

Logic lock

Post by emme »

Hi...

Is it possible to add a logic lock to some switches?

I'll try to explain better my intention:
I have all my blinds connected, and have a scenario (named SCN_living) that open or close them based on temp, lux and movement.

In case it rains I have a device blocky script (name: WTF_ItRains) that close all blinds, BUT I'm supposed to stop all other blinds interaction until rain quits, otherwise the SCN_living will still try to adjust them.

Instead of add a condition for the switch RAIN in the SCN_living scenario, I would like to add a switchlock to the WTF_ItRains.
The intention is simple: in case of future expansions and installations, you would need to modify ALL script in order to consider new devices and variables.

Actually I have a boolean userVariable named BlindsLock set to 0 or 1 and evaluate it in the SCN_Living as first condition, but I would consdier a system lock would be much better and accurate (you do not need to remeber to evaluate variables :P )

ciao
M

P.S.
of course the phisical interaction in Zwave device cannot be intercepted.. unless there is a way to change the device configuration to exclude keys from a script :P
The most dangerous phrase in any language is:
"We always done this way"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest