Page 14 of 36
Re: Blockly examples
Posted: Wednesday 03 February 2016 22:14
by mKotek
Martijn85 wrote:Hello everybody,
Maybe someone can help me out with this small issue. These are my blocks:
2016_02_03_21_31_54_Domoticz.png
This works but when one phone is off and one phone is on the switch Iemand Thuis (Someone Home) is switching every second from on to off. When the second phone is coming online the switch keeps on like ik should. Why, when one phone is off, the switch is switching from on to off?
As far as I can see, in the second part, you should have AND instead of OR between the phones. As it is now, just one phone fulfils the condition and swithc is set to OFF. Next, it detects one phone and sets it to ON again.
Re: Blockly examples
Posted: Wednesday 03 February 2016 22:21
by Martijn85
Thanks for the fast reply mKotek, it seems that did the trick! Thank you
Re: SCRIPS - EVENT MANAGEMENT SAMPLE
Posted: Sunday 07 February 2016 17:40
by Evelen
Jochen wrote:Turn on a Light when open a door
This example will turn on a light when
1. A door is opening
2. It is between 22:00 and 07:00
A notification will be send everytime the is opening (00:00 - 24:00)
dooropenlighton.PNG
PS: The device
Garagentor is the door (Garagentor = Garagedoor), the light is light is
Licht Garage (Light Garage)
how to set a if-do inside a if-do?
Re: Blockly examples
Posted: Monday 22 February 2016 22:31
by Yoshiii
rtulp wrote:elmortero wrote:I don't know about curtains but with blinds you use Off for open and On for closed
Thanks! That makes sense!
Does the script work now? I cannot get my blinds to work...
Re: Blockly examples
Posted: Tuesday 23 February 2016 13:57
by brianprak
Whats wrong with the following blockly i get an error 'then' expected near 'comparevariable'
Re: Blockly examples
Posted: Tuesday 23 February 2016 14:55
by StanHD
Hi, I think the problem is in the Else if section where the "On & "Or" are incorrectly arranged. Try right clicking all of the "And" "Or" blocks and setting them as "External Inputs" It might be easier to see the logic then.
Re: RE: Re: Blockly examples
Posted: Tuesday 23 February 2016 22:00
by djgodlike
brianprak wrote:Whats wrong with the following blockly i get an error 'then' expected near 'comparevariable'
Compare with this picture very precisely!
- uploadfromtaptalk1456261191844.png (25.96 KiB) Viewed 4406 times
Re: Blockly examples
Posted: Saturday 05 March 2016 11:21
by marktn
Hello,
I have made my first blocky event.
Is it possible to test this, without waiting till the sunn is under? (simultion of a day)
The script is sending nog from 23:00 till 00:00 email, a lot of emails!! I just want one email that i am not at home. How to do this?
- Afwezig.png (24.67 KiB) Viewed 4350 times
Thanks for reading,
Mark
Re: Blockly examples
Posted: Sunday 06 March 2016 16:13
by sweup
Hi
I have build a Blockly with a manual switch to toggle alarm on/off.
Unfortunately my alarm not working, when I set my alarm "on", the alarm goes off - I want to set blockly to "when alarm is on and sensor 1 register motion, I will be notified and siren should beep". What I have done wrong?
Im using Aeon labs sensor+Razberry
Re: Blockly examples
Posted: Friday 25 March 2016 11:41
by JayKudo
So I am trying to create a group dimmer and want to use blocky for it.
How can I detect a change in a (virtual) dimmer switch. So if the virtual switch changes value, than I want to set two real dimmers to that value.
Do I need to create a user var and save the current value and than compare the value with the virtual dimmer, or is there an easier method (or should I use blocky at all for this)?
Re: Blockly examples
Posted: Saturday 14 May 2016 22:59
by assenzuid
I have created below blockly, but unfortunately it's not working.
- Capture.JPG (32.38 KiB) Viewed 4004 times
Re: Blockly examples
Posted: Saturday 14 May 2016 23:07
by assenzuid
assenzuid wrote:I have created below blockly, but unfortunately it's not working.
Capture.JPG
Solved by using.
- Capture.JPG (10.27 KiB) Viewed 4003 times
Re: Blockly examples
Posted: Sunday 05 June 2016 20:42
by micbou
so what am I doing wrong here? this feels so straight forward but it doesn't work
- snip_20160605203940.png (16.06 KiB) Viewed 3693 times
Re: Blockly examples
Posted: Sunday 05 June 2016 20:54
by hjvingen
micbou wrote:so what am I doing wrong here? this feels so straight forward but it doesn't work
snip_20160605203940.png
Please try again with setting the group to "on" instead of "active",
this works for me.
Re: Blockly examples
Posted: Sunday 05 June 2016 21:00
by micbou
Unfortunatly not working neither. Time doesn't seem to work in any scenario and Domoticz does show the correct time.
Re: Blockly examples
Posted: Sunday 05 June 2016 21:07
by hjvingen
micbou wrote:Unfortunatly not working neither. Time doesn't seem to work in any scenario and Domoticz does show the correct time.
Do you get something in the log, like this?
- Schermafbeelding 2016-06-05 om 21.04.28.png (12.12 KiB) Viewed 3686 times
Do other events (not time related) work?
Re: Blockly examples
Posted: Sunday 05 June 2016 21:29
by micbou
No, the log shows no activity from the event.
Only events that seem to work are those activating a device after a device has been activated (for example 'turn on left light when the right light is on)
Re: Blockly examples
Posted: Sunday 05 June 2016 21:38
by hjvingen
That's strange, because the event system is working but somehow the time related triggers don't work.
in the editor there is also a selector which can be set to time or device, did you already try these?
- Schermafbeelding 2016-06-05 om 21.35.29.png (34.73 KiB) Viewed 3660 times
Re: Blockly examples
Posted: Sunday 05 June 2016 21:49
by micbou
Yup, tried that too...
- Schermafbeelding 2016-06-05 om 21.48.43.png (56.45 KiB) Viewed 3658 times
Re: Blockly examples
Posted: Sunday 05 June 2016 22:03
by micbou
and its weird because below does work
- Schermafbeelding 2016-06-05 om 22.03.06.png (28.71 KiB) Viewed 3655 times