Events system thread (questions and feedback)

Moderator: leecollings

Post Reply
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 »

If gizmo wants to implement grouping in the dashboard and switches screens we can use those groups in blockly later.
laggmunk
Posts: 12
Joined: Sunday 14 July 2013 16:49
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by laggmunk »

it seems otherdevices_lastupdate is very inflexible with regards to device names, devices names containing special characters such as "åäö" do not work, and devicenames containing white spaces do not work either.

a devicename such as ['Hall Ovre - Taklampa 1'] returns nil, but if I rename it to "lamp1" I get a value for otherdevices_lastupdate.

when issuing a commandArray, special characters an white space works like intended, i.e. ['Hall Övre - Taklampa 1'] is fine
bistoury
Posts: 35
Joined: Friday 12 July 2013 14:14
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by bistoury »

hi everyone,

I understand that the blocky dropdown list bug seems to imply some tricky workarounds (switch groups by alphabet).

Correct me if I'am wrong, but why to we need to have all switches listed a unique blocky item (the one showing the dropdown combo) ?

I know developpements have started that way a long time ago, but maybe under "Devices" / "Switches" it could show every single switch.

With that way of doing, if we have 10 light switches then it would show 10 blocky items under "Devices" / "Switches". So no more buggy dropdown list !


This is quite hard to explain, so I hope you'll understand :idea:
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

BUG: Events system feedback thread

Post by luckysession »

luckysession wrote:Upps, missing devices "switches" for creating blockly events.

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

Well done, great job!

Thanks LUCKYSESSION
Thanks, seems working in 1.880, but it seems tempature terms like "A"°C > "B"°C didn´t work in the moment in my opinion, Errorlog like:

" Error: Sun Jul 21 12:55:49 2013 Lua script error: [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'"

EDIT: Sorry, seems not be the tempature terms, but if i use scenes terms (scene="on" or scene="off") the error will be show in the log.

Additional Information:

For my terms "after sunrise and before sunset" i create a scene called "Suedsonne" with timers "3 hours after sunrise switch on" and "3 hours before sunset switch off".
luckysession
Posts: 18
Joined: Saturday 13 July 2013 14:43
Target OS: -
Domoticz version:
Contact:

Re: BUG: Events system feedback thread

Post by luckysession »

luckysession wrote:
luckysession wrote:Upps, missing devices "switches" for creating blockly events.

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

Well done, great job!

Thanks LUCKYSESSION
Thanks, seems working in 1.880, but it seems tempature terms like "A"°C > "B"°C didn´t work in the moment in my opinion, Errorlog like:

" Error: Sun Jul 21 12:55:49 2013 Lua script error: [string "result = 0; weekday = os.date('*t')['wday']; ..."]:1: ')' expected near 'comparevariable'"

EDIT: Sorry, seems not be the tempature terms, but if i use scenes terms (scene="on" or scene="off") the error will be show in the log.

Additional Information:

For my terms "after sunrise and before sunset" i create a scene called "Suedsonne" with timers "3 hours after sunrise switch on" and "3 hours before sunset switch off".
Just for the moment i create a switch with unused code for simulate time of sunshine in the south of my house, now i be able to create event with:

If "sunshinesouth(switch)"=on and "temperature A" > "temperature B" and "Blinds A" = closed
then set "Blinds A" = ON

Seems working fine!
spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by spiderrob »

spiderrob wrote:
CopyCatz wrote:In 855 I hopefully managed to interpret all variations of if statements... was a bitch to get right, so would be happy if all is ok now. Also implemented "Set Level X" block. My x10 dimmer does not seem to respond, please test with other devices. Keep in mind:

- Set Level does not work in the random and for x minutes set blocks yet
- It also doesnt work in the if area, only as an action.
'Set Level X' block does not work for Lightwave dimmers either……….
Any news on the 'Set level' issue for dimmers? I know there is a lot of other development stuff going on but I would be really grateful to see this working in Blocky.
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 »

886: Fixed: Set Level, random triggers firing multiple times, implemented tooltips in events UI, start implementing multi language support in events
SweetPants

Re: Events system feedback thread

Post by SweetPants »

1.886, If/Do text disapeared?
if-do.png
no-if-do.png
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 »

Sorry forgot to include a new javascript file.. Don't update until i'm back from roze maandag!

Edit: fixed.
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:Edit: fixed.
Thnx

BTW: What platform (IDE) dou you use to develop?
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 »

Xcode, Coda 2 and Cornerstone.
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Events system feedback thread

Post by Dynamic »

I'm trying to create a scene with my smoke detectors. So i would like to check if the smoke detecters are in panic-mode, but I can only check for 'on' or 'off'?
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 »

In 899 added: scene switching (only as action, not a trigger), added Panic (and related) state in blockly. Can someone confirm that dim is working in events? Read up on the events wiki page on how to use scenes in lua scripting.
User avatar
Dynamic
Posts: 109
Joined: Friday 12 July 2013 14:50
Target OS: -
Domoticz version:
Location: Enschede
Contact:

Re: Events system feedback thread

Post by Dynamic »

Will try the panic-state, as soon as 1.899 is available.

What has to be tested with the dim? To set a light at a specific dimlevel with the events?
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 test if setting dim though an event works as intended.
keverjeroen
Posts: 2
Joined: Friday 19 July 2013 12:49
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: Events system feedback thread

Post by keverjeroen »

Hi,

Something strange happens every time when I want to use the blockly editor in Domoticz. After some clicks (+/- 3 clicks) in blockly, my complete laptop freezes! I have Win7, with Chrome (28.0.1500.72 m) and Domoticz 1.887. Only thing I can do is turn off and on my laptop. The Windows event logs show nothing..

More people that encounterd the same problem?

Grt Jeroen
User avatar
capman
Posts: 153
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Events blokly graphics error

Post by capman »

I have a problem after my update to v887 in blokly.
Before a have this >
blinds.jpg
blinds.jpg (61.38 KiB) Viewed 4073 times
But after the update a got this >
blinds02.jpg
blinds02.jpg (29.38 KiB) Viewed 4073 times
When a do a new event and a save it , i have the same problem. All is scrambled.
I use windows firefox. Must a wait for another update to fix this ?
Thanks

btw , nice program , keep up the good work.
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 »

The block stucture has changed from 873 onwards. You have to rebuild your event blocks.
spiderrob
Posts: 13
Joined: Saturday 13 July 2013 8:28
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by spiderrob »

I can confirm that dim level works in blocky with my lightwave dimmers. There is a small discrepancy in that if I set the dim level to 10%, when the event triggers the light shows up as 6% in the Domoticz dashboard. It's the same throughout the % range but it doesn't matter.

I'm very pleased it's working.

Great work by all involved
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:In 899 added: scene switching
Working, great, Thnx
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests