Blocky notification sens every minute a notificaiton

Post Reply
assenzuid
Posts: 164
Joined: Friday 13 November 2015 10:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Blocky notification sens every minute a notificaiton

Post by assenzuid » Saturday 02 June 2018 16:32

I've created below Blocky notification, but when it's triggerd I get every minute a notification and stops when value is below given %.
How to prevent this.

I want to send an email to multiple receivers.
Capture.PNG
Capture.PNG (10.97 KiB) Viewed 303 times

SweetPants
Posts: 2101
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: Blocky notification sens every minute a notificaiton

Post by SweetPants » Saturday 02 June 2018 17:10

Did you set your blockly to 'time' triggered perhaps? That explains the 1 minute interval.
If you set it to 'device' it will only send a notification when the value changes and is above 30%. But it will keep sending notifications when the value keeps changing and is above 30%.
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

assenzuid
Posts: 164
Joined: Friday 13 November 2015 10:11
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Blocky notification sens every minute a notificaiton

Post by assenzuid » Sunday 03 June 2018 22:51

Yes, it was set at 'all'.
I changed it to 'device', did you mean that wen the value rise above 30 and later to 40 it will send also a notification.
I only need one-time notification when the value rise above 30 and when the value is below 30 and later it will rise again I want also a new notifciation.

SweetPants
Posts: 2101
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.9701
Location: The Netherlands
Contact:

Re: Blocky notification sens every minute a notificaiton

Post by SweetPants » Monday 04 June 2018 10:08

assenzuid wrote:
Sunday 03 June 2018 22:51
Yes, it was set at 'all'.
I changed it to 'device', did you mean that wen the value rise above 30 and later to 40 it will send also a notification.
Yes
assenzuid wrote:
Sunday 03 June 2018 22:51
I only need one-time notification when the value rise above 30 and when the value is below 30 and later it will rise again I want also a new notifciation.
Then you have to add some extra logic that you already send a notification after the first time and reset that when getting below you threshold again.

Maybe take a look at dzVents https://www.domoticz.com/wiki/DzVents:_ ... _scripting , this gives you way more flexibility then blockly
Ubuntu 16.04.3 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (source)

User avatar
mrf68
Posts: 265
Joined: Monday 23 February 2015 13:45
Target OS: Windows
Domoticz version: 3.4834
Location: Netherlands
Contact:

Re: Blocky notification sens every minute a notificaiton

Post by mrf68 » Tuesday 05 June 2018 9:19

Create a virtual switch, set it to On when sending the message and have the send message part check is the switch is On. If Off then send message. Check hum every minute. If hum < desired set virtual switch to Off.

Instead of a virtual switch you could use a uservariable.
----------
3x RPi
1x W2k12 (vm)
3x RFXcom433e
1x Razberry board
KAKU: 9x APA3-1500R, 2x ACDB-7000C, 3x AMST-606, 1x APIR-2150, 1x AWS-3500, 1x ATMT-502
Z-wave: 8x Everspring AN145
Misc: 2x wireless doorbells

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests