# POPP Z-Rain rain alert problem

**URL:** https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419
**Category:** Questions & Help
**Created:** [March 23, 2020, 8:53am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419 "2020-03-23T08:53:10Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![azurIt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/azurit/32/16498_2.png) [@azurIt](https://community.homey.app/u/azurIt)
#### Post date: [March 23, 2020, 8:53am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/1 "2020-03-23T08:53:10Z")

</div>

Hi guys,

i’m having a little problem with my Z-Rain device. I want from Homey to create a notification when rain starts and stops, so i created these flows:

When: It started raininig.  
And:  
Then: Create notification with \<some\_text\>

When: It stopped raininig  
And:  
Then: Create notification with \<some\_different\_text\>

The problem it that everytime the rain starts or stops, i got multiple notifications. What am i donig wrong?

Thanks.

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [March 23, 2020, 9:25am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/2 "2020-03-23T09:25:56Z")

</div>

I don’t have a POPP Z-Rain in use, but maybe the first and last single raindrops are recognized several times as “It starts to rain” or “It has stopped raining”.  
Then the flow is triggered each time and you will receive several notifications.  
Similar to a temperature sensor. Every change in temperature, e.g. above 26 °C, triggers the flow.

Possible solutions are to use a timer or set a variable.

---

<div class="post-metadata">

### Author: ![azurIt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/azurit/32/16498_2.png) [@azurIt](https://community.homey.app/u/azurIt)
#### Post date: [March 23, 2020, 9:37am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/3 "2020-03-23T09:37:54Z")

</div>

It’s not sending alert about every drop but, instead, it has a little bin inside and ‘rain started’ alert should be send when the bin is filled and emptied for the first time.

---

<div class="post-metadata">

### Author: ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)
#### Post date: [March 23, 2020, 10:39am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/4 "2020-03-23T10:39:45Z")

</div>

Okay, I get it. I’m using the Netatmo rain sensor but I don’t have a “when it starts raining” trigger. I can only choose:  
If “The precipitation has changed”.  
So I can’t reconstruct your flow, sorry.

What I just remembered is that I also get 2 push messages when a special flow is triggered. I’m not sure, but I suspect that is since the iOS update to version 4.1.2.  
Do you also use iOS or Andriod?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/e/ce5aaf0b78151b768a7dd6c7c1d59ed76c31ae88.jpeg)

---

<div class="post-metadata">

### Author: ![azurIt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/azurit/32/16498_2.png) [@azurIt](https://community.homey.app/u/azurIt)
#### Post date: [March 23, 2020, 12:02pm UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/5 "2020-03-23T12:02:18Z")

</div>

Android. For me, it looks like a bug either in POPP app or Homey, i will try to contact the app author. Thanks.

---

<div class="post-metadata">

### Author: ![Christer\_Dahlberg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christer_dahlberg/32/17209_2.png) [@Christer\_Dahlberg](https://community.homey.app/u/Christer_Dahlberg)
#### Post date: [March 24, 2020, 3:01pm UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/6 "2020-03-24T15:01:44Z")

</div>

Hi. I’m also getting double notification when rains start or stop. Hopefully it’s just a bug.

---

<div class="post-metadata">

### Author: ![azurIt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/azurit/32/16498_2.png) [@azurIt](https://community.homey.app/u/azurIt)
#### Post date: [March 25, 2020, 7:44am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/7 "2020-03-25T07:44:40Z")

</div>

I created an issue on github of POPP app author, pls comment there that you have the same problem so he will take it more seriously, thank you:

> <https://github.com/mruiter/com.popp/issues/70>
>
> Hi friend,
> i'm using your Homey app for POPP devices, it's cool, thank you!
> I’m having a little problem with Z-Rain rain alerts....

---

<div class="post-metadata">

### Author: ![azurIt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/azurit/32/16498_2.png) [@azurIt](https://community.homey.app/u/azurIt)
#### Post date: [April 16, 2020, 1:56am UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/8 "2020-04-16T01:56:06Z")

</div>

Hi guys,

i tried to bypass this problem by creating boolean variable ‘Rain’ and this flow:

When: It started raining  
And: Logic: ‘Rain’ is equal to ‘no’  
Then: Logic: Set ‘Rain’ to ‘Yes’ AND Create notification with ‘It started raining’

and… no luck!! I got two notifications, both in the same second. ☹

---

<div class="post-metadata">

### Author: ![Bernhard\_Oberfrank](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bernhard_oberfrank/32/79096_2.png) [@Bernhard\_Oberfrank](https://community.homey.app/u/Bernhard_Oberfrank)
#### Post date: [August 12, 2024, 2:04pm UTC](https://community.homey.app/t/popp-z-rain-rain-alert-problem/27419/9 "2024-08-12T14:04:54Z")

</div>

Hello,  
I had the same problem and could solve it with my following homey script:

```auto
let blnBack = false;
const myArgs = args[0].split(',');//in the Flow Argument: rain,on/off
if(global.get(myArgs[0]) != myArgs[1]){
  global.set(myArgs[0], myArgs[1]);
  blnBack = true;
}
return blnBack;

```
