Events system thread (questions and feedback)

Moderator: leecollings

Post Reply
anderssan
Posts: 2
Joined: Thursday 18 July 2013 18:21
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by anderssan »

Hi,

The event system is great but I agree with Jochen that you should enable this function again :) This is not advanced programming, it is useful also for simple events.

For example if you have a motion sensor that triggers several lights..

IF motion detector = ON {
IF light A = OFF {
=> TURN light A = ON for X minutes }
IF light B = OFF {
=> TURN light B = ON for X minutes }
IF light C = OFF {
=> TURN light C = ON for X minutes }
}
Offcourse you can create three events but I think the readability is better with nestled if-statements..

//Anders
CopyCatz wrote:
Jochen wrote:CopyCatz killed my blockly-events :)
Why you disable this? It was running very well.
Blockly creates a block of xml containing the statements. I have to parse all those statements and separate into 2 blocks: the conditions and the actions. Those are saved in the Domoticz database, so that Domoticz can evaluate the condition line and then execute the actions. If we would allow multiple if .. then's, then we would need multiple condition + action pairs per event, making it way more difficult. As said before, we want to keep the blockly interface simple for people who don't program for a living. If you want complexity, use scripts.
User avatar
fl1p
Posts: 17
Joined: Friday 19 July 2013 12:27
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Belgium
Contact:

Re: Events system feedback thread

Post by fl1p »

Is it possible to give parameters in the text? Like, for example $CurrentTemperature or $StateOfLight ? :-)
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

- v1.873 Implemented sunrise/sunset in blockly, time blocks grouped, switches grouped by alphabet as workaround
for blockly not using scrollable dropdowns. In the show current states list devicenames now update when changed.
These changes will probably require the blockly events to be rebuilt through the interface by the user.
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by luckysession »

Upps, missing devices "switches" for creating blockly events.

And thank fpr first step of my wish sunrise and sunset, but missing option BEFORE and AFTER sunrise/sunset.

Well done, great job!

Thanks LUCKYSESSION
SweetPants

Re: Events system feedback thread

Post by SweetPants »

luckysession wrote:Upps, missing devices "switches" for creating blockly events.
When selecting one, it disapears (1.876)

Harry
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by luckysession »

SweetPants wrote:
luckysession wrote:Upps, missing devices "switches" for creating blockly events.
When selecting one, it disapears (1.876)

Harry
Switches is not selectable in event creation.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Ok im at 876 now, switches in groups and working. Can you be more specific what is going wrong?
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:Can you be more specific what is going wrong?
As soon as i try to select a switch, there is no drop-down list but the switch icon/menu disappears.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Which browser? Do you have only one device starting with a G?
mec
Posts: 2
Joined: Friday 12 July 2013 16:58
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by mec »

Schermafbeelding 2013-07-20 om 10.59.25.png
Schermafbeelding 2013-07-20 om 10.59.25.png (35.88 KiB) Viewed 6425 times
Same issue over here. Unable to select a switch. (OS X Mavericks / Safari)
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Hmmm working here so I can't debug, if any of you has firebug or a similar tool, can you check if there's a javascript error when you get to the broken blocks?
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:Which browser? Do you have only one device starting with a G?
Tried latest Chrome and Firefox.
yes, there is only one device starting with 'G = Garage_Rookmelder', but I have 13 switches installed and they where working in previous releases of the Eventt system.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

I know it was working before, I'm trying to determine why it isn't now... I was trying to help people with large dropdown lists who cant select the devices at the bottom, since blockly's dropdown lists are bugged which they havent been able to repair since it was reported in october last year. If anyone has a better idea please drop it here.
mec
Posts: 2
Joined: Friday 12 July 2013 16:58
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by mec »

Schermafbeelding 2013-07-20 om 11.17.37.png
Schermafbeelding 2013-07-20 om 11.17.37.png (164.44 KiB) Viewed 6413 times
Schermafbeelding 2013-07-20 om 11.17.22.png
Schermafbeelding 2013-07-20 om 11.17.22.png (130.08 KiB) Viewed 6413 times
This is what is can get from the Safari Errorconsole
SweetPants

Re: Events system feedback thread

Post by SweetPants »

I'm not an expert on this but Firebug says:

TypeError: c is undefined
http://domoticz:8080/js/blockly_compressed.js
Line 849

Looks like the same error as above
User avatar
Jochen
Posts: 11
Joined: Saturday 13 July 2013 10:37
Target OS: -
Domoticz version:
Location: Germany / NRW
Contact:

Re: Events system feedback thread

Post by Jochen »

I got this error when i´m load a saved blockly-event
Attachments
Firebug
Firebug
error_2.PNG (26.06 KiB) Viewed 6404 times
error.PNG
error.PNG (4.83 KiB) Viewed 6404 times
Last edited by Jochen on Saturday 20 July 2013 12:02, edited 1 time in total.
I have not failed 1,000 times.
I have successfully discovered 1000 ways to NOT make a light bulb.
*Thomas Edison*
SweetPants

Re: Events system feedback thread

Post by SweetPants »

I had that too. Re-creating the event solves the problem for me.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Yeah as stated in the release notes all events will have to be rebuilt unfortunately, remember this is all still beta until things are efficient and stable.
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz »

Fix for switchblocks not appearing is in 880. I'm having a discussion with gizmo about the groups (A-F, etc), he thinks they mean more searching/work. This is the best fix I could come up with, anyone have a better idea or knows svg enough to fix the stupid blockly dropdowns in their project?
SweetPants

Re: Events system feedback thread

Post by SweetPants »

Great job, works again
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest