help operating the socket

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Jojik1
Posts: 16
Joined: Monday 06 January 2020 23:57
Target OS: -
Domoticz version:
Contact:

help operating the socket

Post by Jojik1 »

Good day,
in case you can ask for help, i don't know english only with translator, i need to write this task. It won't work in Blockly:

1. switch, open - closed
2. button, click - double click
3. socket, on - off
these are two conditions:

IF switch OPEN so if button CLICK so socket ON.

IF switch CLOSED so if button CLICK so socket 1 minute ON then OFF if 1 hour switch OPEN so socket 2 hour ON then OFF

if you can't understand it, don't be angry for your time, thank you for reading.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: help operating the socket

Post by waaren »

Jojik1 wrote: Sunday 31 May 2020 21:11 IF switch CLOSED so if button CLICK so socket 1 minute ON then OFF if 1 hour switch OPEN so socket 2 hour ON then OFF
Sorry but I don't understand. Maybe if you show a screenprint of your Blockly it becomes clear?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Jojik1
Posts: 16
Joined: Monday 06 January 2020 23:57
Target OS: -
Domoticz version:
Contact:

Re: help operating the socket

Post by Jojik1 »

in Blockly I can't write
Jojik1
Posts: 16
Joined: Monday 06 January 2020 23:57
Target OS: -
Domoticz version:
Contact:

Re: help operating the socket

Post by Jojik1 »

OK gradually

Switch = open OR button = click
!ALIKE!
Switch = open AND button = click
always socket ON

I ask
Switch = open !and! button = click ---- socket ON
Switch = open and button = nothing ---- socket nothing
switch = closed and button = nothing ---- socket nothing
Attachments
dom.png
dom.png (12.17 KiB) Viewed 289 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests