I have been trying to automate the control of one of my air purifiers based on the detected VOC levels from my sensors.
The only automation of these three that triggers is ’ VOCs Safe’, and it triggers multiple times a day. However VOC Unhealthy never triggers.
Given that these automations trigger on crossing a threshold, how does ‘VOCs Safe’ repeatedly trigger, yet ’ VOCs Unhealthy’ never triggers?
alias: VOCs Safe
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.e_s_device_tvoc
- sensor.airthings_wave_mini_079396_voc
above: 0
for:
hours: 0
minutes: 15
seconds: 0
below: 1499
condition: []
action:
- service: notify.persistent_notification
metadata: {}
data:
message: VOCs under 1000, Changing Winix back to auto
title: VOCs under 1000
- service: fan.set_preset_mode
target:
entity_id: fan.winix_bedroom
data:
preset_mode: Auto
mode: single
alias: VOC Unhealthy
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.e_s_device_tvoc
- sensor.airthings_wave_mini_079396_voc
above: 1500
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- service: notify.persistent_notification
metadata: {}
data:
message: " Changing Winix to medium"
title: VOCs over 1000
- service: fan.set_percentage
target:
entity_id:
- fan.winix_bedroom
data:
percentage: 75
mode: single
alias: VOCs Dangerous
description: ""
trigger:
- platform: numeric_state
entity_id:
- sensor.e_s_device_tvoc
- sensor.airthings_wave_mini_079396_voc
above: 2500
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- service: notify.persistent_notification
metadata: {}
data:
message: " Changing Winix to ultra high"
title: VOCs over 2500
- service: fan.set_percentage
target:
entity_id:
- fan.winix_bedroom
data:
percentage: 100
mode: single