Search found 81 matches

by Slinkos
Wednesday 08 November 2017 14:14
Forum: Blockly
Topic: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
Replies: 7
Views: 2277

Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs

I just thought of another way, Like this:
by Slinkos
Wednesday 08 November 2017 14:10
Forum: Blockly
Topic: 'Turn off' after >60 seconds fails to work, but works <= 60 secs
Replies: 7
Views: 2277

Re: 'Turn off' after >60 seconds fails to work, but works <= 60 secs

What's going on...is a max number of seconds a known limitation of this command? bathroom fan timer.PNG Hi all, I only want to trick some led for 5 seconds. My if do for block is only showing minutes instead of seconds. Where to find the shown block or is it possible to adjust? Kind regards matty ...
by Slinkos
Tuesday 31 October 2017 12:06
Forum: Blockly
Topic: Blocky timer automatic off after xx minutes
Replies: 7
Views: 6285

Re: Blocky timer automatic off after xx minutes

I get your point. This is how I would do it in basic: If: Motion = 'On' Set: Light = 'On' Elseif: Motion = Of AND Light = 'On' Set: Light = 'Off' AFTER 60 seconds The big drawback of this blocky is that it wil turn your lights 'Off' after 60 seconds either way, also if there is motion detected in ...
by Slinkos
Tuesday 31 October 2017 9:35
Forum: Blockly
Topic: Blocky timer automatic off after xx minutes
Replies: 7
Views: 6285

Re: Blocky timer automatic off after xx minutes

What kind of motion sensor do you have? Because most of them have a parameter to determine after how many seconds after the motion, the motion sensor switches to off. That might also solve your problem. Then you can just turn off the light when the motion switch goes to off.
by Slinkos
Tuesday 31 October 2017 9:31
Forum: Blockly
Topic: Door open blockly troubles
Replies: 10
Views: 3685

Re: Door open blockly troubles

Code: Select all

commandArray['SendNotification']='Door is open#Door is open for more than 10 seconds!'
should be doing the same as the send notification in yout blocky.

Code: Select all

print("Door is open")
should appear in your domoticz log, do you see that one?
by Slinkos
Thursday 26 October 2017 1:56
Forum: Blockly
Topic: Blocky Virtual Text input
Replies: 4
Views: 1647

Re: Blocky Virtual Text input

So i did some testing myself with virtual text sensor. Blocky doesn't seem to be triggered by a new svalue, but it can be achieved in LUA. Use the following script: commandArray = {} if (devicechanged['Versterker input']) then if (otherdevices_svalues['Versterker input'] == 'Radio') then ...
by Slinkos
Thursday 26 October 2017 1:24
Forum: Blockly
Topic: Blocky Virtual Text input
Replies: 4
Views: 1647

Re: Blocky Virtual Text input

Actually I did not look at it good enough. It's not a switch but text utilty as you say in your subject. Maybe we can think of another way to achieve what you want? Do you really need this kind of switch? Maybe you can fill a variable, or use a selector switch or whatever. It all depends on your goal.
by Slinkos
Tuesday 24 October 2017 23:17
Forum: Blockly
Topic: Door open blockly troubles
Replies: 10
Views: 3685

Re: Door open blockly troubles

Actually, I used your "Door open switch" in my example. But you no longer need to use that switch off course. You should just change that to the name of your door sensor. And maybe replace 'On' with 'Open'.
by Slinkos
Tuesday 24 October 2017 23:15
Forum: Blockly
Topic: Door open blockly troubles
Replies: 10
Views: 3685

Re: Door open blockly troubles

Yes, with the GarageDoor example as freijn says. So in your case it would look like this: -- script_time_dooropen.lua t1 = os.time() s = otherdevices_lastupdate['Door open switch'] -- returns a date time like 2013-07-11 17:23:12 year = string.sub(s, 1, 4) month = string.sub(s, 6, 7) day = string.sub ...
by Slinkos
Tuesday 24 October 2017 13:17
Forum: Blockly
Topic: Blocky Virtual Text input
Replies: 4
Views: 1647

Re: Blocky Virtual Text input

That's because "Radio" is not the state of your switch. It's more something like a property. It's hard for me to give a solution for this right away, but maybe you can get some more info if you look at the properties using /json.htm?type=devices&rid=IDX Maybe you can add a json command to your ...
by Slinkos
Tuesday 24 October 2017 11:32
Forum: Blockly
Topic: Issue with Time in Blockly after midnight
Replies: 5
Views: 1913

Re: Issue with Time in Blockly after midnight

Hi, I would suggest that you create a Dummy switch, named "midnight" and then configure a timer on it.
After that you just make a blocky (If 'Contact kast links' = 'On' and 'Midnight' = 'On') then: ....
by Slinkos
Tuesday 24 October 2017 11:18
Forum: Blockly
Topic: Door open blockly troubles
Replies: 10
Views: 3685

Re: Door open blockly troubles

Still this will not work, because the door open switch will be set to 'On' after 10 seconds anyway, even if you close the door before the 10 seconds have passed. Instead you should use a time script.
by Slinkos
Saturday 21 October 2017 17:15
Forum: LUA
Topic: LUA script for logging
Replies: 6
Views: 1511

Re: LUA script for logging

But not the way I want it. If you don't know the answer that's fine. Then I hope someone else can reply.
by Slinkos
Friday 20 October 2017 11:01
Forum: LUA
Topic: LUA script for logging
Replies: 6
Views: 1511

Re: LUA script for logging

Please just answer my question, this is not helping me. Logging it may help me finding out what causes it.
by Slinkos
Thursday 19 October 2017 22:19
Forum: LUA
Topic: LUA script for logging
Replies: 6
Views: 1511

Re: LUA script for logging

Well, I have
by Slinkos
Wednesday 18 October 2017 18:45
Forum: LUA
Topic: LUA script for logging
Replies: 6
Views: 1511

LUA script for logging

Hi all, I have bought a PIR (Motion Sensor) and I want to monitor if it has false positives. So I was thinking to create a lua script that makes a separate log file somewhere, whenever my PIR is on and I am not home. It doesn't have to be readable within Domoticz, I'm fine with setting up a SSH ...
by Slinkos
Sunday 15 October 2017 0:26
Forum: Other questions and discussions
Topic: Trigger HASS from Domoticz event
Replies: 3
Views: 855

Re: Trigger HASS from Domoticz event

For now I got it working with making a .sh script in the home/pi/domoticz/scripts folder. In that script I just used the musquitto_pub line.
After that I run the script with the start script option in the Blockys.

But if anyone has other or better suggestions, I would love to hear them.
by Slinkos
Saturday 14 October 2017 23:45
Forum: Other questions and discussions
Topic: Trigger HASS from Domoticz event
Replies: 3
Views: 855

Re: Trigger HASS from Domoticz event

I got a lot further with this. I installed a MQTT broker on my Raspberry that is running Domoticz and with misquitto_pub I am able to trigger scripts in HASS. It looks like this: mosquitto_pub -h localhost -p 1883 -t living_room/media/onkyo -m "on" Now I want this automatically to happen within a ...
by Slinkos
Saturday 07 October 2017 1:00
Forum: Blockly
Topic: Event not triggered by variable set by other event
Replies: 2
Views: 1033

Event not triggered by variable set by other event

Hi all, I'm having a weird issue and I hope I can explain it properly. So I made a User Variable called "Save State". It's a interger variable. In my blocky's I made it so, that "Save State" can either have value 0, 1 or 2. The problem is, when I set the variable to one of those values, for example ...