Page 1 of 16

Events system thread (questions and feedback)

Posted: Friday 12 July 2013 14:53
by mbliek
Post your events system issues here. I would really appreciate if someone would test the scripts under windows asap as I could only test linux/mac systems.
Edit: events system is working as of v1.813. My live system only updates to 1.810 at the moment, don't know how to get it up to 813...

Re: Events system feedback thread

Posted: Friday 12 July 2013 14:54
by mbliek
Why do I get this in my log file:

Error: Fri Jul 12 14:53:31 2013 Could not load lua script /home/pi/domoticz/scripts/lua/._script_device_test.lua
Error: Fri Jul 12 14:53:31 2013 Lua script did not return a commandArray

This is in my file:

Code: Select all

print('test')

commandArray = {}
if (devicechanged['LED boven TV'] == 'Off' and otherdevices['Onder trap'] == 'Off') then
	commandArray['Bank']='On'
end

return commandArray

Re: Events system feedback thread

Posted: Friday 12 July 2013 21:54
by gizmocuz
New windows installer made...

Re: Events system feedback thread

Posted: Friday 12 July 2013 23:27
by tommit01
Blockly interface behaves strange ( maybe only in Firefox)
If you open Messages or Logic or somrthing else on the left panel (try only clicking), Editing box is increasing size to the right and at the end when adding more and more blocks user can't scroll to right part SAVE Button anymore.
Is this only a Firefox problem?
In IE10 flyout menus overlap.. so I can't choose a element

Re: Events system feedback thread

Posted: Saturday 13 July 2013 9:38
by gizmocuz
Should be solved now, thanks for reporting!

Re: Events system feedback thread

Posted: Saturday 13 July 2013 11:17
by jackisidore
My test blocks works! Great work.

If I edit and save the blockly the edits are lost. If I change the name and save as a new blockly it's saved ok.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 12:43
by JohnS
A big thank you :D to everyone for the events system! Now I can start to have fun!

I am going to use it to control my solar hot water system. And I find I need to do some simple arithmetic in the logic eg

if TemperatureRoof >(TemperatureTank + 5)then pump=on

Can addition and subtraction of numerical values be added please?

Also, when comparing temperature values, what level of accuracy is used? 20.0 degrees is hotter than 19.9 degrees, but not by very much! I would prefer integer only comparisons, could that be an option?

John S

Re: Events system feedback thread

Posted: Saturday 13 July 2013 13:58
by tommit01
I'm missing a concatenation Operator for Texts and I tried following:
IF 'Tenperature Living Room ' > 24 THEN SEND Message with SUBJECT 'Temperature Test Message' AND MESSGAE 'Temperature Wohnzimmer EG'...
Temperature WOhnzimmer EG seems to be a number vale and not be converted to Text...

BR
Thomas

Re: Events system feedback thread

Posted: Saturday 13 July 2013 14:48
by fafe07
Hello Gizmocuz,

My test blocks are not OK. Even if I rename it and save as a new blocky, when I click save it does not respond.

I tried under IE v10, Google Chrome v27, and Firefox v22...

Thanks a lot in advance.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 14:56
by luckysession
mbliek wrote:Post your events system issues here. I would really appreciate if someone would test the scripts under windows asap as I could only test linux/mac systems.
Edit: events system is working as of v1.813. My live system only updates to 1.810 at the moment, don't know how to get it up to 813...

Hi,

missing option for check humidity.

In my case want to check humidity, if greater than xx% switch device Y on or off.

Thank you

Re: Events system feedback thread

Posted: Saturday 13 July 2013 16:11
by CopyCatz
Strange.. Saving blocks works ok on mac + safari and firefox. Do you get the overwrite warning and then the save confirmation?

Also, people complaining about humidity, temperature: RTFM: http://www.domoticz.com/wiki/Events -> "Reading sValues (temperatures etc)
does not work either. "

Re: Events system feedback thread

Posted: Saturday 13 July 2013 16:22
by tommit01
Deleted rule has sent 10 more E-Mails after Deleting rule..

Does event system have a certain update time?

For temperature string issue.. sorry I have read this part in manual right after my message... :oops:

P.S: It has stopped now... It's a little bit more difficult to restart services on a (remote) windows computer...
Will migrate to Raspberry PI next time I visit this location...

I think I should refresh my C++ or C# knowledge ... implemented last programs about 20 years ago.. start time of HP'S STL

Re: Events system feedback thread

Posted: Saturday 13 July 2013 16:31
by CopyCatz
tommit01 wrote:Deleted rule sent10 more E-Mails after Deleting rule..

Does event system have a certain update time?

For temperature string issue.. sorry I have read this part in manual right after my message...
Woops, good call. Fixed in 836. For now just restart domoticz service.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 16:42
by jackisidore
CopyCatz wrote:Strange.. Saving blocks works ok on mac + safari and firefox. Do you get the overwrite warning and then the save confirmation?
It's working now. the overwrite warning has a second dialog box "Voorkom dat deze pagina extra dialog venster weergeeft" If I check that dialog box domoticz doesn't save (and doesn't display overwite warnings). Refreshing the Chrome browser (f5) restores the dialog boxes.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 17:04
by CopyCatz
jackisidore wrote:
CopyCatz wrote:Strange.. Saving blocks works ok on mac + safari and firefox. Do you get the overwrite warning and then the save confirmation?
It's working now. the overwrite warning has a second dialog box "Voorkom dat deze pagina extra dialog venster weergeeft" If I check that dialog box domoticz doesn't save (and doesn't display overwite warnings). Refreshing the Chrome browser (f5) restores the dialog boxes.
Hmm good find boss.. wil put that in the wiki :)

Re: Events system feedback thread

Posted: Saturday 13 July 2013 17:29
by bistoury
Hello to everyone,

First of all, congrats for Domoticz. It's just amazin : handy, fast growing, use of best solutions (blocky & LUA for instance), and it uses at the same time RazBerry and RFXCOM. So a BIG thank you.

Regarding the new Events system, it would be a good thing to be able a activate / deactivate an event (If I do not want now an script to be active, I have to delete it... not thant handy !)

I have also a bug rerding temperature readings :
My script notify me if the temperature one sensor is > 25 °C. Blocky seems of, but Prowl notifies me whereas the dashbord tells me the temp is only 23°C... any idea ?

I'm running it on a pi with version 1.834.

Thanks again for your hard work

bistoury.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 18:55
by CopyCatz
People, if you have questions about a script, post the script. Also, other people might learn from it.

Re: Events system feedback thread

Posted: Saturday 13 July 2013 23:18
by pierre4fun
Hello ,

Same there:

Kubuntu macbook Pro ppc > the explorer kebong crashes when trying to create an event (control or else)
- Using remotly with PC (Win8) under Firefox22 or IE10 works better but it seems it is impossible to save the event.

Idem when running domoticz under PC / Win8 / Firefox 22 or Ie10 : the javascript:save_block() seems not getting the name written.


Best Regards,
Pierre

Re: Events system feedback thread

Posted: Sunday 14 July 2013 7:20
by Jochen
Hi,
i´m currently playing with the new Eventsystem. Until now everything i tried is working fine!
Realy good job.

But i´m also missing some things.
When I want to send a Notification (Prowl), i want to send the current status, like
Subject: Door is open
Message:
Door: Garden
Type: Open
Time: 12:48:55
My Problem is to include var´s to the strings.

Define Variable.
Blockly has the functions to create own Variables. Can you add this?

Thank you.

Re: Events system feedback thread

Posted: Sunday 14 July 2013 10:58
by pierre4fun
Hello,

The event can be saved under chrome: it works fine. in all configs :)

THANKS !