I have an mqtt item `mqtt.get[,"fitness_room/online"]` that is Numeric and only have the values 1 and 0.
I now want a trigger that fires if the value is 0 for 5 minutes (then the device is offline for more than 5 minutes).
I tried the following:
```
max(/Fitness Room ESP/mqtt.get[,"fitness_room/online"],5m)=0
```
but this fires even if the value is 0 for just a second. I guess the problem is that there is no other value in the last 5 minutes so 0 is the only value (even if the previous value was 1).
I now want a trigger that fires if the value is 0 for 5 minutes (then the device is offline for more than 5 minutes).
I tried the following:
```
max(/Fitness Room ESP/mqtt.get[,"fitness_room/online"],5m)=0
```
but this fires even if the value is 0 for just a second. I guess the problem is that there is no other value in the last 5 minutes so 0 is the only value (even if the previous value was 1).
Comment