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.Martijn85 wrote:Hello everybody,
Maybe someone can help me out with this small issue. These are my blocks:
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?
Blockly examples
Moderator: leecollings
-
- Posts: 68
- Joined: Wednesday 30 December 2015 23:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Poland
- Contact:
Re: Blockly examples
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
-
- Posts: 53
- Joined: Wednesday 20 January 2016 20:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Stable
- Location: Netherlands
- Contact:
Re: Blockly examples
Thanks for the fast reply mKotek, it seems that did the trick! Thank you
-
- Posts: 234
- Joined: Thursday 09 July 2015 12:03
- Target OS: Linux
- Domoticz version: 2.4538
- Location: Norway
- Contact:
Re: SCRIPS - EVENT MANAGEMENT SAMPLE
how to set a if-do inside a if-do?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)
PS: The device Garagentor is the door (Garagentor = Garagedoor), the light is light is Licht Garage (Light Garage)
-
- Posts: 3
- Joined: Wednesday 21 October 2015 23:17
- Target OS: Windows
- Domoticz version:
- Contact:
Re: Blockly examples
Does the script work now? I cannot get my blinds to work...rtulp wrote:Thanks! That makes sense!elmortero wrote:I don't know about curtains but with blinds you use Off for open and On for closed
-
- Posts: 2
- Joined: Tuesday 23 February 2016 13:53
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly examples
Whats wrong with the following blockly i get an error 'then' expected near 'comparevariable'
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Blockly examples
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.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 32
- Joined: Wednesday 27 January 2016 16:37
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: RE: Re: Blockly examples
Compare with this picture very precisely!brianprak wrote:Whats wrong with the following blockly i get an error 'then' expected near 'comparevariable'
Aeon Labs Gen5 USB
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
Greenwave Powernode 6 NS310
2x Greenwave Powernode 1 NS310
Philips Hue
Logitech media Server
Plugwise Smile P1
Re: Blockly examples
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? Thanks for reading,
Mark
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? Thanks for reading,
Mark
Domoticz latest stable, Intel NUC, Proxmox, Zigate, RFLink, Kaku switches, Ikea lights, Xiaomi sensors, Honeywell smoke detectors, Yeelight, Shelly, Slave Domoticz PI 3B+, Node-Red, Espeasy.
-
- Posts: 37
- Joined: Friday 19 February 2016 13:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly examples
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
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
-
- Posts: 5
- Joined: Thursday 17 March 2016 20:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Blockly examples
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)?
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)?
-
- Posts: 135
- Joined: Friday 13 November 2015 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands, Emmen Area
- Contact:
Re: Blockly examples
I have created below blockly, but unfortunately it's not working.
-
- Posts: 135
- Joined: Friday 13 November 2015 9:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands, Emmen Area
- Contact:
Re: Blockly examples
Solved by using.assenzuid wrote:I have created below blockly, but unfortunately it's not working.
Capture.JPG
-
- Posts: 86
- Joined: Sunday 01 May 2016 0:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Blockly examples
so what am I doing wrong here? this feels so straight forward but it doesn't work
-
- Posts: 14
- Joined: Thursday 21 May 2015 18:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Blockly examples
Please try again with setting the group to "on" instead of "active",micbou wrote:so what am I doing wrong here? this feels so straight forward but it doesn't work
snip_20160605203940.png
this works for me.
- Attachments
-
- Schermafbeelding 2016-06-05 om 20.51.35.png (13.36 KiB) Viewed 3677 times
-
- Posts: 86
- Joined: Sunday 01 May 2016 0:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Blockly examples
Unfortunatly not working neither. Time doesn't seem to work in any scenario and Domoticz does show the correct time.
-
- Posts: 14
- Joined: Thursday 21 May 2015 18:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Blockly examples
Do you get something in the log, like this?micbou wrote:Unfortunatly not working neither. Time doesn't seem to work in any scenario and Domoticz does show the correct time.
Do other events (not time related) work?
-
- Posts: 86
- Joined: Sunday 01 May 2016 0:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Blockly examples
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)
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)
-
- Posts: 14
- Joined: Thursday 21 May 2015 18:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Blockly examples
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?
in the editor there is also a selector which can be set to time or device, did you already try these?
-
- Posts: 86
- Joined: Sunday 01 May 2016 0:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Blockly examples
Yup, tried that too...
-
- Posts: 86
- Joined: Sunday 01 May 2016 0:34
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: NL
- Contact:
Re: Blockly examples
and its weird because below does work
Who is online
Users browsing this forum: No registered users and 1 guest