Events system thread (questions and feedback)

Must be cleaned all topics go to the right subforum
Post Reply
User avatar
mbliek
Posts: 812
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: beta
Location: the Netherlands
Contact:

Events system thread (questions and feedback)

Post by mbliek » Friday 12 July 2013 14:53

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...

User avatar
mbliek
Posts: 812
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: beta
Location: the Netherlands
Contact:

Re: Events system feedback thread

Post by mbliek » Friday 12 July 2013 14:54

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

User avatar
gizmocuz
Posts: 8526
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Events system feedback thread

Post by gizmocuz » Friday 12 July 2013 21:54

New windows installer made...
Quality outlives Quantity!

User avatar
tommit01
Posts: 328
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: multiple
Location: Germany / SL
Contact:

Re: Events system feedback thread

Post by tommit01 » Friday 12 July 2013 23:27

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
1 x RPi3
4 x RPI
3 x RPi2
1 x RPI2 + Win 10 IoT (experimental device)
2 x RPI2 Raspbian "Jessie" + Domoticz (for tenants)
2 x RPI OSMC @ 1GHz
1 RPi Zero W + Cam NOIR
1 RPi Zero W + Cam
RFXtrx 433 FW 1015
RFXtrx 433 E FW 1020

User avatar
gizmocuz
Posts: 8526
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: Events system feedback thread

Post by gizmocuz » Saturday 13 July 2013 9:38

Should be solved now, thanks for reporting!
Quality outlives Quantity!

jackisidore
Posts: 141
Joined: Friday 12 July 2013 15:52
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Events system feedback thread

Post by jackisidore » Saturday 13 July 2013 11:17

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.

JohnS
Posts: 24
Joined: Friday 12 July 2013 19:37
Target OS: -
Domoticz version:
Location: High Wycombe, UK
Contact:

Re: Events system feedback thread

Post by JohnS » Saturday 13 July 2013 12:43

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

User avatar
tommit01
Posts: 328
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: multiple
Location: Germany / SL
Contact:

Re: Events system feedback thread

Post by tommit01 » Saturday 13 July 2013 13:58

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
1 x RPi3
4 x RPI
3 x RPi2
1 x RPI2 + Win 10 IoT (experimental device)
2 x RPI2 Raspbian "Jessie" + Domoticz (for tenants)
2 x RPI OSMC @ 1GHz
1 RPi Zero W + Cam NOIR
1 RPi Zero W + Cam
RFXtrx 433 FW 1015
RFXtrx 433 E FW 1020

fafe07
Posts: 2
Joined: Friday 12 July 2013 21:55
Target OS: -
Domoticz version:
Location: Ardèche - France
Contact:

Re: Events system feedback thread

Post by fafe07 » Saturday 13 July 2013 14:48

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.

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

Re: Events system feedback thread

Post by luckysession » Saturday 13 July 2013 14:56

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

User avatar
CopyCatz
Developer
Posts: 751
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz » Saturday 13 July 2013 16:11

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. "

User avatar
tommit01
Posts: 328
Joined: Friday 12 July 2013 14:08
Target OS: Raspberry Pi
Domoticz version: multiple
Location: Germany / SL
Contact:

Re: Events system feedback thread

Post by tommit01 » Saturday 13 July 2013 16:22

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
Last edited by tommit01 on Saturday 13 July 2013 16:46, edited 3 times in total.
1 x RPi3
4 x RPI
3 x RPi2
1 x RPI2 + Win 10 IoT (experimental device)
2 x RPI2 Raspbian "Jessie" + Domoticz (for tenants)
2 x RPI OSMC @ 1GHz
1 RPi Zero W + Cam NOIR
1 RPi Zero W + Cam
RFXtrx 433 FW 1015
RFXtrx 433 E FW 1020

User avatar
CopyCatz
Developer
Posts: 751
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz » Saturday 13 July 2013 16:31

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.

jackisidore
Posts: 141
Joined: Friday 12 July 2013 15:52
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Events system feedback thread

Post by jackisidore » Saturday 13 July 2013 16:42

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.

User avatar
CopyCatz
Developer
Posts: 751
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz » Saturday 13 July 2013 17:04

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 :)

bistoury
Posts: 158
Joined: Friday 12 July 2013 14:14
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by bistoury » Saturday 13 July 2013 17:29

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.

User avatar
CopyCatz
Developer
Posts: 751
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Events system feedback thread

Post by CopyCatz » Saturday 13 July 2013 18:55

People, if you have questions about a script, post the script. Also, other people might learn from it.

pierre4fun
Posts: 8
Joined: Friday 12 July 2013 13:39
Target OS: -
Domoticz version:
Location: Toulon France
Contact:

Re: Events system feedback thread

Post by pierre4fun » Saturday 13 July 2013 23:18

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

User avatar
Jochen
Posts: 20
Joined: Saturday 13 July 2013 10:37
Target OS: -
Domoticz version:
Location: Germany / NRW
Contact:

Re: Events system feedback thread

Post by Jochen » Sunday 14 July 2013 7:20

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.
I have not failed 1,000 times.
I have successfully discovered 1000 ways to NOT make a light bulb.
*Thomas Edison*

pierre4fun
Posts: 8
Joined: Friday 12 July 2013 13:39
Target OS: -
Domoticz version:
Location: Toulon France
Contact:

Re: Events system feedback thread

Post by pierre4fun » Sunday 14 July 2013 10:58

Hello,

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

THANKS !

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests