Events system thread (questions and feedback)

Moderator: leecollings

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 »

So the doorbell is always on, as far as domoticz/your logic is concerned. This will happen based on your script:

- you press the doorbell, domoticz gets signal from bell.
- light switches on for 1 minute. After minute light switches off.
- Domoticz gets signal light off, and since doorbel status is always group on, the first rule applies again. You're in a loop now.

You can always disable the event in blockly, no need to reboot. But you will have to wait a minute since there will always still be a delayed event active.
It would be safer to edit the deurbel in switches, add a slave device called "deurbel alarm" as a normal on/off. That way deurbelalarm would only go to on if someone actually presses the deurbel. If you make a blockly action based on the deurbel alarm do something like:

if deurbel alarm = On do/set something, set deurbel alarm = Off
spaanplaat
Posts: 10
Joined: Friday 12 July 2013 16:21
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by spaanplaat »

Hmmm that makes sense.

I did not know blocky updates once a minute. Good to know.

Your solution seems like the best way to go.
Thank you for your insight.

edit:
It seems I can assign a slave device to the doorbell, but when the doorbell is pressed the slave device stay's off.
I tried the AC and ARC switch types. Maybe this is simply not possible? :roll:
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 created an event to check if my bedroom-temperature is bigger than the outside-temperature (so it's better to open the windows for some cooling down), but the event is spamming me every minute with the same advice (to test, I used < instead of >).

I changed < into > (so the event doesn't apply anymore), but it is still sending me messages. Then I tried do deactivate the rule, but the messages are still coming in. What to do?
Attachments
event-temp.png
event-temp.png (12.24 KiB) Viewed 4831 times
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 dont know if the weather underground temperatures work yet. The second one now probably evaluates to 0, making this true everytime the slaapkamer temp comes in. Buy a real one for outside in the mean time, I can confirm they work. It's probably not such a good idea to trigger events based on an external source anyway, what if they send 0 temp by accident all day?
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.933: Implemented: trigger url/api as Do command
SweetPants

Re: Events system feedback thread

Post by SweetPants »

Just playing with the security settings. Should this work? Because it isn.t
Armed Home.png
Disarmed.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 »

Did you update recently? I fixed this a few days ago.

Edit: the security status is not a device (yet) so it doesnt trigger blockly. Only if you combine it with another device or time constraint blockly will use it.
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:Only if you combine it with another device or time constraint blockly will use it.
Right, this works, thanks
Armed Time.png
running 1.945
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 »

Dynamic wrote:I created an event to check if my bedroom-temperature is bigger than the outside-temperature (so it's better to open the windows for some cooling down), but the event is spamming me every minute with the same advice (to test, I used < instead of >).

I changed < into > (so the event doesn't apply anymore), but it is still sending me messages. Then I tried do deactivate the rule, but the messages are still coming in. What to do?
This also doens't work with my own sensors... I have the same problem with sensors I bought and installed. I also tried to swithc < to > and vice versa, but it keeps spamming me...
SweetPants

Re: Events system feedback thread

Post by SweetPants »

Hi CopyCatz,

Any idea why the event screen is not working over HTTPS?
events.png
http://www.domoticz.com/forum/viewtopic ... &t=68#p915
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Events system feedback thread

Post by pepijn »

SweetPants wrote:Hi CopyCatz,
Any idea why the event screen is not working over HTTPS?
http://www.domoticz.com/forum/viewtopic ... &t=68#p915
SweetPants,

The event system is loading in an iframe, that does not work with reverse proxy at the moment. I don't think cross-posting your questions will solve this any earlier :?
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 can use the events panel fine through https reverse proxy via nignx...
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Events system feedback thread

Post by pepijn »

@CopyCatz, do you have a "add_header X-Frame-Options" in your nginx sites-available config?

Let's discuss this over here http://www.domoticz.com/forum/viewtopic.php?f=18&t=189because it is a nginx issue ;)
pepijn
Posts: 251
Joined: Friday 12 July 2013 13:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Events system feedback thread

Post by pepijn »

SweetPants wrote:Hi CopyCatz,
Any idea why the event screen is not working over HTTPS?
See http://www.domoticz.com/forum/viewtopic ... p=993#p993
SweetPants

Re: Events system feedback thread

Post by SweetPants »

CopyCatz wrote:I can use the events panel fine through https reverse proxy via nignx...

I don't think cross-posting your questions will solve this any earlier :?
I'm sorry for cross-posting, but i did not know if this was a nginx or event system issue.

Followed pepijns advise and it is working now, thnx
spaanplaat
Posts: 10
Joined: Friday 12 July 2013 16:21
Target OS: -
Domoticz version:
Contact:

Re: Events system feedback thread

Post by spaanplaat »

fl1p wrote:
Dynamic wrote:I created an event to check if my bedroom-temperature is bigger than the outside-temperature (so it's better to open the windows for some cooling down), but the event is spamming me every minute with the same advice (to test, I used < instead of >).

I changed < into > (so the event doesn't apply anymore), but it is still sending me messages. Then I tried do deactivate the rule, but the messages are still coming in. What to do?
This also doens't work with my own sensors... I have the same problem with sensors I bought and installed. I also tried to swithc < to > and vice versa, but it keeps spamming me...
I tested this as well with my own sensors and I too am receiving emails by the minute. I guess that's how the notification system works 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 »

If you just specify "send me a notification when temp > X" you will get a notification each time the device reports in. That is literally what you get with such a rule; couple it with another device like "if temp >x and fan = off set fan = on and send notification". Then the rule will trigger once because the fan is off, second time the fan is on.

I really want to keep blockly simple in the sense that it does what it says/you say. Use lua if you only want the notification once, put in a time constraint like my garage door example. I don't want to put hidden clauses in blockly that say "well only send this notification once" without it being very intuitive what is happening. When would be the next time to send one? Blockly = keep it simple, stupid, lua = advanced.
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Events system feedback thread

Post by StanHD »

Totally agree with simple. The way it is working at the moment, for me, it is excellent. Great work and great philosophy. Thank you.
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
gertjuhh

Re: Events system feedback thread

Post by gertjuhh »

How about adding the ability to disable/enable events from within events?
That way you could do something like: "when temp > X --> send me a notification AND disable eventY (this event) event" and add another event which does "when temp < X --> enable eventY"
That way you don't need to rely on virtual devices, plus i think it would offload the events system a bit because it has less events to process.
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 »

So Invent Inception? An event in an event? I could play a wav that goes "noooooonnnn rien de rien" whenever the event in the event triggers so whe know at which level of conscience we are :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest